Module brontes_classifier::ZeroXPancakeSwapFeature

source ·
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§

Enums§