View Source: contracts/interfaces/IUniswapExchange.sol
IUniswapExchange
Constants & Variables
bytes32 public name;
bytes32 public symbol;
uint256 public decimals;
- tokenAddress()
- factoryAddress()
- addLiquidity(uint256 min_liquidity, uint256 max_tokens, uint256 deadline)
- removeLiquidity(uint256 amount, uint256 min_eth, uint256 min_tokens, uint256 deadline)
- getEthToTokenInputPrice(uint256 eth_sold)
- getEthToTokenOutputPrice(uint256 tokens_bought)
- getTokenToEthInputPrice(uint256 tokens_sold)
- getTokenToEthOutputPrice(uint256 eth_bought)
- ethToTokenSwapInput(uint256 min_tokens, uint256 deadline)
- ethToTokenTransferInput(uint256 min_tokens, uint256 deadline, address recipient)
- ethToTokenSwapOutput(uint256 tokens_bought, uint256 deadline)
- ethToTokenTransferOutput(uint256 tokens_bought, uint256 deadline, address recipient)
- tokenToEthSwapInput(uint256 tokens_sold, uint256 min_eth, uint256 deadline)
- tokenToEthTransferInput(uint256 tokens_sold, uint256 min_eth, uint256 deadline, address recipient)
- tokenToEthSwapOutput(uint256 eth_bought, uint256 max_tokens, uint256 deadline)
- tokenToEthTransferOutput(uint256 eth_bought, uint256 max_tokens, uint256 deadline, address recipient)
- tokenToTokenSwapInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address token_addr)
- tokenToTokenTransferInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address recipient, address token_addr)
- tokenToTokenSwapOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address token_addr)
- tokenToTokenTransferOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address recipient, address token_addr)
- tokenToExchangeSwapInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address exchange_addr)
- tokenToExchangeTransferInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address recipient, address exchange_addr)
- tokenToExchangeSwapOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address exchange_addr)
- tokenToExchangeTransferOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address recipient, address exchange_addr)
- transfer(address _to, uint256 _value)
- transferFrom(address _from, address _to, uint256 value)
- approve(address _spender, uint256 _value)
- allowance(address _owner, address _spender)
- balanceOf(address _owner)
- totalSupply()
- setup(address token_addr)
function tokenAddress() external view
returns(token address)
Arguments
Name | Type | Description |
---|
function factoryAddress() external view
returns(factory address)
Arguments
Name | Type | Description |
---|
function addLiquidity(uint256 min_liquidity, uint256 max_tokens, uint256 deadline) external payable
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
min_liquidity | uint256 | |
max_tokens | uint256 | |
deadline | uint256 |
function removeLiquidity(uint256 amount, uint256 min_eth, uint256 min_tokens, uint256 deadline) external nonpayable
returns(uint256, uint256)
Arguments
Name | Type | Description |
---|---|---|
amount | uint256 | |
min_eth | uint256 | |
min_tokens | uint256 | |
deadline | uint256 |
function getEthToTokenInputPrice(uint256 eth_sold) external view
returns(tokens_bought uint256)
Arguments
Name | Type | Description |
---|---|---|
eth_sold | uint256 |
function getEthToTokenOutputPrice(uint256 tokens_bought) external view
returns(eth_sold uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_bought | uint256 |
function getTokenToEthInputPrice(uint256 tokens_sold) external view
returns(eth_bought uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_sold | uint256 |
function getTokenToEthOutputPrice(uint256 eth_bought) external view
returns(tokens_sold uint256)
Arguments
Name | Type | Description |
---|---|---|
eth_bought | uint256 |
function ethToTokenSwapInput(uint256 min_tokens, uint256 deadline) external payable
returns(tokens_bought uint256)
Arguments
Name | Type | Description |
---|---|---|
min_tokens | uint256 | |
deadline | uint256 |
function ethToTokenTransferInput(uint256 min_tokens, uint256 deadline, address recipient) external payable
returns(tokens_bought uint256)
Arguments
Name | Type | Description |
---|---|---|
min_tokens | uint256 | |
deadline | uint256 | |
recipient | address |
function ethToTokenSwapOutput(uint256 tokens_bought, uint256 deadline) external payable
returns(eth_sold uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_bought | uint256 | |
deadline | uint256 |
function ethToTokenTransferOutput(uint256 tokens_bought, uint256 deadline, address recipient) external payable
returns(eth_sold uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_bought | uint256 | |
deadline | uint256 | |
recipient | address |
function tokenToEthSwapInput(uint256 tokens_sold, uint256 min_eth, uint256 deadline) external nonpayable
returns(eth_bought uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_sold | uint256 | |
min_eth | uint256 | |
deadline | uint256 |
function tokenToEthTransferInput(uint256 tokens_sold, uint256 min_eth, uint256 deadline, address recipient) external nonpayable
returns(eth_bought uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_sold | uint256 | |
min_eth | uint256 | |
deadline | uint256 | |
recipient | address |
function tokenToEthSwapOutput(uint256 eth_bought, uint256 max_tokens, uint256 deadline) external nonpayable
returns(tokens_sold uint256)
Arguments
Name | Type | Description |
---|---|---|
eth_bought | uint256 | |
max_tokens | uint256 | |
deadline | uint256 |
function tokenToEthTransferOutput(uint256 eth_bought, uint256 max_tokens, uint256 deadline, address recipient) external nonpayable
returns(tokens_sold uint256)
Arguments
Name | Type | Description |
---|---|---|
eth_bought | uint256 | |
max_tokens | uint256 | |
deadline | uint256 | |
recipient | address |
function tokenToTokenSwapInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address token_addr) external nonpayable
returns(tokens_bought uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_sold | uint256 | |
min_tokens_bought | uint256 | |
min_eth_bought | uint256 | |
deadline | uint256 | |
token_addr | address |
function tokenToTokenTransferInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address recipient, address token_addr) external nonpayable
returns(tokens_bought uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_sold | uint256 | |
min_tokens_bought | uint256 | |
min_eth_bought | uint256 | |
deadline | uint256 | |
recipient | address | |
token_addr | address |
function tokenToTokenSwapOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address token_addr) external nonpayable
returns(tokens_sold uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_bought | uint256 | |
max_tokens_sold | uint256 | |
max_eth_sold | uint256 | |
deadline | uint256 | |
token_addr | address |
function tokenToTokenTransferOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address recipient, address token_addr) external nonpayable
returns(tokens_sold uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_bought | uint256 | |
max_tokens_sold | uint256 | |
max_eth_sold | uint256 | |
deadline | uint256 | |
recipient | address | |
token_addr | address |
function tokenToExchangeSwapInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address exchange_addr) external nonpayable
returns(tokens_bought uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_sold | uint256 | |
min_tokens_bought | uint256 | |
min_eth_bought | uint256 | |
deadline | uint256 | |
exchange_addr | address |
function tokenToExchangeTransferInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address recipient, address exchange_addr) external nonpayable
returns(tokens_bought uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_sold | uint256 | |
min_tokens_bought | uint256 | |
min_eth_bought | uint256 | |
deadline | uint256 | |
recipient | address | |
exchange_addr | address |
function tokenToExchangeSwapOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address exchange_addr) external nonpayable
returns(tokens_sold uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_bought | uint256 | |
max_tokens_sold | uint256 | |
max_eth_sold | uint256 | |
deadline | uint256 | |
exchange_addr | address |
function tokenToExchangeTransferOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address recipient, address exchange_addr) external nonpayable
returns(tokens_sold uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens_bought | uint256 | |
max_tokens_sold | uint256 | |
max_eth_sold | uint256 | |
deadline | uint256 | |
recipient | address | |
exchange_addr | address |
function transfer(address _to, uint256 _value) external nonpayable
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
_to | address | |
_value | uint256 |
function transferFrom(address _from, address _to, uint256 value) external nonpayable
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
_from | address | |
_to | address | |
value | uint256 |
function approve(address _spender, uint256 _value) external nonpayable
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
_spender | address | |
_value | uint256 |
function allowance(address _owner, address _spender) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
_owner | address | |
_spender | address |
function balanceOf(address _owner) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
_owner | address |
function totalSupply() external view
returns(uint256)
Arguments
Name | Type | Description |
---|
function setup(address token_addr) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
token_addr | address |