uniswapv2router02

package
v0.0.0-...-57124fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Uniswapv2router02ABI = "" /* 27842-byte string literal not displayed */

Uniswapv2router02ABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Uniswapv2router02

type Uniswapv2router02 struct {
	Uniswapv2router02Caller     // Read-only binding to the contract
	Uniswapv2router02Transactor // Write-only binding to the contract
	Uniswapv2router02Filterer   // Log filterer for contract events
}

Uniswapv2router02 is an auto generated Go binding around an Ethereum contract.

func NewUniswapv2router02

func NewUniswapv2router02(address common.Address, backend bind.ContractBackend) (*Uniswapv2router02, error)

NewUniswapv2router02 creates a new instance of Uniswapv2router02, bound to a specific deployed contract.

type Uniswapv2router02Caller

type Uniswapv2router02Caller struct {
	// contains filtered or unexported fields
}

Uniswapv2router02Caller is an auto generated read-only Go binding around an Ethereum contract.

func NewUniswapv2router02Caller

func NewUniswapv2router02Caller(address common.Address, caller bind.ContractCaller) (*Uniswapv2router02Caller, error)

NewUniswapv2router02Caller creates a new read-only instance of Uniswapv2router02, bound to a specific deployed contract.

func (*Uniswapv2router02Caller) Factory

func (_Uniswapv2router02 *Uniswapv2router02Caller) Factory(opts *bind.CallOpts) (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() pure returns(address)

func (*Uniswapv2router02Caller) GetAmountIn

func (_Uniswapv2router02 *Uniswapv2router02Caller) 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 (*Uniswapv2router02Caller) GetAmountOut

func (_Uniswapv2router02 *Uniswapv2router02Caller) 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 (*Uniswapv2router02Caller) GetAmountsIn

func (_Uniswapv2router02 *Uniswapv2router02Caller) 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 (*Uniswapv2router02Caller) GetAmountsOut

func (_Uniswapv2router02 *Uniswapv2router02Caller) 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 (*Uniswapv2router02Caller) Quote

func (_Uniswapv2router02 *Uniswapv2router02Caller) 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)

func (*Uniswapv2router02Caller) WETH

func (_Uniswapv2router02 *Uniswapv2router02Caller) WETH(opts *bind.CallOpts) (common.Address, error)

WETH is a free data retrieval call binding the contract method 0xad5c4648.

Solidity: function WETH() pure returns(address)

type Uniswapv2router02CallerRaw

type Uniswapv2router02CallerRaw struct {
	Contract *Uniswapv2router02Caller // Generic read-only contract binding to access the raw methods on
}

Uniswapv2router02CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*Uniswapv2router02CallerRaw) Call

func (_Uniswapv2router02 *Uniswapv2router02CallerRaw) 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 Uniswapv2router02CallerSession

type Uniswapv2router02CallerSession struct {
	Contract *Uniswapv2router02Caller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts            // Call options to use throughout this session
}

Uniswapv2router02CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*Uniswapv2router02CallerSession) Factory

func (_Uniswapv2router02 *Uniswapv2router02CallerSession) Factory() (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() pure returns(address)

func (*Uniswapv2router02CallerSession) GetAmountIn

func (_Uniswapv2router02 *Uniswapv2router02CallerSession) 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 (*Uniswapv2router02CallerSession) GetAmountOut

func (_Uniswapv2router02 *Uniswapv2router02CallerSession) 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 (*Uniswapv2router02CallerSession) GetAmountsIn

func (_Uniswapv2router02 *Uniswapv2router02CallerSession) 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 (*Uniswapv2router02CallerSession) GetAmountsOut

func (_Uniswapv2router02 *Uniswapv2router02CallerSession) 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 (*Uniswapv2router02CallerSession) Quote

func (_Uniswapv2router02 *Uniswapv2router02CallerSession) 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 (*Uniswapv2router02CallerSession) WETH

func (_Uniswapv2router02 *Uniswapv2router02CallerSession) WETH() (common.Address, error)

WETH is a free data retrieval call binding the contract method 0xad5c4648.

Solidity: function WETH() pure returns(address)

type Uniswapv2router02Filterer

type Uniswapv2router02Filterer struct {
	// contains filtered or unexported fields
}

Uniswapv2router02Filterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewUniswapv2router02Filterer

func NewUniswapv2router02Filterer(address common.Address, filterer bind.ContractFilterer) (*Uniswapv2router02Filterer, error)

NewUniswapv2router02Filterer creates a new log filterer instance of Uniswapv2router02, bound to a specific deployed contract.

type Uniswapv2router02Raw

type Uniswapv2router02Raw struct {
	Contract *Uniswapv2router02 // Generic contract binding to access the raw methods on
}

Uniswapv2router02Raw is an auto generated low-level Go binding around an Ethereum contract.

func (*Uniswapv2router02Raw) Call

func (_Uniswapv2router02 *Uniswapv2router02Raw) 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 (*Uniswapv2router02Raw) Transact

func (_Uniswapv2router02 *Uniswapv2router02Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*Uniswapv2router02Raw) Transfer

func (_Uniswapv2router02 *Uniswapv2router02Raw) 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 Uniswapv2router02Session

type Uniswapv2router02Session struct {
	Contract     *Uniswapv2router02 // 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
}

Uniswapv2router02Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*Uniswapv2router02Session) AddLiquidity

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) AddLiquidityETH

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) Factory

