hardlydifficult-eth
Version:
A collection of reusable contracts and Javascript helpers for Ethereum.
1,264 lines • 43.7 kB
JSON
{
"contractName": "IUniswapOracle",
"abi": [
{
"inputs": [],
"name": "PERIOD",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "factory",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_tokenIn",
"type": "address"
},
{
"internalType": "address",
"name": "_tokenOut",
"type": "address"
}
],
"name": "update",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amountIn",
"type": "uint256"
},
{
"internalType": "address",
"name": "_tokenOut",
"type": "address"
}
],
"name": "consult",
"outputs": [
{
"internalType": "uint256",
"name": "_amountOut",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amountIn",
"type": "uint256"
},
{
"internalType": "address",
"name": "_tokenOut",
"type": "address"
}
],
"name": "updateAndConsult",
"outputs": [
{
"internalType": "uint256",
"name": "_amountOut",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.6.10+commit.00c0fcaf\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"PERIOD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_tokenOut\",\"type\":\"address\"}],\"name\":\"consult\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_tokenOut\",\"type\":\"address\"}],\"name\":\"update\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_tokenOut\",\"type\":\"address\"}],\"name\":\"updateAndConsult\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"project:/contracts/protocols/Uniswap/IUniswapOracle.sol\":\"IUniswapOracle\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":2000000},\"remappings\":[]},\"sources\":{\"project:/contracts/protocols/Uniswap/IUniswapOracle.sol\":{\"keccak256\":\"0x05b6d798d77c056327991f472b01b7cba705b0136da35e6ab7253029f08d147a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e2e55aca59c764faafc065bc48086dbb53afbfc02f47c76aebaadd730c635507\",\"dweb:/ipfs/QmeGfMkeibFNkM1ewT5LutvF1Z9XvfCVPSgVz6FTiKNfqG\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"sourceMap": "",
"deployedSourceMap": "",
"source": "\n// SPDX-License-Identifier: MIT\npragma solidity >=0.5.0;\n\ninterface IUniswapOracle\n{\n function PERIOD() external returns (uint);\n function factory() external returns (address);\n function update(\n address _tokenIn,\n address _tokenOut\n ) external;\n function consult(\n address _tokenIn,\n uint _amountIn,\n address _tokenOut\n ) external view\n returns (uint _amountOut);\n function updateAndConsult(\n address _tokenIn,\n uint _amountIn,\n address _tokenOut\n ) external\n returns (uint _amountOut);\n}",
"sourcePath": "/home/circleci/repo/contracts/protocols/Uniswap/IUniswapOracle.sol",
"ast": {
"absolutePath": "project:/contracts/protocols/Uniswap/IUniswapOracle.sol",
"exportedSymbols": {
"IUniswapOracle": [
2909
]
},
"id": 2910,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2869,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "33:24:13"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 2909,
"linearizedBaseContracts": [
2909
],
"name": "IUniswapOracle",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "b4d1d795",
"id": 2874,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "PERIOD",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 2870,
"nodeType": "ParameterList",
"parameters": [],
"src": "105:2:13"
},
"returnParameters": {
"id": 2873,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2872,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2874,
"src": "126:4:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2871,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "126:4:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "125:6:13"
},
"scope": 2909,
"src": "90:42:13",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "c45a0155",
"id": 2879,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "factory",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 2875,
"nodeType": "ParameterList",
"parameters": [],
"src": "153:2:13"
},
"returnParameters": {
"id": 2878,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2877,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2879,
"src": "174:7:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2876,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "174:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "173:9:13"
},
"scope": 2909,
"src": "137:46:13",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "c640752d",
"id": 2886,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "update",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 2884,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2881,
"mutability": "mutable",
"name": "_tokenIn",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2886,
"src": "211:16:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2880,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "211:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2883,
"mutability": "mutable",
"name": "_tokenOut",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2886,
"src": "235:17:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2882,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "235:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "203:55:13"
},
"returnParameters": {
"id": 2885,
"nodeType": "ParameterList",
"parameters": [],
"src": "267:0:13"
},
"scope": 2909,
"src": "188:80:13",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "8c86f1e4",
"id": 2897,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "consult",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 2893,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2888,
"mutability": "mutable",
"name": "_tokenIn",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2897,
"src": "297:16:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2887,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "297:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2890,
"mutability": "mutable",
"name": "_amountIn",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2897,
"src": "321:14:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2889,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "321:4:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2892,
"mutability": "mutable",
"name": "_tokenOut",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2897,
"src": "343:17:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2891,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "343:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "289:77:13"
},
"returnParameters": {
"id": 2896,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2895,
"mutability": "mutable",
"name": "_amountOut",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2897,
"src": "396:15:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2894,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "396:4:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "395:17:13"
},
"scope": 2909,
"src": "273:140:13",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "c1e553e7",
"id": 2908,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "updateAndConsult",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 2904,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2899,
"mutability": "mutable",
"name": "_tokenIn",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2908,
"src": "451:16:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2898,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "451:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2901,
"mutability": "mutable",
"name": "_amountIn",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2908,
"src": "475:14:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2900,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "475:4:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2903,
"mutability": "mutable",
"name": "_tokenOut",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2908,
"src": "497:17:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2902,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "497:7:13",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "443:77:13"
},
"returnParameters": {
"id": 2907,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2906,
"mutability": "mutable",
"name": "_amountOut",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 2908,
"src": "545:15:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2905,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "545:4:13",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "544:17:13"
},
"scope": 2909,
"src": "418:144:13",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 2910,
"src": "59:505:13"
}
],
"src": "33:531:13"
},
"legacyAST": {
"attributes": {
"absolutePath": "project:/contracts/protocols/Uniswap/IUniswapOracle.sol",
"exportedSymbols": {
"IUniswapOracle": [
2909
]
},
"license": "MIT"
},
"children": [
{
"attributes": {
"literals": [
"solidity",
">=",
"0.5",
".0"
]
},
"id": 2869,
"name": "PragmaDirective",
"src": "33:24:13"
},
{
"attributes": {
"abstract": false,
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"linearizedBaseContracts": [
2909
],
"name": "IUniswapOracle",
"scope": 2910
},
"children": [
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "b4d1d795",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "PERIOD",
"overrides": null,
"scope": 2909,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 2870,
"name": "ParameterList",
"src": "105:2:13"
},
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "",
"overrides": null,
"scope": 2874,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 2871,
"name": "ElementaryTypeName",
"src": "126:4:13"
}
],
"id": 2872,
"name": "VariableDeclaration",
"src": "126:4:13"
}
],
"id": 2873,
"name": "ParameterList",
"src": "125:6:13"
}
],
"id": 2874,
"name": "FunctionDefinition",
"src": "90:42:13"
},
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "c45a0155",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "factory",
"overrides": null,
"scope": 2909,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 2875,
"name": "ParameterList",
"src": "153:2:13"
},
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "",
"overrides": null,
"scope": 2879,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 2876,
"name": "ElementaryTypeName",
"src": "174:7:13"
}
],
"id": 2877,
"name": "VariableDeclaration",
"src": "174:7:13"
}
],
"id": 2878,
"name": "ParameterList",
"src": "173:9:13"
}
],
"id": 2879,
"name": "FunctionDefinition",
"src": "137:46:13"
},
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "c640752d",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "update",
"overrides": null,
"scope": 2909,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_tokenIn",
"overrides": null,
"scope": 2886,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 2880,
"name": "ElementaryTypeName",
"src": "211:7:13"
}
],
"id": 2881,
"name": "VariableDeclaration",
"src": "211:16:13"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_tokenOut",
"overrides": null,
"scope": 2886,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 2882,
"name": "ElementaryTypeName",
"src": "235:7:13"
}
],
"id": 2883,
"name": "VariableDeclaration",
"src": "235:17:13"
}
],
"id": 2884,
"name": "ParameterList",
"src": "203:55:13"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 2885,
"name": "ParameterList",
"src": "267:0:13"
}
],
"id": 2886,
"name": "FunctionDefinition",
"src": "188:80:13"
},
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "8c86f1e4",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "consult",
"overrides": null,
"scope": 2909,
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_tokenIn",
"overrides": null,
"scope": 2897,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 2887,
"name": "ElementaryTypeName",
"src": "297:7:13"
}
],
"id": 2888,
"name": "VariableDeclaration",
"src": "297:16:13"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_amountIn",
"overrides": null,
"scope": 2897,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 2889,
"name": "ElementaryTypeName",
"src": "321:4:13"
}
],
"id": 2890,
"name": "VariableDeclaration",
"src": "321:14:13"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_tokenOut",
"overrides": null,
"scope": 2897,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 2891,
"name": "ElementaryTypeName",
"src": "343:7:13"
}
],
"id": 2892,
"name": "VariableDeclaration",
"src": "343:17:13"
}
],
"id": 2893,
"name": "ParameterList",
"src": "289:77:13"
},
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_amountOut",
"overrides": null,
"scope": 2897,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 2894,
"name": "ElementaryTypeName",
"src": "396:4:13"
}
],
"id": 2895,
"name": "VariableDeclaration",
"src": "396:15:13"
}
],
"id": 2896,
"name": "ParameterList",
"src": "395:17:13"
}
],
"id": 2897,
"name": "FunctionDefinition",
"src": "273:140:13"
},
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "c1e553e7",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "updateAndConsult",
"overrides": null,
"scope": 2909,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_tokenIn",
"overrides": null,
"scope": 2908,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 2898,
"name": "ElementaryTypeName",
"src": "451:7:13"
}
],
"id": 2899,
"name": "VariableDeclaration",
"src": "451:16:13"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_amountIn",
"overrides": null,
"scope": 2908,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 2900,
"name": "ElementaryTypeName",
"src": "475:4:13"
}
],
"id": 2901,
"name": "VariableDeclaration",
"src": "475:14:13"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_tokenOut",
"overrides": null,
"scope": 2908,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 2902,
"name": "ElementaryTypeName",
"src": "497:7:13"
}
],
"id": 2903,
"name": "VariableDeclaration",
"src": "497:17:13"
}
],
"id": 2904,
"name": "ParameterList",
"src": "443:77:13"
},
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_amountOut",
"overrides": null,
"scope": 2908,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 2905,
"name": "ElementaryTypeName",
"src": "545:4:13"
}
],
"id": 2906,
"name": "VariableDeclaration",
"src": "545:15:13"
}
],
"id": 2907,
"name": "ParameterList",
"src": "544:17:13"
}
],
"id": 2908,
"name": "FunctionDefinition",
"src": "418:144:13"
}
],
"id": 2909,
"name": "ContractDefinition",
"src": "59:505:13"
}
],
"id": 2910,
"name": "SourceUnit",
"src": "33:531:13"
},
"compiler": {
"name": "solc",
"version": "0.6.10+commit.00c0fcaf.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.1",
"updatedAt": "2021-07-08T17:04:13.781Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}