// Copyright (C) 2020 Energi Core // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see . pragma solidity >=0.5.0; interface IEnergiswapFactory { function initialized() external view returns (bool); function factoryStorage() external view returns (address); event PairCreated(address indexed token0, address indexed token1, address pair, uint); function initialize(address _multicall, address _router, address _pairsManager, address _pairsERC20) external; function setRouter(address _router) external; function setPairsManager(address _manager) external; function setPairsERC20(address _pairsERC20) external; function destroy(address _newImpl) external; function migrate(address _oldImpl) external; function createPair( address tokenA, address tokenB ) external returns (address pairProxy); function setFeeTo(address _feeTo) external; function setFeeToSetter(address _feeToSetter) external; function feeTo() external view returns (address _feeTo); function feeToSetter() external view returns (address _feeToSetter); function sporkProxy() external view returns (address _sporkProxy); function getPair(address tokenA, address tokenB) external view returns (address _pair); function allPairs(uint index) external view returns (address _pair); function allPairsLength() external view returns (uint); }