Documentation ¶
Index ¶
- Constants
- type Router
- type RouterCaller
- func (_Router *RouterCaller) Factory(opts *bind.CallOpts) (common.Address, error)
- func (_Router *RouterCaller) GetAmountIn(opts *bind.CallOpts, amountOut *big.Int, reserveIn *big.Int, ...) (*big.Int, error)
- func (_Router *RouterCaller) GetAmountOut(opts *bind.CallOpts, amountIn *big.Int, reserveIn *big.Int, ...) (*big.Int, error)
- func (_Router *RouterCaller) GetAmountsIn(opts *bind.CallOpts, amountOut *big.Int, path []common.Address) ([]*big.Int, error)
- func (_Router *RouterCaller) GetAmountsOut(opts *bind.CallOpts, amountIn *big.Int, path []common.Address) ([]*big.Int, error)
- func (_Router *RouterCaller) Quote(opts *bind.CallOpts, amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error)
- func (_Router *RouterCaller) WETH(opts *bind.CallOpts) (common.Address, error)
- type RouterCallerRaw
- type RouterCallerSession
- func (_Router *RouterCallerSession) Factory() (common.Address, error)
- func (_Router *RouterCallerSession) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
- func (_Router *RouterCallerSession) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
- func (_Router *RouterCallerSession) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error)
- func (_Router *RouterCallerSession) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error)
- func (_Router *RouterCallerSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error)
- func (_Router *RouterCallerSession) WETH() (common.Address, error)
- type RouterFilterer
- type RouterRaw
- func (_Router *RouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Router *RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Router *RouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type RouterSession
- func (_Router *RouterSession) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterSession) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterSession) Factory() (common.Address, error)
- func (_Router *RouterSession) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
- func (_Router *RouterSession) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error)
- func (_Router *RouterSession) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error)
- func (_Router *RouterSession) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error)
- func (_Router *RouterSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error)
- func (_Router *RouterSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterSession) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterSession) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterSession) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterSession) WETH() (common.Address, error)
- type RouterTransactor
- func (_Router *RouterTransactor) AddLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) AddLiquidityETH(opts *bind.TransactOpts, token common.Address, amountTokenDesired *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) RemoveLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) RemoveLiquidityETH(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) RemoveLiquidityETHWithPermit(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) RemoveLiquidityWithPermit(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) SwapETHForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) SwapExactETHForTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, ...) (*types.Transaction, error)
- type RouterTransactorRaw
- type RouterTransactorSession
- func (_Router *RouterTransactorSession) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, ...) (*types.Transaction, error)
Constants ¶
const RouterABI = "" /* 10706-byte string literal not displayed */
RouterABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct { RouterCaller // Read-only binding to the contract RouterTransactor // Write-only binding to the contract RouterFilterer // Log filterer for contract events }
Router is an auto generated Go binding around an Ethereum contract.
type RouterCaller ¶
type RouterCaller struct {
// contains filtered or unexported fields
}
RouterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewRouterCaller ¶
func NewRouterCaller(address common.Address, caller bind.ContractCaller) (*RouterCaller, error)
NewRouterCaller creates a new read-only instance of Router, bound to a specific deployed contract.
func (*RouterCaller) Factory ¶
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() pure returns(address)
func (*RouterCaller) GetAmountIn ¶
func (_Router *RouterCaller) 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 (*RouterCaller) GetAmountOut ¶
func (_Router *RouterCaller) 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 (*RouterCaller) GetAmountsIn ¶
func (_Router *RouterCaller) 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 (*RouterCaller) GetAmountsOut ¶
func (_Router *RouterCaller) 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 (*RouterCaller) Quote ¶
func (_Router *RouterCaller) 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 RouterCallerRaw ¶
type RouterCallerRaw struct {
Contract *RouterCaller // Generic read-only contract binding to access the raw methods on
}
RouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*RouterCallerRaw) Call ¶
func (_Router *RouterCallerRaw) 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 RouterCallerSession ¶
type RouterCallerSession struct { Contract *RouterCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
RouterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*RouterCallerSession) Factory ¶
func (_Router *RouterCallerSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() pure returns(address)
func (*RouterCallerSession) GetAmountIn ¶
func (_Router *RouterCallerSession) 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 (*RouterCallerSession) GetAmountOut ¶
func (_Router *RouterCallerSession) 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 (*RouterCallerSession) GetAmountsIn ¶
func (_Router *RouterCallerSession) 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 (*RouterCallerSession) GetAmountsOut ¶
func (_Router *RouterCallerSession) 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 (*RouterCallerSession) Quote ¶
func (_Router *RouterCallerSession) 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 RouterFilterer ¶
type RouterFilterer struct {
// contains filtered or unexported fields
}
RouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewRouterFilterer ¶
func NewRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*RouterFilterer, error)
NewRouterFilterer creates a new log filterer instance of Router, bound to a specific deployed contract.
type RouterRaw ¶
type RouterRaw struct {
Contract *Router // Generic contract binding to access the raw methods on
}
RouterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*RouterRaw) Call ¶
func (_Router *RouterRaw) 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 (*RouterRaw) Transact ¶
func (_Router *RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RouterRaw) Transfer ¶
func (_Router *RouterRaw) 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 RouterSession ¶
type RouterSession struct { Contract *Router // 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 }
RouterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*RouterSession) AddLiquidity ¶
func (_Router *RouterSession) 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 (*RouterSession) AddLiquidityETH ¶
func (_Router *RouterSession) 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 (*RouterSession) Factory ¶
func (_Router *RouterSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() pure returns(address)
func (*RouterSession) GetAmountIn ¶
func (_Router *RouterSession) 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 (*RouterSession) GetAmountOut ¶
func (_Router *RouterSession) 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 (*RouterSession) GetAmountsIn ¶
func (_Router *RouterSession) 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 (*RouterSession) GetAmountsOut ¶
func (_Router *RouterSession) 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 (*RouterSession) Quote ¶
func (_Router *RouterSession) 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 (*RouterSession) RemoveLiquidity ¶
func (_Router *RouterSession) 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 (*RouterSession) RemoveLiquidityETH ¶
func (_Router *RouterSession) 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 (*RouterSession) RemoveLiquidityETHWithPermit ¶
func (_Router *RouterSession) 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 (*RouterSession) RemoveLiquidityWithPermit ¶
func (_Router *RouterSession) 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 (*RouterSession) SwapETHForExactTokens ¶
func (_Router *RouterSession) 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 (*RouterSession) SwapExactETHForTokens ¶
func (_Router *RouterSession) 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 (*RouterSession) SwapExactTokensForETH ¶
func (_Router *RouterSession) 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 (*RouterSession) SwapExactTokensForTokens ¶
func (_Router *RouterSession) 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 (*RouterSession) SwapTokensForExactETH ¶
func (_Router *RouterSession) 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 (*RouterSession) SwapTokensForExactTokens ¶
func (_Router *RouterSession) 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 RouterTransactor ¶
type RouterTransactor struct {
// contains filtered or unexported fields
}
RouterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewRouterTransactor ¶
func NewRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*RouterTransactor, error)
NewRouterTransactor creates a new write-only instance of Router, bound to a specific deployed contract.
func (*RouterTransactor) AddLiquidity ¶
func (_Router *RouterTransactor) 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 (*RouterTransactor) AddLiquidityETH ¶
func (_Router *RouterTransactor) 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 (*RouterTransactor) RemoveLiquidity ¶
func (_Router *RouterTransactor) 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 (*RouterTransactor) RemoveLiquidityETH ¶
func (_Router *RouterTransactor) 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 (*RouterTransactor) RemoveLiquidityETHWithPermit ¶
func (_Router *RouterTransactor) 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 (*RouterTransactor) RemoveLiquidityWithPermit ¶
func (_Router *RouterTransactor) 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 (*RouterTransactor) SwapETHForExactTokens ¶
func (_Router *RouterTransactor) 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 (*RouterTransactor) SwapExactETHForTokens ¶
func (_Router *RouterTransactor) 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 (*RouterTransactor) SwapExactTokensForETH ¶
func (_Router *RouterTransactor) 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 (*RouterTransactor) SwapExactTokensForTokens ¶
func (_Router *RouterTransactor) 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 (*RouterTransactor) SwapTokensForExactETH ¶
func (_Router *RouterTransactor) 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 (*RouterTransactor) SwapTokensForExactTokens ¶
func (_Router *RouterTransactor) 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 RouterTransactorRaw ¶
type RouterTransactorRaw struct {
Contract *RouterTransactor // Generic write-only contract binding to access the raw methods on
}
RouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*RouterTransactorRaw) Transact ¶
func (_Router *RouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RouterTransactorRaw) Transfer ¶
func (_Router *RouterTransactorRaw) 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 RouterTransactorSession ¶
type RouterTransactorSession struct { Contract *RouterTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
RouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*RouterTransactorSession) AddLiquidity ¶
func (_Router *RouterTransactorSession) 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 (*RouterTransactorSession) AddLiquidityETH ¶
func (_Router *RouterTransactorSession) 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 (*RouterTransactorSession) RemoveLiquidity ¶
func (_Router *RouterTransactorSession) 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 (*RouterTransactorSession) RemoveLiquidityETH ¶
func (_Router *RouterTransactorSession) 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 (*RouterTransactorSession) RemoveLiquidityETHWithPermit ¶
func (_Router *RouterTransactorSession) 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 (*RouterTransactorSession) RemoveLiquidityWithPermit ¶
func (_Router *RouterTransactorSession) 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 (*RouterTransactorSession) SwapETHForExactTokens ¶
func (_Router *RouterTransactorSession) 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 (*RouterTransactorSession) SwapExactETHForTokens ¶
func (_Router *RouterTransactorSession) 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 (*RouterTransactorSession) SwapExactTokensForETH ¶
func (_Router *RouterTransactorSession) 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 (*RouterTransactorSession) SwapExactTokensForTokens ¶
func (_Router *RouterTransactorSession) 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 (*RouterTransactorSession) SwapTokensForExactETH ¶
func (_Router *RouterTransactorSession) 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 (*RouterTransactorSession) SwapTokensForExactTokens ¶
func (_Router *RouterTransactorSession) 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)