Module brontes_classifier::ZeroXUniswapFeaure
source · Expand description
Generated by the following Solidity interface…
interface ZeroXUniswapFeaure {
constructor(address weth, address allowanceTarget, bytes32 greedyTokensBloomFilter);
function FEATURE_NAME() external view returns (string memory);
function FEATURE_VERSION() external view returns (uint256);
function GREEDY_TOKENS_BLOOM_FILTER() external view returns (bytes32);
function migrate() external returns (bytes4 success);
function sellToUniswap(address[] memory tokens, uint256 sellAmount, uint256 minBuyAmount, bool isSushi) external payable returns (uint256 buyAmount);
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "weth",
"type": "address",
"internalType": "contract IEtherTokenV06"
},
{
"name": "allowanceTarget",
"type": "address",
"internalType": "contract IAllowanceTarget"
},
{
"name": "greedyTokensBloomFilter",
"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": "GREEDY_TOKENS_BLOOM_FILTER",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "migrate",
"inputs": [],
"outputs": [
{
"name": "success",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "sellToUniswap",
"inputs": [
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "sellAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minBuyAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "isSushi",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [
{
"name": "buyAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "payable"
}
]
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
GREEDY_TOKENS_BLOOM_FILTER()
and selector0xd925a56d
. - Container type for the return parameters of the
GREEDY_TOKENS_BLOOM_FILTER()
function. - Constructor`.
- Function with signature
migrate()
and selector0x8fd3ab80
. - Container type for the return parameters of the
migrate()
function. - Function with signature
sellToUniswap(address[],uint256,uint256,bool)
and selector0xd9627aa4
. - Container type for the return parameters of the
sellToUniswap(address[],uint256,uint256,bool)
function.
Enums§
- Container for all the
ZeroXUniswapFeaure
function calls.