Expand description
Generated by the following Solidity interface…
interface ZeroXPancakeSwapFeature {
type ProtocolFork is uint8;
constructor(address wbnb);
function FEATURE_NAME() external view returns (string memory);
function FEATURE_VERSION() external view returns (uint256);
function migrate() external returns (bytes4 success);
function sellToPancakeSwap(address[] memory tokens, uint256 sellAmount, uint256 minBuyAmount, ProtocolFork fork) external payable returns (uint256 buyAmount);
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "wbnb",
"type": "address",
"internalType": "contract IEtherToken"
}
],
"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": "migrate",
"inputs": [],
"outputs": [
{
"name": "success",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "sellToPancakeSwap",
"inputs": [
{
"name": "tokens",
"type": "address[]",
"internalType": "contract IERC20Token[]"
},
{
"name": "sellAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minBuyAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "fork",
"type": "uint8",
"internalType": "enum IPancakeSwapFeature.ProtocolFork"
}
],
"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. - Constructor`.
- Function with signature
migrate()
and selector0x8fd3ab80
. - Container type for the return parameters of the
migrate()
function. - Function with signature
sellToPancakeSwap(address[],uint256,uint256,uint8)
and selector0xc43c9ef6
. - Container type for the return parameters of the
sellToPancakeSwap(address[],uint256,uint256,uint8)
function.
Enums§
- Container for all the
ZeroXPancakeSwapFeature
function calls.