Documentation ¶
Index ¶
- Variables
- type KyberRouter
- type KyberRouterCaller
- func (_KyberRouter *KyberRouterCaller) Factory(opts *bind.CallOpts) (common.Address, error)
- func (_KyberRouter *KyberRouterCaller) GetAmountsIn(opts *bind.CallOpts, amountOut *big.Int, poolsPath []common.Address, ...) ([]*big.Int, error)
- func (_KyberRouter *KyberRouterCaller) GetAmountsOut(opts *bind.CallOpts, amountIn *big.Int, poolsPath []common.Address, ...) ([]*big.Int, error)
- func (_KyberRouter *KyberRouterCaller) Quote(opts *bind.CallOpts, amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error)
- func (_KyberRouter *KyberRouterCaller) Weth(opts *bind.CallOpts) (common.Address, error)
- type KyberRouterCallerRaw
- type KyberRouterCallerSession
- func (_KyberRouter *KyberRouterCallerSession) Factory() (common.Address, error)
- func (_KyberRouter *KyberRouterCallerSession) GetAmountsIn(amountOut *big.Int, poolsPath []common.Address, path []common.Address) ([]*big.Int, error)
- func (_KyberRouter *KyberRouterCallerSession) GetAmountsOut(amountIn *big.Int, poolsPath []common.Address, path []common.Address) ([]*big.Int, error)
- func (_KyberRouter *KyberRouterCallerSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error)
- func (_KyberRouter *KyberRouterCallerSession) Weth() (common.Address, error)
- type KyberRouterFilterer
- type KyberRouterRaw
- func (_KyberRouter *KyberRouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_KyberRouter *KyberRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type KyberRouterSession
- func (_KyberRouter *KyberRouterSession) AddLiquidity(tokenA common.Address, tokenB common.Address, pool common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) AddLiquidityETH(token common.Address, pool common.Address, amountTokenDesired *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) AddLiquidityNewPool(tokenA common.Address, tokenB common.Address, ampBps uint32, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) AddLiquidityNewPoolETH(token common.Address, ampBps uint32, amountTokenDesired *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) Factory() (common.Address, error)
- func (_KyberRouter *KyberRouterSession) GetAmountsIn(amountOut *big.Int, poolsPath []common.Address, path []common.Address) ([]*big.Int, error)
- func (_KyberRouter *KyberRouterSession) GetAmountsOut(amountIn *big.Int, poolsPath []common.Address, path []common.Address) ([]*big.Int, error)
- func (_KyberRouter *KyberRouterSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error)
- func (_KyberRouter *KyberRouterSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, pool common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) RemoveLiquidityETH(token common.Address, pool common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, pool common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) RemoveLiquidityETHWithPermit(token common.Address, pool common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, pool common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, pool common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) SwapETHForExactTokens(amountOut *big.Int, poolsPath []common.Address, path []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) SwapExactETHForTokens(amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterSession) Weth() (common.Address, error)
- type KyberRouterTransactor
- func (_KyberRouter *KyberRouterTransactor) AddLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) AddLiquidityETH(opts *bind.TransactOpts, token common.Address, pool common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) AddLiquidityNewPool(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) AddLiquidityNewPoolETH(opts *bind.TransactOpts, token common.Address, ampBps uint32, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) RemoveLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) RemoveLiquidityETH(opts *bind.TransactOpts, token common.Address, pool common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) RemoveLiquidityETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, pool common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) RemoveLiquidityETHWithPermit(opts *bind.TransactOpts, token common.Address, pool common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, pool common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) RemoveLiquidityWithPermit(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) SwapETHForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) SwapExactETHForTokens(opts *bind.TransactOpts, amountOutMin *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) SwapExactETHForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountOutMin *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) SwapExactTokensForETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) SwapExactTokensForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, ...) (*types.Transaction, error)
- type KyberRouterTransactorRaw
- type KyberRouterTransactorSession
- func (_KyberRouter *KyberRouterTransactorSession) AddLiquidity(tokenA common.Address, tokenB common.Address, pool common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) AddLiquidityETH(token common.Address, pool common.Address, amountTokenDesired *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) AddLiquidityNewPool(tokenA common.Address, tokenB common.Address, ampBps uint32, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) AddLiquidityNewPoolETH(token common.Address, ampBps uint32, amountTokenDesired *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, pool common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) RemoveLiquidityETH(token common.Address, pool common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, pool common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) RemoveLiquidityETHWithPermit(token common.Address, pool common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, pool common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, pool common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) SwapETHForExactTokens(amountOut *big.Int, poolsPath []common.Address, path []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) SwapExactETHForTokens(amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
- func (_KyberRouter *KyberRouterTransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, poolsPath []common.Address, ...) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var KyberRouterABI = KyberRouterMetaData.ABI
KyberRouterABI is the input ABI used to generate the binding from. Deprecated: Use KyberRouterMetaData.ABI instead.
var KyberRouterMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool\",\"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\":\"uint256[2]\",\"name\":\"vReserveRatioBounds\",\"type\":\"uint256[2]\"},{\"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\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256[2]\",\"name\":\"vReserveRatioBounds\",\"type\":\"uint256[2]\"},{\"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\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"ampBps\",\"type\":\"uint32\"},{\"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\":\"addLiquidityNewPool\",\"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\":\"uint32\",\"name\":\"ampBps\",\"type\":\"uint32\"},{\"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\":\"addLiquidityNewPoolETH\",\"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\":\"address[]\",\"name\":\"poolsPath\",\"type\":\"address[]\"},{\"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\":\"poolsPath\",\"type\":\"address[]\"},{\"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\":\"address\",\"name\":\"pool\",\"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\":\"address\",\"name\":\"pool\",\"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\":\"address\",\"name\":\"pool\",\"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\":\"address\",\"name\":\"pool\",\"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\":\"address\",\"name\":\"pool\",\"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\":\"address\",\"name\":\"pool\",\"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\":\"poolsPath\",\"type\":\"address[]\"},{\"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\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"poolsPath\",\"type\":\"address[]\"},{\"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\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"poolsPath\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokensSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"poolsPath\",\"type\":\"address[]\"},{\"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\":\"poolsPath\",\"type\":\"address[]\"},{\"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\":\"poolsPath\",\"type\":\"address[]\"},{\"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\":\"poolsPath\",\"type\":\"address[]\"},{\"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\":\"poolsPath\",\"type\":\"address[]\"},{\"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\":\"poolsPath\",\"type\":\"address[]\"},{\"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\"},{\"inputs\":[],\"name\":\"weth\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
KyberRouterMetaData contains all meta data concerning the KyberRouter contract.
Functions ¶
This section is empty.
Types ¶
type KyberRouter ¶
type KyberRouter struct { KyberRouterCaller // Read-only binding to the contract KyberRouterTransactor // Write-only binding to the contract KyberRouterFilterer // Log filterer for contract events }
KyberRouter is an auto generated Go binding around an Ethereum contract.
func NewKyberRouter ¶
func NewKyberRouter(address common.Address, backend bind.ContractBackend) (*KyberRouter, error)
NewKyberRouter creates a new instance of KyberRouter, bound to a specific deployed contract.
type KyberRouterCaller ¶
type KyberRouterCaller struct {
// contains filtered or unexported fields
}
KyberRouterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewKyberRouterCaller ¶
func NewKyberRouterCaller(address common.Address, caller bind.ContractCaller) (*KyberRouterCaller, error)
NewKyberRouterCaller creates a new read-only instance of KyberRouter, bound to a specific deployed contract.
func (*KyberRouterCaller) Factory ¶
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*KyberRouterCaller) GetAmountsIn ¶
func (_KyberRouter *KyberRouterCaller) GetAmountsIn(opts *bind.CallOpts, amountOut *big.Int, poolsPath []common.Address, path []common.Address) ([]*big.Int, error)
GetAmountsIn is a free data retrieval call binding the contract method 0x9e269b68.
Solidity: function getAmountsIn(uint256 amountOut, address[] poolsPath, address[] path) view returns(uint256[] amounts)
func (*KyberRouterCaller) GetAmountsOut ¶
func (_KyberRouter *KyberRouterCaller) GetAmountsOut(opts *bind.CallOpts, amountIn *big.Int, poolsPath []common.Address, path []common.Address) ([]*big.Int, error)
GetAmountsOut is a free data retrieval call binding the contract method 0xa8312b1d.
Solidity: function getAmountsOut(uint256 amountIn, address[] poolsPath, address[] path) view returns(uint256[] amounts)
func (*KyberRouterCaller) Quote ¶
func (_KyberRouter *KyberRouterCaller) 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 KyberRouterCallerRaw ¶
type KyberRouterCallerRaw struct {
Contract *KyberRouterCaller // Generic read-only contract binding to access the raw methods on
}
KyberRouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*KyberRouterCallerRaw) Call ¶
func (_KyberRouter *KyberRouterCallerRaw) 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 KyberRouterCallerSession ¶
type KyberRouterCallerSession struct { Contract *KyberRouterCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
KyberRouterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*KyberRouterCallerSession) Factory ¶
func (_KyberRouter *KyberRouterCallerSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*KyberRouterCallerSession) GetAmountsIn ¶
func (_KyberRouter *KyberRouterCallerSession) GetAmountsIn(amountOut *big.Int, poolsPath []common.Address, path []common.Address) ([]*big.Int, error)
GetAmountsIn is a free data retrieval call binding the contract method 0x9e269b68.
Solidity: function getAmountsIn(uint256 amountOut, address[] poolsPath, address[] path) view returns(uint256[] amounts)
func (*KyberRouterCallerSession) GetAmountsOut ¶
func (_KyberRouter *KyberRouterCallerSession) GetAmountsOut(amountIn *big.Int, poolsPath []common.Address, path []common.Address) ([]*big.Int, error)
GetAmountsOut is a free data retrieval call binding the contract method 0xa8312b1d.
Solidity: function getAmountsOut(uint256 amountIn, address[] poolsPath, address[] path) view returns(uint256[] amounts)
func (*KyberRouterCallerSession) Quote ¶
func (_KyberRouter *KyberRouterCallerSession) 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 KyberRouterFilterer ¶
type KyberRouterFilterer struct {
// contains filtered or unexported fields
}
KyberRouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewKyberRouterFilterer ¶
func NewKyberRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*KyberRouterFilterer, error)
NewKyberRouterFilterer creates a new log filterer instance of KyberRouter, bound to a specific deployed contract.
type KyberRouterRaw ¶
type KyberRouterRaw struct {
Contract *KyberRouter // Generic contract binding to access the raw methods on
}
KyberRouterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*KyberRouterRaw) Call ¶
func (_KyberRouter *KyberRouterRaw) 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 (*KyberRouterRaw) Transact ¶
func (_KyberRouter *KyberRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*KyberRouterRaw) Transfer ¶
func (_KyberRouter *KyberRouterRaw) 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 KyberRouterSession ¶
type KyberRouterSession struct { Contract *KyberRouter // 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 }
KyberRouterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*KyberRouterSession) AddLiquidity ¶
func (_KyberRouter *KyberRouterSession) AddLiquidity(tokenA common.Address, tokenB common.Address, pool common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, vReserveRatioBounds [2]*big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0x24341934.
Solidity: function addLiquidity(address tokenA, address tokenB, address pool, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, uint256[2] vReserveRatioBounds, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity)
func (*KyberRouterSession) AddLiquidityETH ¶
func (_KyberRouter *KyberRouterSession) AddLiquidityETH(token common.Address, pool common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, vReserveRatioBounds [2]*big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidityETH is a paid mutator transaction binding the contract method 0xd72c1447.
Solidity: function addLiquidityETH(address token, address pool, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, uint256[2] vReserveRatioBounds, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity)
func (*KyberRouterSession) AddLiquidityNewPool ¶
func (_KyberRouter *KyberRouterSession) AddLiquidityNewPool(tokenA common.Address, tokenB common.Address, ampBps uint32, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidityNewPool is a paid mutator transaction binding the contract method 0x1c5d0a6b.
Solidity: function addLiquidityNewPool(address tokenA, address tokenB, uint32 ampBps, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity)
func (*KyberRouterSession) AddLiquidityNewPoolETH ¶
func (_KyberRouter *KyberRouterSession) AddLiquidityNewPoolETH(token common.Address, ampBps uint32, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidityNewPoolETH is a paid mutator transaction binding the contract method 0x7d41a422.
Solidity: function addLiquidityNewPoolETH(address token, uint32 ampBps, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity)
func (*KyberRouterSession) Factory ¶
func (_KyberRouter *KyberRouterSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*KyberRouterSession) GetAmountsIn ¶
func (_KyberRouter *KyberRouterSession) GetAmountsIn(amountOut *big.Int, poolsPath []common.Address, path []common.Address) ([]*big.Int, error)
GetAmountsIn is a free data retrieval call binding the contract method 0x9e269b68.
Solidity: function getAmountsIn(uint256 amountOut, address[] poolsPath, address[] path) view returns(uint256[] amounts)
func (*KyberRouterSession) GetAmountsOut ¶
func (_KyberRouter *KyberRouterSession) GetAmountsOut(amountIn *big.Int, poolsPath []common.Address, path []common.Address) ([]*big.Int, error)
GetAmountsOut is a free data retrieval call binding the contract method 0xa8312b1d.
Solidity: function getAmountsOut(uint256 amountIn, address[] poolsPath, address[] path) view returns(uint256[] amounts)
func (*KyberRouterSession) Quote ¶
func (_KyberRouter *KyberRouterSession) 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 (*KyberRouterSession) RemoveLiquidity ¶
func (_KyberRouter *KyberRouterSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, pool 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 0xe1f4a784.
Solidity: function removeLiquidity(address tokenA, address tokenB, address pool, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB)
func (*KyberRouterSession) RemoveLiquidityETH ¶
func (_KyberRouter *KyberRouterSession) RemoveLiquidityETH(token common.Address, pool 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 0xb56b681d.
Solidity: function removeLiquidityETH(address token, address pool, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH)
func (*KyberRouterSession) RemoveLiquidityETHSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterSession) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, pool 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 0xebb5d2e9.
Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, address pool, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH)
func (*KyberRouterSession) RemoveLiquidityETHWithPermit ¶
func (_KyberRouter *KyberRouterSession) RemoveLiquidityETHWithPermit(token common.Address, pool 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 0xa4aabb08.
Solidity: function removeLiquidityETHWithPermit(address token, address pool, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH)
func (*KyberRouterSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, pool 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 0x0e2f024c.
Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, address pool, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH)
func (*KyberRouterSession) RemoveLiquidityWithPermit ¶
func (_KyberRouter *KyberRouterSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, pool 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 0x4c17fd7c.
Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, address pool, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB)
func (*KyberRouterSession) SwapETHForExactTokens ¶
func (_KyberRouter *KyberRouterSession) SwapETHForExactTokens(amountOut *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfc5b8bce.
Solidity: function swapETHForExactTokens(uint256 amountOut, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterSession) SwapExactETHForTokens ¶
func (_KyberRouter *KyberRouterSession) SwapExactETHForTokens(amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactETHForTokens is a paid mutator transaction binding the contract method 0xaf55e31f.
Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterSession) SwapExactETHForTokensSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterSession) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x2daaa818.
Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns()
func (*KyberRouterSession) SwapExactTokensForETH ¶
func (_KyberRouter *KyberRouterSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x6dce49ae.
Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterSession) SwapExactTokensForETHSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterSession) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x3e741fca.
Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns()
func (*KyberRouterSession) SwapExactTokensForTokens ¶
func (_KyberRouter *KyberRouterSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0xceb757d5.
Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xe8898b5f.
Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns()
func (*KyberRouterSession) SwapTokensForExactETH ¶
func (_KyberRouter *KyberRouterSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x89c27594.
Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterSession) SwapTokensForExactTokens ¶
func (_KyberRouter *KyberRouterSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0xae8290b7.
Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
type KyberRouterTransactor ¶
type KyberRouterTransactor struct {
// contains filtered or unexported fields
}
KyberRouterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewKyberRouterTransactor ¶
func NewKyberRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*KyberRouterTransactor, error)
NewKyberRouterTransactor creates a new write-only instance of KyberRouter, bound to a specific deployed contract.
func (*KyberRouterTransactor) AddLiquidity ¶
func (_KyberRouter *KyberRouterTransactor) AddLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, pool common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, vReserveRatioBounds [2]*big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0x24341934.
Solidity: function addLiquidity(address tokenA, address tokenB, address pool, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, uint256[2] vReserveRatioBounds, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity)
func (*KyberRouterTransactor) AddLiquidityETH ¶
func (_KyberRouter *KyberRouterTransactor) AddLiquidityETH(opts *bind.TransactOpts, token common.Address, pool common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, vReserveRatioBounds [2]*big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidityETH is a paid mutator transaction binding the contract method 0xd72c1447.
Solidity: function addLiquidityETH(address token, address pool, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, uint256[2] vReserveRatioBounds, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity)
func (*KyberRouterTransactor) AddLiquidityNewPool ¶
func (_KyberRouter *KyberRouterTransactor) AddLiquidityNewPool(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, ampBps uint32, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidityNewPool is a paid mutator transaction binding the contract method 0x1c5d0a6b.
Solidity: function addLiquidityNewPool(address tokenA, address tokenB, uint32 ampBps, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity)
func (*KyberRouterTransactor) AddLiquidityNewPoolETH ¶
func (_KyberRouter *KyberRouterTransactor) AddLiquidityNewPoolETH(opts *bind.TransactOpts, token common.Address, ampBps uint32, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidityNewPoolETH is a paid mutator transaction binding the contract method 0x7d41a422.
Solidity: function addLiquidityNewPoolETH(address token, uint32 ampBps, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity)
func (*KyberRouterTransactor) RemoveLiquidity ¶
func (_KyberRouter *KyberRouterTransactor) RemoveLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, pool 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 0xe1f4a784.
Solidity: function removeLiquidity(address tokenA, address tokenB, address pool, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB)
func (*KyberRouterTransactor) RemoveLiquidityETH ¶
func (_KyberRouter *KyberRouterTransactor) RemoveLiquidityETH(opts *bind.TransactOpts, token common.Address, pool 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 0xb56b681d.
Solidity: function removeLiquidityETH(address token, address pool, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH)
func (*KyberRouterTransactor) RemoveLiquidityETHSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterTransactor) RemoveLiquidityETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, pool 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 0xebb5d2e9.
Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, address pool, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH)
func (*KyberRouterTransactor) RemoveLiquidityETHWithPermit ¶
func (_KyberRouter *KyberRouterTransactor) RemoveLiquidityETHWithPermit(opts *bind.TransactOpts, token common.Address, pool 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 0xa4aabb08.
Solidity: function removeLiquidityETHWithPermit(address token, address pool, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH)
func (*KyberRouterTransactor) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterTransactor) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, pool 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 0x0e2f024c.
Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, address pool, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH)
func (*KyberRouterTransactor) RemoveLiquidityWithPermit ¶
func (_KyberRouter *KyberRouterTransactor) RemoveLiquidityWithPermit(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, pool 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 0x4c17fd7c.
Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, address pool, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB)
func (*KyberRouterTransactor) SwapETHForExactTokens ¶
func (_KyberRouter *KyberRouterTransactor) SwapETHForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfc5b8bce.
Solidity: function swapETHForExactTokens(uint256 amountOut, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterTransactor) SwapExactETHForTokens ¶
func (_KyberRouter *KyberRouterTransactor) SwapExactETHForTokens(opts *bind.TransactOpts, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactETHForTokens is a paid mutator transaction binding the contract method 0xaf55e31f.
Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterTransactor) SwapExactETHForTokensSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterTransactor) SwapExactETHForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x2daaa818.
Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns()
func (*KyberRouterTransactor) SwapExactTokensForETH ¶
func (_KyberRouter *KyberRouterTransactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x6dce49ae.
Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterTransactor) SwapExactTokensForETHSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterTransactor) SwapExactTokensForETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x3e741fca.
Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns()
func (*KyberRouterTransactor) SwapExactTokensForTokens ¶
func (_KyberRouter *KyberRouterTransactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0xceb757d5.
Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterTransactor) SwapExactTokensForTokensSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterTransactor) SwapExactTokensForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xe8898b5f.
Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns()
func (*KyberRouterTransactor) SwapTokensForExactETH ¶
func (_KyberRouter *KyberRouterTransactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x89c27594.
Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterTransactor) SwapTokensForExactTokens ¶
func (_KyberRouter *KyberRouterTransactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0xae8290b7.
Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
type KyberRouterTransactorRaw ¶
type KyberRouterTransactorRaw struct {
Contract *KyberRouterTransactor // Generic write-only contract binding to access the raw methods on
}
KyberRouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*KyberRouterTransactorRaw) Transact ¶
func (_KyberRouter *KyberRouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*KyberRouterTransactorRaw) Transfer ¶
func (_KyberRouter *KyberRouterTransactorRaw) 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 KyberRouterTransactorSession ¶
type KyberRouterTransactorSession struct { Contract *KyberRouterTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
KyberRouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*KyberRouterTransactorSession) AddLiquidity ¶
func (_KyberRouter *KyberRouterTransactorSession) AddLiquidity(tokenA common.Address, tokenB common.Address, pool common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, vReserveRatioBounds [2]*big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0x24341934.
Solidity: function addLiquidity(address tokenA, address tokenB, address pool, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, uint256[2] vReserveRatioBounds, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity)
func (*KyberRouterTransactorSession) AddLiquidityETH ¶
func (_KyberRouter *KyberRouterTransactorSession) AddLiquidityETH(token common.Address, pool common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, vReserveRatioBounds [2]*big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidityETH is a paid mutator transaction binding the contract method 0xd72c1447.
Solidity: function addLiquidityETH(address token, address pool, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, uint256[2] vReserveRatioBounds, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity)
func (*KyberRouterTransactorSession) AddLiquidityNewPool ¶
func (_KyberRouter *KyberRouterTransactorSession) AddLiquidityNewPool(tokenA common.Address, tokenB common.Address, ampBps uint32, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidityNewPool is a paid mutator transaction binding the contract method 0x1c5d0a6b.
Solidity: function addLiquidityNewPool(address tokenA, address tokenB, uint32 ampBps, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity)
func (*KyberRouterTransactorSession) AddLiquidityNewPoolETH ¶
func (_KyberRouter *KyberRouterTransactorSession) AddLiquidityNewPoolETH(token common.Address, ampBps uint32, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error)
AddLiquidityNewPoolETH is a paid mutator transaction binding the contract method 0x7d41a422.
Solidity: function addLiquidityNewPoolETH(address token, uint32 ampBps, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity)
func (*KyberRouterTransactorSession) RemoveLiquidity ¶
func (_KyberRouter *KyberRouterTransactorSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, pool 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 0xe1f4a784.
Solidity: function removeLiquidity(address tokenA, address tokenB, address pool, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB)
func (*KyberRouterTransactorSession) RemoveLiquidityETH ¶
func (_KyberRouter *KyberRouterTransactorSession) RemoveLiquidityETH(token common.Address, pool 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 0xb56b681d.
Solidity: function removeLiquidityETH(address token, address pool, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH)
func (*KyberRouterTransactorSession) RemoveLiquidityETHSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterTransactorSession) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, pool 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 0xebb5d2e9.
Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, address pool, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH)
func (*KyberRouterTransactorSession) RemoveLiquidityETHWithPermit ¶
func (_KyberRouter *KyberRouterTransactorSession) RemoveLiquidityETHWithPermit(token common.Address, pool 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 0xa4aabb08.
Solidity: function removeLiquidityETHWithPermit(address token, address pool, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH)
func (*KyberRouterTransactorSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterTransactorSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, pool 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 0x0e2f024c.
Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, address pool, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH)
func (*KyberRouterTransactorSession) RemoveLiquidityWithPermit ¶
func (_KyberRouter *KyberRouterTransactorSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, pool 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 0x4c17fd7c.
Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, address pool, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB)
func (*KyberRouterTransactorSession) SwapETHForExactTokens ¶
func (_KyberRouter *KyberRouterTransactorSession) SwapETHForExactTokens(amountOut *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfc5b8bce.
Solidity: function swapETHForExactTokens(uint256 amountOut, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterTransactorSession) SwapExactETHForTokens ¶
func (_KyberRouter *KyberRouterTransactorSession) SwapExactETHForTokens(amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactETHForTokens is a paid mutator transaction binding the contract method 0xaf55e31f.
Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterTransactorSession) SwapExactETHForTokensSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterTransactorSession) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x2daaa818.
Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns()
func (*KyberRouterTransactorSession) SwapExactTokensForETH ¶
func (_KyberRouter *KyberRouterTransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x6dce49ae.
Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterTransactorSession) SwapExactTokensForETHSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterTransactorSession) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x3e741fca.
Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns()
func (*KyberRouterTransactorSession) SwapExactTokensForTokens ¶
func (_KyberRouter *KyberRouterTransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0xceb757d5.
Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterTransactorSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens ¶
func (_KyberRouter *KyberRouterTransactorSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xe8898b5f.
Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] poolsPath, address[] path, address to, uint256 deadline) returns()
func (*KyberRouterTransactorSession) SwapTokensForExactETH ¶
func (_KyberRouter *KyberRouterTransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x89c27594.
Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
func (*KyberRouterTransactorSession) SwapTokensForExactTokens ¶
func (_KyberRouter *KyberRouterTransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, poolsPath []common.Address, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error)
SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0xae8290b7.
Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] poolsPath, address[] path, address to, uint256 deadline) returns(uint256[] amounts)