Documentation ¶
Index ¶
- Variables
- type UniswapRouterV2
- type UniswapRouterV2Caller
- func (_UniswapRouterV2 *UniswapRouterV2Caller) Factory(opts *bind.CallOpts) (common.Address, error)
- func (_UniswapRouterV2 *UniswapRouterV2Caller) GetAmountIn(opts *bind.CallOpts, amountOut *big.Int, reserveIn *big.Int, ...) (*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2Caller) GetAmountOut(opts *bind.CallOpts, amountIn *big.Int, reserveIn *big.Int, ...) (*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2Caller) GetAmountsIn(opts *bind.CallOpts, amountOut *big.Int, path []common.Address) ([]*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2Caller) GetAmountsOut(opts *bind.CallOpts, amountIn *big.Int, path []common.Address) ([]*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2Caller) Quote(opts *bind.CallOpts, amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2Caller) WETH(opts *bind.CallOpts) (common.Address, error)
- type UniswapRouterV2CallerRaw
- type UniswapRouterV2CallerSession
- func (_UniswapRouterV2 *UniswapRouterV2CallerSession) Factory() (common.Address, error)
- func (_UniswapRouterV2 *UniswapRouterV2CallerSession) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2CallerSession) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2CallerSession) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2CallerSession) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2CallerSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2CallerSession) WETH() (common.Address, error)
- type UniswapRouterV2Filterer
- type UniswapRouterV2Raw
- func (_UniswapRouterV2 *UniswapRouterV2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_UniswapRouterV2 *UniswapRouterV2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type UniswapRouterV2Session
- func (_UniswapRouterV2 *UniswapRouterV2Session) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) Factory() (common.Address, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) Receive() (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, path []common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Session) WETH() (common.Address, error)
- type UniswapRouterV2Transactor
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) AddLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) AddLiquidityETH(opts *bind.TransactOpts, token common.Address, amountTokenDesired *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) RemoveLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) RemoveLiquidityETH(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) RemoveLiquidityETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) RemoveLiquidityETHWithPermit(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) RemoveLiquidityWithPermit(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapETHForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapExactETHForTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapExactETHForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapExactTokensForETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapExactTokensForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, ...) (*types.Transaction, error)
- type UniswapRouterV2TransactorRaw
- type UniswapRouterV2TransactorSession
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) Receive() (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, path []common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, ...) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var UniswapRouterV2ABI = UniswapRouterV2MetaData.ABI
UniswapRouterV2ABI is the input ABI used to generate the binding from. Deprecated: Use UniswapRouterV2MetaData.ABI instead.
var UniswapRouterV2MetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_factory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_WETH\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"WETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountADesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsIn\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsOut\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveB\",\"type\":\"uint256\"}],\"name\":\"quote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETHSupportingFeeOnTransferTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapETHForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokensSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETHSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokensSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}
UniswapRouterV2MetaData contains all meta data concerning the UniswapRouterV2 contract.
Functions ¶
This section is empty.
Types ¶
type UniswapRouterV2 ¶
type UniswapRouterV2 struct { UniswapRouterV2Caller // Read-only binding to the contract UniswapRouterV2Transactor // Write-only binding to the contract UniswapRouterV2Filterer // Log filterer for contract events }
UniswapRouterV2 is an auto generated Go binding around an Ethereum contract.
func NewUniswapRouterV2 ¶
func NewUniswapRouterV2(address common.Address, backend bind.ContractBackend) (*UniswapRouterV2, error)
NewUniswapRouterV2 creates a new instance of UniswapRouterV2, bound to a specific deployed contract.
type UniswapRouterV2Caller ¶
type UniswapRouterV2Caller struct {
// contains filtered or unexported fields
}
UniswapRouterV2Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewUniswapRouterV2Caller ¶
func NewUniswapRouterV2Caller(address common.Address, caller bind.ContractCaller) (*UniswapRouterV2Caller, error)
NewUniswapRouterV2Caller creates a new read-only instance of UniswapRouterV2, bound to a specific deployed contract.
func (*UniswapRouterV2Caller) Factory ¶
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*UniswapRouterV2Caller) GetAmountIn ¶
func (_UniswapRouterV2 *UniswapRouterV2Caller) GetAmountIn(opts *bind.CallOpts, amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259.
Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn)
func (*UniswapRouterV2Caller) GetAmountOut ¶
func (_UniswapRouterV2 *UniswapRouterV2Caller) GetAmountOut(opts *bind.CallOpts, amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4.
Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut)
func (*UniswapRouterV2Caller) GetAmountsIn ¶
func (_UniswapRouterV2 *UniswapRouterV2Caller) GetAmountsIn(opts *bind.CallOpts, amountOut *big.Int, path []common.Address) ([]*big.Int, error)
GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74.
Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts)
func (*UniswapRouterV2Caller) GetAmountsOut ¶
func (_UniswapRouterV2 *UniswapRouterV2Caller) GetAmountsOut(opts *bind.CallOpts, amountIn *big.Int, path []common.Address) ([]*big.Int, error)
GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f.
Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts)
func (*UniswapRouterV2Caller) Quote ¶
func (_UniswapRouterV2 *UniswapRouterV2Caller) Quote(opts *bind.CallOpts, amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error)
Quote is a free data retrieval call binding the contract method 0xad615dec.
Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB)
type UniswapRouterV2CallerRaw ¶
type UniswapRouterV2CallerRaw struct {
Contract *UniswapRouterV2Caller // Generic read-only contract binding to access the raw methods on
}
UniswapRouterV2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*UniswapRouterV2CallerRaw) Call ¶
func (_UniswapRouterV2 *UniswapRouterV2CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type UniswapRouterV2CallerSession ¶
type UniswapRouterV2CallerSession struct { Contract *UniswapRouterV2Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
UniswapRouterV2CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*UniswapRouterV2CallerSession) Factory ¶
func (_UniswapRouterV2 *UniswapRouterV2CallerSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*UniswapRouterV2CallerSession) GetAmountIn ¶
func (_UniswapRouterV2 *UniswapRouterV2CallerSession) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259.
Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn)
func (*UniswapRouterV2CallerSession) GetAmountOut ¶
func (_UniswapRouterV2 *UniswapRouterV2CallerSession) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4.
Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut)
func (*UniswapRouterV2CallerSession) GetAmountsIn ¶
func (_UniswapRouterV2 *UniswapRouterV2CallerSession) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error)
GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74.
Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts)
func (*UniswapRouterV2CallerSession) GetAmountsOut ¶
func (_UniswapRouterV2 *UniswapRouterV2CallerSession) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error)
GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f.
Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts)
func (*UniswapRouterV2CallerSession) Quote ¶
func (_UniswapRouterV2 *UniswapRouterV2CallerSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error)
Quote is a free data retrieval call binding the contract method 0xad615dec.
Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB)
type UniswapRouterV2Filterer ¶
type UniswapRouterV2Filterer struct {
// contains filtered or unexported fields
}
UniswapRouterV2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewUniswapRouterV2Filterer ¶
func NewUniswapRouterV2Filterer(address common.Address, filterer bind.ContractFilterer) (*UniswapRouterV2Filterer, error)
NewUniswapRouterV2Filterer creates a new log filterer instance of UniswapRouterV2, bound to a specific deployed contract.
type UniswapRouterV2Raw ¶
type UniswapRouterV2Raw struct {
Contract *UniswapRouterV2 // Generic contract binding to access the raw methods on
}
UniswapRouterV2Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*UniswapRouterV2Raw) Call ¶
func (_UniswapRouterV2 *UniswapRouterV2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*UniswapRouterV2Raw) Transact ¶
func (_UniswapRouterV2 *UniswapRouterV2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UniswapRouterV2Raw) Transfer ¶
func (_UniswapRouterV2 *UniswapRouterV2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type UniswapRouterV2Session ¶
type UniswapRouterV2Session struct { Contract *UniswapRouterV2 // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
UniswapRouterV2Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*UniswapRouterV2Session) AddLiquidity ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700.
Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity)
func (*UniswapRouterV2Session) AddLiquidityETH ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719.
Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity)
func (*UniswapRouterV2Session) Factory ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*UniswapRouterV2Session) GetAmountIn ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259.
Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn)
func (*UniswapRouterV2Session) GetAmountOut ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4.
Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut)
func (*UniswapRouterV2Session) GetAmountsIn ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error)
GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74.
Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts)
func (*UniswapRouterV2Session) GetAmountsOut ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error)
GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f.
Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts)
func (*UniswapRouterV2Session) Quote ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error)
Quote is a free data retrieval call binding the contract method 0xad615dec.
Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB)
func (*UniswapRouterV2Session) Receive ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*UniswapRouterV2Session) RemoveLiquidity ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde.
Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB)
func (*UniswapRouterV2Session) RemoveLiquidityETH ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec.
Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH)
func (*UniswapRouterV2Session) RemoveLiquidityETHSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb.
Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH)
func (*UniswapRouterV2Session) RemoveLiquidityETHWithPermit ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a.
Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH)
func (*UniswapRouterV2Session) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984.
Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH)
func (*UniswapRouterV2Session) RemoveLiquidityWithPermit ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c.
Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB)
func (*UniswapRouterV2Session) SwapETHForExactTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41.
Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts)
func (*UniswapRouterV2Session) SwapExactETHForTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5.
Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts)
func (*UniswapRouterV2Session) SwapExactETHForTokensSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95.
Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns()
func (*UniswapRouterV2Session) SwapExactTokensForETH ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5.
Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*UniswapRouterV2Session) SwapExactTokensForETHSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947.
Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns()
func (*UniswapRouterV2Session) SwapExactTokensForTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739.
Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*UniswapRouterV2Session) SwapExactTokensForTokensSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795.
Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns()
func (*UniswapRouterV2Session) SwapTokensForExactETH ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a.
Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*UniswapRouterV2Session) SwapTokensForExactTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Session) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee.
Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
type UniswapRouterV2Transactor ¶
type UniswapRouterV2Transactor struct {
// contains filtered or unexported fields
}
UniswapRouterV2Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewUniswapRouterV2Transactor ¶
func NewUniswapRouterV2Transactor(address common.Address, transactor bind.ContractTransactor) (*UniswapRouterV2Transactor, error)
NewUniswapRouterV2Transactor creates a new write-only instance of UniswapRouterV2, bound to a specific deployed contract.
func (*UniswapRouterV2Transactor) AddLiquidity ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) AddLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700.
Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity)
func (*UniswapRouterV2Transactor) AddLiquidityETH ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) AddLiquidityETH(opts *bind.TransactOpts, token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719.
Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity)
func (*UniswapRouterV2Transactor) Receive ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*UniswapRouterV2Transactor) RemoveLiquidity ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) RemoveLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde.
Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB)
func (*UniswapRouterV2Transactor) RemoveLiquidityETH ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) RemoveLiquidityETH(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec.
Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH)
func (*UniswapRouterV2Transactor) RemoveLiquidityETHSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) RemoveLiquidityETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb.
Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH)
func (*UniswapRouterV2Transactor) RemoveLiquidityETHWithPermit ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) RemoveLiquidityETHWithPermit(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a.
Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH)
func (*UniswapRouterV2Transactor) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984.
Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH)
func (*UniswapRouterV2Transactor) RemoveLiquidityWithPermit ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) RemoveLiquidityWithPermit(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c.
Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB)
func (*UniswapRouterV2Transactor) SwapETHForExactTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapETHForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41.
Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts)
func (*UniswapRouterV2Transactor) SwapExactETHForTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapExactETHForTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5.
Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts)
func (*UniswapRouterV2Transactor) SwapExactETHForTokensSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapExactETHForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95.
Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns()
func (*UniswapRouterV2Transactor) SwapExactTokensForETH ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5.
Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*UniswapRouterV2Transactor) SwapExactTokensForETHSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapExactTokensForETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947.
Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns()
func (*UniswapRouterV2Transactor) SwapExactTokensForTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739.
Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*UniswapRouterV2Transactor) SwapExactTokensForTokensSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapExactTokensForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795.
Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns()
func (*UniswapRouterV2Transactor) SwapTokensForExactETH ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a.
Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*UniswapRouterV2Transactor) SwapTokensForExactTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2Transactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee.
Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
type UniswapRouterV2TransactorRaw ¶
type UniswapRouterV2TransactorRaw struct {
Contract *UniswapRouterV2Transactor // Generic write-only contract binding to access the raw methods on
}
UniswapRouterV2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*UniswapRouterV2TransactorRaw) Transact ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UniswapRouterV2TransactorRaw) Transfer ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type UniswapRouterV2TransactorSession ¶
type UniswapRouterV2TransactorSession struct { Contract *UniswapRouterV2Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
UniswapRouterV2TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*UniswapRouterV2TransactorSession) AddLiquidity ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700.
Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity)
func (*UniswapRouterV2TransactorSession) AddLiquidityETH ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719.
Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity)
func (*UniswapRouterV2TransactorSession) Receive ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*UniswapRouterV2TransactorSession) RemoveLiquidity ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde.
Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB)
func (*UniswapRouterV2TransactorSession) RemoveLiquidityETH ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec.
Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH)
func (*UniswapRouterV2TransactorSession) RemoveLiquidityETHSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb.
Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH)
func (*UniswapRouterV2TransactorSession) RemoveLiquidityETHWithPermit ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a.
Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH)
func (*UniswapRouterV2TransactorSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984.
Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH)
func (*UniswapRouterV2TransactorSession) RemoveLiquidityWithPermit ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c.
Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB)
func (*UniswapRouterV2TransactorSession) SwapETHForExactTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41.
Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts)
func (*UniswapRouterV2TransactorSession) SwapExactETHForTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5.
Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts)
func (*UniswapRouterV2TransactorSession) SwapExactETHForTokensSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95.
Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns()
func (*UniswapRouterV2TransactorSession) SwapExactTokensForETH ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5.
Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*UniswapRouterV2TransactorSession) SwapExactTokensForETHSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947.
Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns()
func (*UniswapRouterV2TransactorSession) SwapExactTokensForTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739.
Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*UniswapRouterV2TransactorSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795.
Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns()
func (*UniswapRouterV2TransactorSession) SwapTokensForExactETH ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a.
Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*UniswapRouterV2TransactorSession) SwapTokensForExactTokens ¶
func (_UniswapRouterV2 *UniswapRouterV2TransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee.
Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts)