// 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 IEnergiswapPairsManager { event Mint(address indexed pair, address indexed sender, uint amount0, uint amount1, address indexed to); event Burn(address indexed pair, address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(address indexed sender, uint112 reserve0, uint112 reserve1); function pairsManagerStorage() external view returns (address); function pairsERC20() external view returns (address); function destroy(address _newImpl) external; function migrate(address _oldImpl) external; function registerPair(address _pairProxy, address _pairStorage, address _erc20Storage) external; function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function approve(address spender, uint value) external returns (bool result); function transfer(address to, uint value) external returns (bool result); function transferFrom(address from, address to, uint value) external returns (bool result); function redeemLiquidity(address router, address owner, uint value) external returns (bool result); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; function emitApproval(address pair, address owner, address spender, uint value) external; function emitTransfer(address pair, address from, address to, uint value) external; function factory() external view returns (address _factory); function getReserves() external view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast); function token0() external view returns (address _token0); function token1() external view returns (address _token1); function price0CumulativeLast() external view returns (uint _price0CumulativeLast); function price1CumulativeLast() external view returns (uint _price1CumulativeLast); function kLast() external view returns (uint _kLast); function nonce(address owner) external view returns(uint _nonce); function name() external view returns(string memory _name); function symbol() external view returns(string memory _symbol); function decimals() external view returns(uint8 _decimals); function totalSupply() external view returns (uint _totalSupply); function balanceOf(address account) external view returns (uint _balance); function allowance(address owner, address spender) external view returns (uint _allowance); }