func (_Uniswapv2router02 *Uniswapv2router02Session) Factory() (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() pure returns(address)

func (*Uniswapv2router02Session) GetAmountIn

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) GetAmountOut

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) GetAmountsIn

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) GetAmountsOut

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) Quote

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) RemoveLiquidity

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) RemoveLiquidityETH

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) RemoveLiquidityETHSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) RemoveLiquidityETHWithPermit

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) RemoveLiquidityWithPermit

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) SwapETHForExactTokens

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) SwapExactETHForTokens

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) SwapExactETHForTokensSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) SwapExactTokensForETH

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) SwapExactTokensForETHSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) SwapExactTokensForTokens

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) SwapExactTokensForTokensSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) SwapTokensForExactETH

func (_Uniswapv2router02 *Uniswapv2router02Session) 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 (*Uniswapv2router02Session) SwapTokensForExactTokens

func (_Uniswapv2router02 *Uniswapv2router02Session) 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)

func (*Uniswapv2router02Session) WETH

func (_Uniswapv2router02 *Uniswapv2router02Session) WETH() (common.Address, error)

WETH is a free data retrieval call binding the contract method 0xad5c4648.

Solidity: function WETH() pure returns(address)

type Uniswapv2router02Transactor

type Uniswapv2router02Transactor struct {
	// contains filtered or unexported fields
}

Uniswapv2router02Transactor is an auto generated write-only Go binding around an Ethereum contract.

func NewUniswapv2router02Transactor

func NewUniswapv2router02Transactor(address common.Address, transactor bind.ContractTransactor) (*Uniswapv2router02Transactor, error)

NewUniswapv2router02Transactor creates a new write-only instance of Uniswapv2router02, bound to a specific deployed contract.

func (*Uniswapv2router02Transactor) AddLiquidity

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) AddLiquidityETH

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) RemoveLiquidity

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) RemoveLiquidityETH

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) RemoveLiquidityETHSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) RemoveLiquidityETHWithPermit

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) RemoveLiquidityWithPermit

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) SwapETHForExactTokens

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) SwapExactETHForTokens

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) SwapExactETHForTokensSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) SwapExactTokensForETH

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) SwapExactTokensForETHSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) SwapExactTokensForTokens

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) SwapExactTokensForTokensSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) SwapTokensForExactETH

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 (*Uniswapv2router02Transactor) SwapTokensForExactTokens

func (_Uniswapv2router02 *Uniswapv2router02Transactor) 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 Uniswapv2router02TransactorRaw

type Uniswapv2router02TransactorRaw struct {
	Contract *Uniswapv2router02Transactor // Generic write-only contract binding to access the raw methods on
}

Uniswapv2router02TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*Uniswapv2router02TransactorRaw) Transact

func (_Uniswapv2router02 *Uniswapv2router02TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*Uniswapv2router02TransactorRaw) Transfer

func (_Uniswapv2router02 *Uniswapv2router02TransactorRaw) 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 Uniswapv2router02TransactorSession

type Uniswapv2router02TransactorSession struct {
	Contract     *Uniswapv2router02Transactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts            // Transaction auth options to use throughout this session
}

Uniswapv2router02TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*Uniswapv2router02TransactorSession) AddLiquidity

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) AddLiquidityETH

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) RemoveLiquidity

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) RemoveLiquidityETH

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) RemoveLiquidityETHSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) RemoveLiquidityETHWithPermit

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) RemoveLiquidityWithPermit

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) SwapETHForExactTokens

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) SwapExactETHForTokens

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) SwapExactETHForTokensSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) SwapExactTokensForETH

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) SwapExactTokensForETHSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) SwapExactTokensForTokens

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) SwapTokensForExactETH

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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 (*Uniswapv2router02TransactorSession) SwapTokensForExactTokens

func (_Uniswapv2router02 *Uniswapv2router02TransactorSession) 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL