26 lines
1.0 KiB
Solidity
26 lines
1.0 KiB
Solidity
pragma solidity 0.5.14;
|
|
|
|
interface IUniswapV2 {
|
|
event Mint(address indexed sender, uint amount0, uint amount1);
|
|
event Burn(address indexed sender, uint amount0, uint amount1);
|
|
event Swap(address indexed sender, address indexed tokenIn, uint amountIn, uint amountOut);
|
|
event Sync(uint112 reserve0, uint112 reserve1);
|
|
|
|
function factory() external view returns (address);
|
|
function token0() external view returns (address);
|
|
function token1() external view returns (address);
|
|
|
|
function reserve0() external view returns (uint112);
|
|
function reserve1() external view returns (uint112);
|
|
function blockNumberLast() external view returns (uint32);
|
|
function price0CumulativeLast() external view returns (uint);
|
|
function price1CumulativeLast() external view returns (uint);
|
|
|
|
function mint() external returns (uint liquidity);
|
|
function burn() external returns (uint amount0, uint amount1);
|
|
function swap(address tokenIn, uint amountOut) external;
|
|
|
|
function skim() external;
|
|
function sync() external;
|
|
}
|