open-dex/contracts/interfaces/callback/artifacts/build-info/644024fa05163f57d7c207f2865acae2.json
2024-08-24 12:08:46 +03:00

301 lines
12 KiB
JSON

{
"id": "644024fa05163f57d7c207f2865acae2",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/interfaces/callback/IUniswapV3FlashCallback.sol": {
"content": "// SPDX-License-Identifier: GPL-2.0-or-later\r\npragma solidity >=0.5.0;\r\n\r\n/// @title Callback for IUniswapV3PoolActions#flash\r\n/// @notice Any contract that calls IUniswapV3PoolActions#flash must implement this interface\r\ninterface IUniswapV3FlashCallback {\r\n /// @notice Called to `msg.sender` after transferring to the recipient from IUniswapV3Pool#flash.\r\n /// @dev In the implementation you must repay the pool the tokens sent by flash plus the computed fee amounts.\r\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\r\n /// @param fee0 The fee amount in token0 due to the pool by the end of the flash\r\n /// @param fee1 The fee amount in token1 due to the pool by the end of the flash\r\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#flash call\r\n function uniswapV3FlashCallback(\r\n uint256 fee0,\r\n uint256 fee1,\r\n bytes calldata data\r\n ) external;\r\n}\r\n"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
},
"remappings": []
}
},
"output": {
"contracts": {
"contracts/interfaces/callback/IUniswapV3FlashCallback.sol": {
"IUniswapV3FlashCallback": {
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "fee0",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fee1",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "uniswapV3FlashCallback",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {
"uniswapV3FlashCallback(uint256,uint256,bytes)": {
"details": "In the implementation you must repay the pool the tokens sent by flash plus the computed fee amounts. The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.",
"params": {
"data": "Any data passed through by the caller via the IUniswapV3PoolActions#flash call",
"fee0": "The fee amount in token0 due to the pool by the end of the flash",
"fee1": "The fee amount in token1 due to the pool by the end of the flash"
}
}
},
"title": "Callback for IUniswapV3PoolActions#flash",
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"uniswapV3FlashCallback(uint256,uint256,bytes)": "e9cbafb0"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fee0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fee1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"uniswapV3FlashCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"uniswapV3FlashCallback(uint256,uint256,bytes)\":{\"details\":\"In the implementation you must repay the pool the tokens sent by flash plus the computed fee amounts. The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\",\"params\":{\"data\":\"Any data passed through by the caller via the IUniswapV3PoolActions#flash call\",\"fee0\":\"The fee amount in token0 due to the pool by the end of the flash\",\"fee1\":\"The fee amount in token1 due to the pool by the end of the flash\"}}},\"title\":\"Callback for IUniswapV3PoolActions#flash\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"uniswapV3FlashCallback(uint256,uint256,bytes)\":{\"notice\":\"Called to `msg.sender` after transferring to the recipient from IUniswapV3Pool#flash.\"}},\"notice\":\"Any contract that calls IUniswapV3PoolActions#flash must implement this interface\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/callback/IUniswapV3FlashCallback.sol\":\"IUniswapV3FlashCallback\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/callback/IUniswapV3FlashCallback.sol\":{\"keccak256\":\"0x3bb3bd0d45e438e9c9222e633affeb2f708fa60c9d25bb59ed1dbea73be8f6e0\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d2da5814b9acbc2ea6c07d663b05b9b9e5e323ba125250aeae66f61d2f41176c\",\"dweb:/ipfs/QmQM6ekTRV9B2xzG9EfWACb3Z4aTGmbHs7QUsj9LGBn16J\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {
"uniswapV3FlashCallback(uint256,uint256,bytes)": {
"notice": "Called to `msg.sender` after transferring to the recipient from IUniswapV3Pool#flash."
}
},
"notice": "Any contract that calls IUniswapV3PoolActions#flash must implement this interface",
"version": 1
}
}
}
},
"sources": {
"contracts/interfaces/callback/IUniswapV3FlashCallback.sol": {
"ast": {
"absolutePath": "contracts/interfaces/callback/IUniswapV3FlashCallback.sol",
"exportedSymbols": {
"IUniswapV3FlashCallback": [
13
]
},
"id": 14,
"license": "GPL-2.0-or-later",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "46:24:0"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IUniswapV3FlashCallback",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 2,
"nodeType": "StructuredDocumentation",
"src": "74:148:0",
"text": "@title Callback for IUniswapV3PoolActions#flash\n @notice Any contract that calls IUniswapV3PoolActions#flash must implement this interface"
},
"fullyImplemented": false,
"id": 13,
"linearizedBaseContracts": [
13
],
"name": "IUniswapV3FlashCallback",
"nameLocation": "232:23:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"documentation": {
"id": 3,
"nodeType": "StructuredDocumentation",
"src": "263:602:0",
"text": "@notice Called to `msg.sender` after transferring to the recipient from IUniswapV3Pool#flash.\n @dev In the implementation you must repay the pool the tokens sent by flash plus the computed fee amounts.\n The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n @param fee0 The fee amount in token0 due to the pool by the end of the flash\n @param fee1 The fee amount in token1 due to the pool by the end of the flash\n @param data Any data passed through by the caller via the IUniswapV3PoolActions#flash call"
},
"functionSelector": "e9cbafb0",
"id": 12,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "uniswapV3FlashCallback",
"nameLocation": "880:22:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 10,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5,
"mutability": "mutable",
"name": "fee0",
"nameLocation": "921:4:0",
"nodeType": "VariableDeclaration",
"scope": 12,
"src": "913:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "913:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 7,
"mutability": "mutable",
"name": "fee1",
"nameLocation": "944:4:0",
"nodeType": "VariableDeclaration",
"scope": 12,
"src": "936:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "936:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 9,
"mutability": "mutable",
"name": "data",
"nameLocation": "974:4:0",
"nodeType": "VariableDeclaration",
"scope": 12,
"src": "959:19:0",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 8,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "959:5:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "902:83:0"
},
"returnParameters": {
"id": 11,
"nodeType": "ParameterList",
"parameters": [],
"src": "994:0:0"
},
"scope": 13,
"src": "871:124:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 14,
"src": "222:776:0",
"usedErrors": [],
"usedEvents": []
}
],
"src": "46:954:0"
},
"id": 0
}
}
}
}