@windfallswap/core
Version:
🎛 Core contracts for the Windfall Swap protocol
1,430 lines • 58.6 kB
JSON
{
"contractName": "IWindfallFactory",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token0",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "token1",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "pair",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "PairCreated",
"type": "event"
},
{
"constant": true,
"inputs": [],
"name": "feeTo",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "feeToSetter",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
}
],
"name": "getPair",
"outputs": [
{
"internalType": "address",
"name": "pair",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "allPairs",
"outputs": [
{
"internalType": "address",
"name": "pair",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "allPairsLength",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
}
],
"name": "createPair",
"outputs": [
{
"internalType": "address",
"name": "pair",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "setFeeTo",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "setFeeToSetter",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"PairCreated\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"allPairs\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"allPairsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"createPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeToSetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"getPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setFeeTo\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setFeeToSetter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/D/defi/windfall/windfallswap-core/contracts/interfaces/IWindfallFactory.sol\":\"IWindfallFactory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/D/defi/windfall/windfallswap-core/contracts/interfaces/IWindfallFactory.sol\":{\"keccak256\":\"0xe1022d65ee481638747d77bc332b651c04060177bc6d2d5f6c95cceeaea8fea0\",\"urls\":[\"bzz-raw://315122df3292fdfdd6aacbfecff2464da59f24ad4bf7c821fe5160e50486eede\",\"dweb:/ipfs/QmR2ceFsJisD1UTiTyfMwY8deKmyNwzXH6bHuuLGZugUY9\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity >=0.5.0;\r\n\r\ninterface IWindfallFactory {\r\n event PairCreated(address indexed token0, address indexed token1, address pair, uint);\r\n\r\n function feeTo() external view returns (address);\r\n function feeToSetter() external view returns (address);\r\n\r\n function getPair(address tokenA, address tokenB) external view returns (address pair);\r\n function allPairs(uint) external view returns (address pair);\r\n function allPairsLength() external view returns (uint);\r\n\r\n function createPair(address tokenA, address tokenB) external returns (address pair);\r\n\r\n function setFeeTo(address) external;\r\n function setFeeToSetter(address) external;\r\n}\r\n",
"sourcePath": "D:\\defi\\windfall\\windfallswap-core\\contracts\\interfaces\\IWindfallFactory.sol",
"ast": {
"absolutePath": "/D/defi/windfall/windfallswap-core/contracts/interfaces/IWindfallFactory.sol",
"exportedSymbols": {
"IWindfallFactory": [
1932
]
},
"id": 1933,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1871,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:24:7"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 1932,
"linearizedBaseContracts": [
1932
],
"name": "IWindfallFactory",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 1881,
"name": "PairCreated",
"nodeType": "EventDefinition",
"parameters": {
"id": 1880,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1873,
"indexed": true,
"name": "token0",
"nodeType": "VariableDeclaration",
"scope": 1881,
"src": "80:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1872,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "80:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1875,
"indexed": true,
"name": "token1",
"nodeType": "VariableDeclaration",
"scope": 1881,
"src": "104:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1874,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "104:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1877,
"indexed": false,
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 1881,
"src": "128:12:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1876,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "128:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1879,
"indexed": false,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1881,
"src": "142:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1878,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "142:4:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "79:68:7"
},
"src": "62:86:7"
},
{
"body": null,
"documentation": null,
"id": 1886,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "feeTo",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1882,
"nodeType": "ParameterList",
"parameters": [],
"src": "170:2:7"
},
"returnParameters": {
"id": 1885,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1884,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1886,
"src": "196:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1883,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "196:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "195:9:7"
},
"scope": 1932,
"src": "156:49:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1891,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "feeToSetter",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1887,
"nodeType": "ParameterList",
"parameters": [],
"src": "231:2:7"
},
"returnParameters": {
"id": 1890,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1889,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1891,
"src": "257:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1888,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "257:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "256:9:7"
},
"scope": 1932,
"src": "211:55:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1900,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPair",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1896,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1893,
"name": "tokenA",
"nodeType": "VariableDeclaration",
"scope": 1900,
"src": "291:14:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1892,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "291:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1895,
"name": "tokenB",
"nodeType": "VariableDeclaration",
"scope": 1900,
"src": "307:14:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1894,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "307:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "290:32:7"
},
"returnParameters": {
"id": 1899,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1898,
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 1900,
"src": "346:12:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1897,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "346:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "345:14:7"
},
"scope": 1932,
"src": "274:86:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1907,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allPairs",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1903,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1902,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1907,
"src": "384:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1901,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "384:4:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "383:6:7"
},
"returnParameters": {
"id": 1906,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1905,
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 1907,
"src": "413:12:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1904,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "413:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "412:14:7"
},
"scope": 1932,
"src": "366:61:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1912,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allPairsLength",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1908,
"nodeType": "ParameterList",
"parameters": [],
"src": "456:2:7"
},
"returnParameters": {
"id": 1911,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1910,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1912,
"src": "482:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1909,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "482:4:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "481:6:7"
},
"scope": 1932,
"src": "433:55:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1921,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "createPair",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1917,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1914,
"name": "tokenA",
"nodeType": "VariableDeclaration",
"scope": 1921,
"src": "516:14:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1913,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "516:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1916,
"name": "tokenB",
"nodeType": "VariableDeclaration",
"scope": 1921,
"src": "532:14:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1915,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "532:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "515:32:7"
},
"returnParameters": {
"id": 1920,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1919,
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 1921,
"src": "566:12:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1918,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "566:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "565:14:7"
},
"scope": 1932,
"src": "496:84:7",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1926,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setFeeTo",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1924,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1923,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1926,
"src": "606:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1922,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "606:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "605:9:7"
},
"returnParameters": {
"id": 1925,
"nodeType": "ParameterList",
"parameters": [],
"src": "623:0:7"
},
"scope": 1932,
"src": "588:36:7",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1931,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setFeeToSetter",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1929,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1928,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1931,
"src": "654:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1927,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "654:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "653:9:7"
},
"returnParameters": {
"id": 1930,
"nodeType": "ParameterList",
"parameters": [],
"src": "671:0:7"
},
"scope": 1932,
"src": "630:42:7",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 1933,
"src": "28:647:7"
}
],
"src": "0:677:7"
},
"legacyAST": {
"absolutePath": "/D/defi/windfall/windfallswap-core/contracts/interfaces/IWindfallFactory.sol",
"exportedSymbols": {
"IWindfallFactory": [
1932
]
},
"id": 1933,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1871,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:24:7"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 1932,
"linearizedBaseContracts": [
1932
],
"name": "IWindfallFactory",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 1881,
"name": "PairCreated",
"nodeType": "EventDefinition",
"parameters": {
"id": 1880,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1873,
"indexed": true,
"name": "token0",
"nodeType": "VariableDeclaration",
"scope": 1881,
"src": "80:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1872,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "80:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1875,
"indexed": true,
"name": "token1",
"nodeType": "VariableDeclaration",
"scope": 1881,
"src": "104:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1874,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "104:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1877,
"indexed": false,
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 1881,
"src": "128:12:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1876,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "128:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1879,
"indexed": false,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1881,
"src": "142:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1878,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "142:4:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "79:68:7"
},
"src": "62:86:7"
},
{
"body": null,
"documentation": null,
"id": 1886,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "feeTo",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1882,
"nodeType": "ParameterList",
"parameters": [],
"src": "170:2:7"
},
"returnParameters": {
"id": 1885,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1884,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1886,
"src": "196:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1883,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "196:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "195:9:7"
},
"scope": 1932,
"src": "156:49:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1891,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "feeToSetter",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1887,
"nodeType": "ParameterList",
"parameters": [],
"src": "231:2:7"
},
"returnParameters": {
"id": 1890,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1889,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1891,
"src": "257:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1888,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "257:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "256:9:7"
},
"scope": 1932,
"src": "211:55:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1900,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPair",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1896,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1893,
"name": "tokenA",
"nodeType": "VariableDeclaration",
"scope": 1900,
"src": "291:14:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1892,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "291:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1895,
"name": "tokenB",
"nodeType": "VariableDeclaration",
"scope": 1900,
"src": "307:14:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1894,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "307:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "290:32:7"
},
"returnParameters": {
"id": 1899,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1898,
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 1900,
"src": "346:12:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1897,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "346:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "345:14:7"
},
"scope": 1932,
"src": "274:86:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1907,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allPairs",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1903,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1902,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1907,
"src": "384:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1901,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "384:4:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "383:6:7"
},
"returnParameters": {
"id": 1906,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1905,
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 1907,
"src": "413:12:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1904,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "413:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "412:14:7"
},
"scope": 1932,
"src": "366:61:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1912,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allPairsLength",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1908,
"nodeType": "ParameterList",
"parameters": [],
"src": "456:2:7"
},
"returnParameters": {
"id": 1911,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1910,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1912,
"src": "482:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1909,
"name": "uin