487 lines
18 KiB
JSON
487 lines
18 KiB
JSON
{
|
|
"id": "a41ff6df2b0c5c98d8fc89e1104e7c48",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.26",
|
|
"solcLongVersion": "0.8.26+commit.8a97fa7a",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol": {
|
|
"content": "// SPDX-License-Identifier: GPL-2.0-or-later\r\npragma solidity >=0.5.0;\r\n\r\n/// @title Permissioned pool actions\r\n/// @notice Contains pool methods that may only be called by the factory owner\r\ninterface IUniswapV3PoolOwnerActions {\r\n /// @notice Set the denominator of the protocol's % share of the fees\r\n /// @param feeProtocol0 new protocol fee for token0 of the pool\r\n /// @param feeProtocol1 new protocol fee for token1 of the pool\r\n function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;\r\n\r\n /// @notice Collect the protocol fee accrued to the pool\r\n /// @param recipient The address to which collected protocol fees should be sent\r\n /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1\r\n /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0\r\n /// @return amount0 The protocol fee collected in token0\r\n /// @return amount1 The protocol fee collected in token1\r\n function collectProtocol(\r\n address recipient,\r\n uint128 amount0Requested,\r\n uint128 amount1Requested\r\n ) external returns (uint128 amount0, uint128 amount1);\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/pool/IUniswapV3PoolOwnerActions.sol": {
|
|
"IUniswapV3PoolOwnerActions": {
|
|
"abi": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "recipient",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "amount0Requested",
|
|
"type": "uint128"
|
|
},
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "amount1Requested",
|
|
"type": "uint128"
|
|
}
|
|
],
|
|
"name": "collectProtocol",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "amount0",
|
|
"type": "uint128"
|
|
},
|
|
{
|
|
"internalType": "uint128",
|
|
"name": "amount1",
|
|
"type": "uint128"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "feeProtocol0",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "feeProtocol1",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"name": "setFeeProtocol",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {
|
|
"collectProtocol(address,uint128,uint128)": {
|
|
"params": {
|
|
"amount0Requested": "The maximum amount of token0 to send, can be 0 to collect fees in only token1",
|
|
"amount1Requested": "The maximum amount of token1 to send, can be 0 to collect fees in only token0",
|
|
"recipient": "The address to which collected protocol fees should be sent"
|
|
},
|
|
"returns": {
|
|
"amount0": "The protocol fee collected in token0",
|
|
"amount1": "The protocol fee collected in token1"
|
|
}
|
|
},
|
|
"setFeeProtocol(uint8,uint8)": {
|
|
"params": {
|
|
"feeProtocol0": "new protocol fee for token0 of the pool",
|
|
"feeProtocol1": "new protocol fee for token1 of the pool"
|
|
}
|
|
}
|
|
},
|
|
"title": "Permissioned pool actions",
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": "",
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"gasEstimates": null,
|
|
"legacyAssembly": null,
|
|
"methodIdentifiers": {
|
|
"collectProtocol(address,uint128,uint128)": "85b66729",
|
|
"setFeeProtocol(uint8,uint8)": "8206a4d1"
|
|
}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"amount0Requested\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Requested\",\"type\":\"uint128\"}],\"name\":\"collectProtocol\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"feeProtocol0\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"feeProtocol1\",\"type\":\"uint8\"}],\"name\":\"setFeeProtocol\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"collectProtocol(address,uint128,uint128)\":{\"params\":{\"amount0Requested\":\"The maximum amount of token0 to send, can be 0 to collect fees in only token1\",\"amount1Requested\":\"The maximum amount of token1 to send, can be 0 to collect fees in only token0\",\"recipient\":\"The address to which collected protocol fees should be sent\"},\"returns\":{\"amount0\":\"The protocol fee collected in token0\",\"amount1\":\"The protocol fee collected in token1\"}},\"setFeeProtocol(uint8,uint8)\":{\"params\":{\"feeProtocol0\":\"new protocol fee for token0 of the pool\",\"feeProtocol1\":\"new protocol fee for token1 of the pool\"}}},\"title\":\"Permissioned pool actions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"collectProtocol(address,uint128,uint128)\":{\"notice\":\"Collect the protocol fee accrued to the pool\"},\"setFeeProtocol(uint8,uint8)\":{\"notice\":\"Set the denominator of the protocol's % share of the fees\"}},\"notice\":\"Contains pool methods that may only be called by the factory owner\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol\":\"IUniswapV3PoolOwnerActions\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol\":{\"keccak256\":\"0x9e84507ff95f4247bfc737381f628ae84b78b3c9d6717fd2abec778690a18504\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://19f0d36a524a4d551865a2598ae2a7620e5b916fd781c8e08bbc880606c0abe4\",\"dweb:/ipfs/QmNqaGVukhKWDJLoBT8HyFtoJLUYuhh4LAvCTYxcXs1r34\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {
|
|
"collectProtocol(address,uint128,uint128)": {
|
|
"notice": "Collect the protocol fee accrued to the pool"
|
|
},
|
|
"setFeeProtocol(uint8,uint8)": {
|
|
"notice": "Set the denominator of the protocol's % share of the fees"
|
|
}
|
|
},
|
|
"notice": "Contains pool methods that may only be called by the factory owner",
|
|
"version": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sources": {
|
|
"contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol",
|
|
"exportedSymbols": {
|
|
"IUniswapV3PoolOwnerActions": [
|
|
25
|
|
]
|
|
},
|
|
"id": 26,
|
|
"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": "IUniswapV3PoolOwnerActions",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"documentation": {
|
|
"id": 2,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "74:118:0",
|
|
"text": "@title Permissioned pool actions\n @notice Contains pool methods that may only be called by the factory owner"
|
|
},
|
|
"fullyImplemented": false,
|
|
"id": 25,
|
|
"linearizedBaseContracts": [
|
|
25
|
|
],
|
|
"name": "IUniswapV3PoolOwnerActions",
|
|
"nameLocation": "202:26:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"documentation": {
|
|
"id": 3,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "236:207:0",
|
|
"text": "@notice Set the denominator of the protocol's % share of the fees\n @param feeProtocol0 new protocol fee for token0 of the pool\n @param feeProtocol1 new protocol fee for token1 of the pool"
|
|
},
|
|
"functionSelector": "8206a4d1",
|
|
"id": 10,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setFeeProtocol",
|
|
"nameLocation": "458:14:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 8,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 5,
|
|
"mutability": "mutable",
|
|
"name": "feeProtocol0",
|
|
"nameLocation": "479:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 10,
|
|
"src": "473:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 4,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "473:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 7,
|
|
"mutability": "mutable",
|
|
"name": "feeProtocol1",
|
|
"nameLocation": "499:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 10,
|
|
"src": "493:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
},
|
|
"typeName": {
|
|
"id": 6,
|
|
"name": "uint8",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "493:5:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint8",
|
|
"typeString": "uint8"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "472:40:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 9,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "521:0:0"
|
|
},
|
|
"scope": 25,
|
|
"src": "449:73:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 11,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "530:488:0",
|
|
"text": "@notice Collect the protocol fee accrued to the pool\n @param recipient The address to which collected protocol fees should be sent\n @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1\n @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0\n @return amount0 The protocol fee collected in token0\n @return amount1 The protocol fee collected in token1"
|
|
},
|
|
"functionSelector": "85b66729",
|
|
"id": 24,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "collectProtocol",
|
|
"nameLocation": "1033:15:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 18,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 13,
|
|
"mutability": "mutable",
|
|
"name": "recipient",
|
|
"nameLocation": "1067:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "1059:17:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 12,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1059:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 15,
|
|
"mutability": "mutable",
|
|
"name": "amount0Requested",
|
|
"nameLocation": "1095:16:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "1087:24:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 14,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1087:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 17,
|
|
"mutability": "mutable",
|
|
"name": "amount1Requested",
|
|
"nameLocation": "1130:16:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "1122:24:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 16,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1122:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1048:105:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 23,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 20,
|
|
"mutability": "mutable",
|
|
"name": "amount0",
|
|
"nameLocation": "1180:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "1172:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 19,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1172:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 22,
|
|
"mutability": "mutable",
|
|
"name": "amount1",
|
|
"nameLocation": "1197:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "1189:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
},
|
|
"typeName": {
|
|
"id": 21,
|
|
"name": "uint128",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1189:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint128",
|
|
"typeString": "uint128"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1171:34:0"
|
|
},
|
|
"scope": 25,
|
|
"src": "1024:182:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 26,
|
|
"src": "192:1017:0",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "46:1165:0"
|
|
},
|
|
"id": 0
|
|
}
|
|
}
|
|
}
|
|
} |