Expand description
Generated by the following Solidity interface…
interface ZeroXUniswapV3Feature {
constructor(address weth, address uniFactory, bytes32 poolInitCodeHash);
function FEATURE_NAME() external view returns (string memory);
function FEATURE_VERSION() external view returns (uint256);
function _sellHeldTokenForTokenToUniswapV3(bytes memory encodedPath, uint256 sellAmount, uint256 minBuyAmount, address recipient) external returns (uint256 buyAmount);
function _sellTokenForTokenToUniswapV3(bytes memory encodedPath, uint256 sellAmount, uint256 minBuyAmount, address recipient, address payer) external returns (uint256 buyAmount);
function migrate() external returns (bytes4 success);
function sellEthForTokenToUniswapV3(bytes memory encodedPath, uint256 minBuyAmount, address recipient) external payable returns (uint256 buyAmount);
function sellTokenForEthToUniswapV3(bytes memory encodedPath, uint256 sellAmount, uint256 minBuyAmount, address payable recipient) external returns (uint256 buyAmount);
function sellTokenForTokenToUniswapV3(bytes memory encodedPath, uint256 sellAmount, uint256 minBuyAmount, address recipient) external returns (uint256 buyAmount);
function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes memory data) external;
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "weth",
"type": "address",
"internalType": "contract IEtherToken"
},
{
"name": "uniFactory",
"type": "address",
"internalType": "address"
},
{
"name": "poolInitCodeHash",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "FEATURE_NAME",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "FEATURE_VERSION",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "_sellHeldTokenForTokenToUniswapV3",
"inputs": [
{
"name": "encodedPath",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "sellAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minBuyAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "recipient",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "buyAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "_sellTokenForTokenToUniswapV3",
"inputs": [
{
"name": "encodedPath",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "sellAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minBuyAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "recipient",
"type": "address",
"internalType": "address"
},
{
"name": "payer",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "buyAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "migrate",
"inputs": [],
"outputs": [
{
"name": "success",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "sellEthForTokenToUniswapV3",
"inputs": [
{
"name": "encodedPath",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "minBuyAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "recipient",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "buyAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "payable"
},
{
"type": "function",
"name": "sellTokenForEthToUniswapV3",
"inputs": [
{
"name": "encodedPath",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "sellAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minBuyAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "recipient",
"type": "address",
"internalType": "address payable"
}
],
"outputs": [
{
"name": "buyAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "sellTokenForTokenToUniswapV3",
"inputs": [
{
"name": "encodedPath",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "sellAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minBuyAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "recipient",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "buyAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "uniswapV3SwapCallback",
"inputs": [
{
"name": "amount0Delta",
"type": "int256",
"internalType": "int256"
},
{
"name": "amount1Delta",
"type": "int256",
"internalType": "int256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
}
]
Structs§
- Function with signature
FEATURE_NAME()
and selector0x6ae4b4f7
. - Container type for the return parameters of the
FEATURE_NAME()
function. - Function with signature
FEATURE_VERSION()
and selector0x031b905c
. - Container type for the return parameters of the
FEATURE_VERSION()
function. - Function with signature
_sellHeldTokenForTokenToUniswapV3(bytes,uint256,uint256,address)
and selector0x4a931ba1
. - Container type for the return parameters of the
_sellHeldTokenForTokenToUniswapV3(bytes,uint256,uint256,address)
function. - Function with signature
_sellTokenForTokenToUniswapV3(bytes,uint256,uint256,address,address)
and selector0x168a6432
. - Container type for the return parameters of the
_sellTokenForTokenToUniswapV3(bytes,uint256,uint256,address,address)
function. - Constructor`.
- Function with signature
migrate()
and selector0x8fd3ab80
. - Container type for the return parameters of the
migrate()
function. - Function with signature
sellEthForTokenToUniswapV3(bytes,uint256,address)
and selector0x3598d8ab
. - Container type for the return parameters of the
sellEthForTokenToUniswapV3(bytes,uint256,address)
function. - Function with signature
sellTokenForEthToUniswapV3(bytes,uint256,uint256,address)
and selector0x803ba26d
. - Container type for the return parameters of the
sellTokenForEthToUniswapV3(bytes,uint256,uint256,address)
function. - Function with signature
sellTokenForTokenToUniswapV3(bytes,uint256,uint256,address)
and selector0x6af479b2
. - Container type for the return parameters of the
sellTokenForTokenToUniswapV3(bytes,uint256,uint256,address)
function. - Function with signature
uniswapV3SwapCallback(int256,int256,bytes)
and selector0xfa461e33
. - Container type for the return parameters of the
uniswapV3SwapCallback(int256,int256,bytes)
function.
Enums§
- Container for all the
ZeroXUniswapV3Feature
function calls.