Skip to content

Instantly share code, notes, and snippets.

@BlinkyStitt
Created February 22, 2019 20:04
Show Gist options
  • Save BlinkyStitt/e3962b8de88bbfd6a352330ef5b87ee8 to your computer and use it in GitHub Desktop.
Save BlinkyStitt/e3962b8de88bbfd6a352330ef5b87ee8 to your computer and use it in GitHub Desktop.
pragma solidity 0.5.4;
/* https://docs.uniswap.io/smart-contract-integration/interface#factory-interface */
interface IUniswapFactory {
// Public Variables
// address public exchangeTemplate;
function exchangeTemplate() external view returns (address _exchangeTemplate);
// uint256 public tokenCount;
function tokenCount() external view returns (uint256 _tokenCount);
// Create Exchange
function createExchange(address token) external returns (address exchange);
// Get Exchange and Token Info
function getExchange(address token) external view returns (address exchange);
function getToken(address exchange) external view returns (address token);
function getTokenWithId(uint256 tokenId) external view returns (address token);
// Never use
function initializeFactory(address template) external;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment