Expand description
Module containing a contract’s types and functions.
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(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(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
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 initialize(address, address) external;
}
Modules§
- Contains dynamic ABI definitions for this contract.
Structs§
- Event with signature
Approval(address,address,uint256)
and selector0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925
. - Event with signature
Burn(address,uint256,uint256,address)
and selector0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496
. - Function with signature
DOMAIN_SEPARATOR()
and selector0x3644e515
. - Container type for the return parameters of the
DOMAIN_SEPARATOR()
function. - A
IUniswapV2Pair
instance. - Function with signature
MINIMUM_LIQUIDITY()
and selector0xba9a7a56
. - Container type for the return parameters of the
MINIMUM_LIQUIDITY()
function. - Event with signature
Mint(address,uint256,uint256)
and selector0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f
. - Function with signature
PERMIT_TYPEHASH()
and selector0x30adf81f
. - Container type for the return parameters of the
PERMIT_TYPEHASH()
function. - Event with signature
Swap(address,uint256,uint256,uint256,uint256,address)
and selector0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822
. - Event with signature
Sync(uint112,uint112)
and selector0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1
. - Event with signature
Transfer(address,address,uint256)
and selector0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
. - Function with signature
allowance(address,address)
and selector0xdd62ed3e
. - Container type for the return parameters of the
allowance(address,address)
function. - Function with signature
approve(address,uint256)
and selector0x095ea7b3
. - Container type for the return parameters of the
approve(address,uint256)
function. - Function with signature
balanceOf(address)
and selector0x70a08231
. - Container type for the return parameters of the
balanceOf(address)
function. - Function with signature
burn(address)
and selector0x89afcb44
. - Container type for the return parameters of the
burn(address)
function. - Function with signature
decimals()
and selector0x313ce567
. - Container type for the return parameters of the
decimals()
function. - Function with signature
factory()
and selector0xc45a0155
. - Container type for the return parameters of the
factory()
function. - Function with signature
getReserves()
and selector0x0902f1ac
. - Container type for the return parameters of the
getReserves()
function. - Function with signature
initialize(address,address)
and selector0x485cc955
. - Container type for the return parameters of the
initialize(address,address)
function. - Function with signature
kLast()
and selector0x7464fc3d
. - Container type for the return parameters of the
kLast()
function. - Function with signature
mint(address)
and selector0x6a627842
. - Container type for the return parameters of the
mint(address)
function. - Function with signature
name()
and selector0x06fdde03
. - Container type for the return parameters of the
name()
function. - Function with signature
nonces(address)
and selector0x7ecebe00
. - Container type for the return parameters of the
nonces(address)
function. - Function with signature
permit(address,address,uint256,uint256,uint8,bytes32,bytes32)
and selector0xd505accf
. - Container type for the return parameters of the
permit(address,address,uint256,uint256,uint8,bytes32,bytes32)
function. - Function with signature
price0CumulativeLast()
and selector0x5909c0d5
. - Container type for the return parameters of the
price0CumulativeLast()
function. - Function with signature
price1CumulativeLast()
and selector0x5a3d5493
. - Container type for the return parameters of the
price1CumulativeLast()
function. - Function with signature
skim(address)
and selector0xbc25cf77
. - Container type for the return parameters of the
skim(address)
function. - Function with signature
swap(uint256,uint256,address,bytes)
and selector0x022c0d9f
. - Container type for the return parameters of the
swap(uint256,uint256,address,bytes)
function. - Function with signature
symbol()
and selector0x95d89b41
. - Container type for the return parameters of the
symbol()
function. - Function with signature
sync()
and selector0xfff6cae9
. - Container type for the return parameters of the
sync()
function. - Function with signature
token0()
and selector0x0dfe1681
. - Container type for the return parameters of the
token0()
function. - Function with signature
token1()
and selector0xd21220a7
. - Container type for the return parameters of the
token1()
function. - Function with signature
totalSupply()
and selector0x18160ddd
. - Container type for the return parameters of the
totalSupply()
function. - Function with signature
transfer(address,uint256)
and selector0xa9059cbb
. - Function with signature
transferFrom(address,address,uint256)
and selector0x23b872dd
. - Container type for the return parameters of the
transferFrom(address,address,uint256)
function. - Container type for the return parameters of the
transfer(address,uint256)
function.
Enums§
- Container for all the
IUniswapV2Pair
function calls. - Container for all the
IUniswapV2Pair
events.
Functions§
- Creates a new wrapper around an on-chain
IUniswapV2Pair
contract instance.