768 lines
64 KiB
Go
768 lines
64 KiB
Go
// Code generated - DO NOT EDIT.
|
|
// This file is a generated binding and any manual changes will be lost.
|
|
|
|
package contracts
|
|
|
|
import (
|
|
"math/big"
|
|
"strings"
|
|
|
|
ethereum "github.com/ethereum/go-ethereum"
|
|
"github.com/ethereum/go-ethereum/accounts/abi"
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
|
"github.com/ethereum/go-ethereum/common"
|
|
"github.com/ethereum/go-ethereum/core/types"
|
|
"github.com/ethereum/go-ethereum/event"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var (
|
|
_ = big.NewInt
|
|
_ = strings.NewReader
|
|
_ = ethereum.NotFound
|
|
_ = bind.Bind
|
|
_ = common.Big1
|
|
_ = types.BloomLookup
|
|
_ = event.NewSubscription
|
|
)
|
|
|
|
// CatRouterABI is the input ABI used to generate the binding from.
|
|
const CatRouterABI = "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_factory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_WETH\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"WETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountADesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsIn\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsOut\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveB\",\"type\":\"uint256\"}],\"name\":\"quote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETHSupportingFeeOnTransferTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapETHForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokensSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETHSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokensSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]"
|
|
|
|
// CatRouter is an auto generated Go binding around an Ethereum contract.
|
|
type CatRouter struct {
|
|
CatRouterCaller // Read-only binding to the contract
|
|
CatRouterTransactor // Write-only binding to the contract
|
|
CatRouterFilterer // Log filterer for contract events
|
|
}
|
|
|
|
// CatRouterCaller is an auto generated read-only Go binding around an Ethereum contract.
|
|
type CatRouterCaller struct {
|
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
|
}
|
|
|
|
// CatRouterTransactor is an auto generated write-only Go binding around an Ethereum contract.
|
|
type CatRouterTransactor struct {
|
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
|
}
|
|
|
|
// CatRouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
|
|
type CatRouterFilterer struct {
|
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
|
}
|
|
|
|
// CatRouterSession is an auto generated Go binding around an Ethereum contract,
|
|
// with pre-set call and transact options.
|
|
type CatRouterSession struct {
|
|
Contract *CatRouter // 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
|
|
}
|
|
|
|
// CatRouterCallerSession is an auto generated read-only Go binding around an Ethereum contract,
|
|
// with pre-set call options.
|
|
type CatRouterCallerSession struct {
|
|
Contract *CatRouterCaller // Generic contract caller binding to set the session for
|
|
CallOpts bind.CallOpts // Call options to use throughout this session
|
|
}
|
|
|
|
// CatRouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
|
|
// with pre-set transact options.
|
|
type CatRouterTransactorSession struct {
|
|
Contract *CatRouterTransactor // Generic contract transactor binding to set the session for
|
|
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
|
|
}
|
|
|
|
// CatRouterRaw is an auto generated low-level Go binding around an Ethereum contract.
|
|
type CatRouterRaw struct {
|
|
Contract *CatRouter // Generic contract binding to access the raw methods on
|
|
}
|
|
|
|
// CatRouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
|
|
type CatRouterCallerRaw struct {
|
|
Contract *CatRouterCaller // Generic read-only contract binding to access the raw methods on
|
|
}
|
|
|
|
// CatRouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
|
|
type CatRouterTransactorRaw struct {
|
|
Contract *CatRouterTransactor // Generic write-only contract binding to access the raw methods on
|
|
}
|
|
|
|
// NewCatRouter creates a new instance of CatRouter, bound to a specific deployed contract.
|
|
func NewCatRouter(address common.Address, backend bind.ContractBackend) (*CatRouter, error) {
|
|
contract, err := bindCatRouter(address, backend, backend, backend)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &CatRouter{CatRouterCaller: CatRouterCaller{contract: contract}, CatRouterTransactor: CatRouterTransactor{contract: contract}, CatRouterFilterer: CatRouterFilterer{contract: contract}}, nil
|
|
}
|
|
|
|
// NewCatRouterCaller creates a new read-only instance of CatRouter, bound to a specific deployed contract.
|
|
func NewCatRouterCaller(address common.Address, caller bind.ContractCaller) (*CatRouterCaller, error) {
|
|
contract, err := bindCatRouter(address, caller, nil, nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &CatRouterCaller{contract: contract}, nil
|
|
}
|
|
|
|
// NewCatRouterTransactor creates a new write-only instance of CatRouter, bound to a specific deployed contract.
|
|
func NewCatRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*CatRouterTransactor, error) {
|
|
contract, err := bindCatRouter(address, nil, transactor, nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &CatRouterTransactor{contract: contract}, nil
|
|
}
|
|
|
|
// NewCatRouterFilterer creates a new log filterer instance of CatRouter, bound to a specific deployed contract.
|
|
func NewCatRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*CatRouterFilterer, error) {
|
|
contract, err := bindCatRouter(address, nil, nil, filterer)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &CatRouterFilterer{contract: contract}, nil
|
|
}
|
|
|
|
// bindCatRouter binds a generic wrapper to an already deployed contract.
|
|
func bindCatRouter(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
|
|
parsed, err := abi.JSON(strings.NewReader(CatRouterABI))
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
|
|
return _CatRouter.Contract.CatRouterCaller.contract.Call(opts, result, method, params...)
|
|
}
|
|
|
|
// Transfer initiates a plain transaction to move funds to the contract, calling
|
|
// its default method if one is available.
|
|
func (_CatRouter *CatRouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.CatRouterTransactor.contract.Transfer(opts)
|
|
}
|
|
|
|
// Transact invokes the (paid) contract method with params as input values.
|
|
func (_CatRouter *CatRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.CatRouterTransactor.contract.Transact(opts, method, params...)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
|
|
return _CatRouter.Contract.contract.Call(opts, result, method, params...)
|
|
}
|
|
|
|
// Transfer initiates a plain transaction to move funds to the contract, calling
|
|
// its default method if one is available.
|
|
func (_CatRouter *CatRouterTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.contract.Transfer(opts)
|
|
}
|
|
|
|
// Transact invokes the (paid) contract method with params as input values.
|
|
func (_CatRouter *CatRouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.contract.Transact(opts, method, params...)
|
|
}
|
|
|
|
// WETH is a free data retrieval call binding the contract method 0xad5c4648.
|
|
//
|
|
// Solidity: function WETH() view returns(address)
|
|
func (_CatRouter *CatRouterCaller) WETH(opts *bind.CallOpts) (common.Address, error) {
|
|
var out []interface{}
|
|
err := _CatRouter.contract.Call(opts, &out, "WETH")
|
|
|
|
if err != nil {
|
|
return *new(common.Address), err
|
|
}
|
|
|
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
|
|
|
return out0, err
|
|
|
|
}
|
|
|
|
// WETH is a free data retrieval call binding the contract method 0xad5c4648.
|
|
//
|
|
// Solidity: function WETH() view returns(address)
|
|
func (_CatRouter *CatRouterSession) WETH() (common.Address, error) {
|
|
return _CatRouter.Contract.WETH(&_CatRouter.CallOpts)
|
|
}
|
|
|
|
// WETH is a free data retrieval call binding the contract method 0xad5c4648.
|
|
//
|
|
// Solidity: function WETH() view returns(address)
|
|
func (_CatRouter *CatRouterCallerSession) WETH() (common.Address, error) {
|
|
return _CatRouter.Contract.WETH(&_CatRouter.CallOpts)
|
|
}
|
|
|
|
// Factory is a free data retrieval call binding the contract method 0xc45a0155.
|
|
//
|
|
// Solidity: function factory() view returns(address)
|
|
func (_CatRouter *CatRouterCaller) Factory(opts *bind.CallOpts) (common.Address, error) {
|
|
var out []interface{}
|
|
err := _CatRouter.contract.Call(opts, &out, "factory")
|
|
|
|
if err != nil {
|
|
return *new(common.Address), err
|
|
}
|
|
|
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
|
|
|
return out0, err
|
|
|
|
}
|
|
|
|
// Factory is a free data retrieval call binding the contract method 0xc45a0155.
|
|
//
|
|
// Solidity: function factory() view returns(address)
|
|
func (_CatRouter *CatRouterSession) Factory() (common.Address, error) {
|
|
return _CatRouter.Contract.Factory(&_CatRouter.CallOpts)
|
|
}
|
|
|
|
// Factory is a free data retrieval call binding the contract method 0xc45a0155.
|
|
//
|
|
// Solidity: function factory() view returns(address)
|
|
func (_CatRouter *CatRouterCallerSession) Factory() (common.Address, error) {
|
|
return _CatRouter.Contract.Factory(&_CatRouter.CallOpts)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterCaller) GetAmountIn(opts *bind.CallOpts, amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) {
|
|
var out []interface{}
|
|
err := _CatRouter.contract.Call(opts, &out, "getAmountIn", amountOut, reserveIn, reserveOut)
|
|
|
|
if err != nil {
|
|
return *new(*big.Int), err
|
|
}
|
|
|
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
|
|
|
return out0, err
|
|
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) {
|
|
return _CatRouter.Contract.GetAmountIn(&_CatRouter.CallOpts, amountOut, reserveIn, reserveOut)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterCallerSession) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) {
|
|
return _CatRouter.Contract.GetAmountIn(&_CatRouter.CallOpts, amountOut, reserveIn, reserveOut)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterCaller) GetAmountOut(opts *bind.CallOpts, amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) {
|
|
var out []interface{}
|
|
err := _CatRouter.contract.Call(opts, &out, "getAmountOut", amountIn, reserveIn, reserveOut)
|
|
|
|
if err != nil {
|
|
return *new(*big.Int), err
|
|
}
|
|
|
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
|
|
|
return out0, err
|
|
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) {
|
|
return _CatRouter.Contract.GetAmountOut(&_CatRouter.CallOpts, amountIn, reserveIn, reserveOut)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterCallerSession) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) {
|
|
return _CatRouter.Contract.GetAmountOut(&_CatRouter.CallOpts, amountIn, reserveIn, reserveOut)
|
|
}
|
|
|
|
// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74.
|
|
//
|
|
// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts)
|
|
func (_CatRouter *CatRouterCaller) GetAmountsIn(opts *bind.CallOpts, amountOut *big.Int, path []common.Address) ([]*big.Int, error) {
|
|
var out []interface{}
|
|
err := _CatRouter.contract.Call(opts, &out, "getAmountsIn", amountOut, path)
|
|
|
|
if err != nil {
|
|
return *new([]*big.Int), err
|
|
}
|
|
|
|
out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
|
|
|
|
return out0, err
|
|
|
|
}
|
|
|
|
// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74.
|
|
//
|
|
// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts)
|
|
func (_CatRouter *CatRouterSession) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error) {
|
|
return _CatRouter.Contract.GetAmountsIn(&_CatRouter.CallOpts, amountOut, path)
|
|
}
|
|
|
|
// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74.
|
|
//
|
|
// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts)
|
|
func (_CatRouter *CatRouterCallerSession) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error) {
|
|
return _CatRouter.Contract.GetAmountsIn(&_CatRouter.CallOpts, amountOut, path)
|
|
}
|
|
|
|
// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f.
|
|
//
|
|
// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts)
|
|
func (_CatRouter *CatRouterCaller) GetAmountsOut(opts *bind.CallOpts, amountIn *big.Int, path []common.Address) ([]*big.Int, error) {
|
|
var out []interface{}
|
|
err := _CatRouter.contract.Call(opts, &out, "getAmountsOut", amountIn, path)
|
|
|
|
if err != nil {
|
|
return *new([]*big.Int), err
|
|
}
|
|
|
|
out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
|
|
|
|
return out0, err
|
|
|
|
}
|
|
|
|
// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f.
|
|
//
|
|
// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts)
|
|
func (_CatRouter *CatRouterSession) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error) {
|
|
return _CatRouter.Contract.GetAmountsOut(&_CatRouter.CallOpts, amountIn, path)
|
|
}
|
|
|
|
// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f.
|
|
//
|
|
// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts)
|
|
func (_CatRouter *CatRouterCallerSession) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error) {
|
|
return _CatRouter.Contract.GetAmountsOut(&_CatRouter.CallOpts, amountIn, path)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterCaller) Quote(opts *bind.CallOpts, amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) {
|
|
var out []interface{}
|
|
err := _CatRouter.contract.Call(opts, &out, "quote", amountA, reserveA, reserveB)
|
|
|
|
if err != nil {
|
|
return *new(*big.Int), err
|
|
}
|
|
|
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
|
|
|
return out0, err
|
|
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) {
|
|
return _CatRouter.Contract.Quote(&_CatRouter.CallOpts, amountA, reserveA, reserveB)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterCallerSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) {
|
|
return _CatRouter.Contract.Quote(&_CatRouter.CallOpts, amountA, reserveA, reserveB)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactor) 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) {
|
|
return _CatRouter.contract.Transact(opts, "addLiquidity", tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) 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) {
|
|
return _CatRouter.Contract.AddLiquidity(&_CatRouter.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactorSession) 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) {
|
|
return _CatRouter.Contract.AddLiquidity(&_CatRouter.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactor) 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) {
|
|
return _CatRouter.contract.Transact(opts, "addLiquidityETH", token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.AddLiquidityETH(&_CatRouter.TransactOpts, token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactorSession) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.AddLiquidityETH(&_CatRouter.TransactOpts, token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactor) 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) {
|
|
return _CatRouter.contract.Transact(opts, "removeLiquidity", tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) 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) {
|
|
return _CatRouter.Contract.RemoveLiquidity(&_CatRouter.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactorSession) 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) {
|
|
return _CatRouter.Contract.RemoveLiquidity(&_CatRouter.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactor) 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) {
|
|
return _CatRouter.contract.Transact(opts, "removeLiquidityETH", token, liquidity, amountTokenMin, amountETHMin, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.RemoveLiquidityETH(&_CatRouter.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactorSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.RemoveLiquidityETH(&_CatRouter.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline)
|
|
}
|
|
|
|
// RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb.
|
|
//
|
|
// Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH)
|
|
func (_CatRouter *CatRouterTransactor) RemoveLiquidityETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.contract.Transact(opts, "removeLiquidityETHSupportingFeeOnTransferTokens", token, liquidity, amountTokenMin, amountETHMin, to, deadline)
|
|
}
|
|
|
|
// RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb.
|
|
//
|
|
// Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH)
|
|
func (_CatRouter *CatRouterSession) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.RemoveLiquidityETHSupportingFeeOnTransferTokens(&_CatRouter.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline)
|
|
}
|
|
|
|
// RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb.
|
|
//
|
|
// Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH)
|
|
func (_CatRouter *CatRouterTransactorSession) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.RemoveLiquidityETHSupportingFeeOnTransferTokens(&_CatRouter.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactor) 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) {
|
|
return _CatRouter.contract.Transact(opts, "removeLiquidityETHWithPermit", token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) 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) {
|
|
return _CatRouter.Contract.RemoveLiquidityETHWithPermit(&_CatRouter.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactorSession) 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) {
|
|
return _CatRouter.Contract.RemoveLiquidityETHWithPermit(&_CatRouter.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s)
|
|
}
|
|
|
|
// RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984.
|
|
//
|
|
// Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH)
|
|
func (_CatRouter *CatRouterTransactor) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
|
|
return _CatRouter.contract.Transact(opts, "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s)
|
|
}
|
|
|
|
// RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984.
|
|
//
|
|
// Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH)
|
|
func (_CatRouter *CatRouterSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(&_CatRouter.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s)
|
|
}
|
|
|
|
// RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984.
|
|
//
|
|
// Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH)
|
|
func (_CatRouter *CatRouterTransactorSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(&_CatRouter.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactor) 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) {
|
|
return _CatRouter.contract.Transact(opts, "removeLiquidityWithPermit", tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) 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) {
|
|
return _CatRouter.Contract.RemoveLiquidityWithPermit(&_CatRouter.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactorSession) 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) {
|
|
return _CatRouter.Contract.RemoveLiquidityWithPermit(&_CatRouter.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactor) SwapETHForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.contract.Transact(opts, "swapETHForExactTokens", amountOut, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapETHForExactTokens(&_CatRouter.TransactOpts, amountOut, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactorSession) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapETHForExactTokens(&_CatRouter.TransactOpts, amountOut, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactor) SwapExactETHForTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.contract.Transact(opts, "swapExactETHForTokens", amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapExactETHForTokens(&_CatRouter.TransactOpts, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactorSession) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapExactETHForTokens(&_CatRouter.TransactOpts, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95.
|
|
//
|
|
// Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns()
|
|
func (_CatRouter *CatRouterTransactor) SwapExactETHForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.contract.Transact(opts, "swapExactETHForTokensSupportingFeeOnTransferTokens", amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95.
|
|
//
|
|
// Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns()
|
|
func (_CatRouter *CatRouterSession) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapExactETHForTokensSupportingFeeOnTransferTokens(&_CatRouter.TransactOpts, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95.
|
|
//
|
|
// Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns()
|
|
func (_CatRouter *CatRouterTransactorSession) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapExactETHForTokensSupportingFeeOnTransferTokens(&_CatRouter.TransactOpts, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.contract.Transact(opts, "swapExactTokensForETH", amountIn, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapExactTokensForETH(&_CatRouter.TransactOpts, amountIn, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapExactTokensForETH(&_CatRouter.TransactOpts, amountIn, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947.
|
|
//
|
|
// Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns()
|
|
func (_CatRouter *CatRouterTransactor) SwapExactTokensForETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.contract.Transact(opts, "swapExactTokensForETHSupportingFeeOnTransferTokens", amountIn, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947.
|
|
//
|
|
// Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns()
|
|
func (_CatRouter *CatRouterSession) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapExactTokensForETHSupportingFeeOnTransferTokens(&_CatRouter.TransactOpts, amountIn, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947.
|
|
//
|
|
// Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns()
|
|
func (_CatRouter *CatRouterTransactorSession) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapExactTokensForETHSupportingFeeOnTransferTokens(&_CatRouter.TransactOpts, amountIn, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.contract.Transact(opts, "swapExactTokensForTokens", amountIn, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapExactTokensForTokens(&_CatRouter.TransactOpts, amountIn, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapExactTokensForTokens(&_CatRouter.TransactOpts, amountIn, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795.
|
|
//
|
|
// Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns()
|
|
func (_CatRouter *CatRouterTransactor) SwapExactTokensForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.contract.Transact(opts, "swapExactTokensForTokensSupportingFeeOnTransferTokens", amountIn, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795.
|
|
//
|
|
// Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns()
|
|
func (_CatRouter *CatRouterSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapExactTokensForTokensSupportingFeeOnTransferTokens(&_CatRouter.TransactOpts, amountIn, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795.
|
|
//
|
|
// Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns()
|
|
func (_CatRouter *CatRouterTransactorSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapExactTokensForTokensSupportingFeeOnTransferTokens(&_CatRouter.TransactOpts, amountIn, amountOutMin, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.contract.Transact(opts, "swapTokensForExactETH", amountOut, amountInMax, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapTokensForExactETH(&_CatRouter.TransactOpts, amountOut, amountInMax, path, to, deadline)
|
|
}
|
|
|
|
// 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 (_CatRouter *CatRouterTransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapTokensForExactETH(&_CatRouter.TransactOpts, amountOut, amountInMax, path, to, deadline)
|
|
}
|
|
|
|
// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee.
|
|
//
|
|
// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
|
|
func (_CatRouter *CatRouterTransactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.contract.Transact(opts, "swapTokensForExactTokens", amountOut, amountInMax, path, to, deadline)
|
|
}
|
|
|
|
// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee.
|
|
//
|
|
// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
|
|
func (_CatRouter *CatRouterSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapTokensForExactTokens(&_CatRouter.TransactOpts, amountOut, amountInMax, path, to, deadline)
|
|
}
|
|
|
|
// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee.
|
|
//
|
|
// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts)
|
|
func (_CatRouter *CatRouterTransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) {
|
|
return _CatRouter.Contract.SwapTokensForExactTokens(&_CatRouter.TransactOpts, amountOut, amountInMax, path, to, deadline)
|
|
}
|
|
|
|
// Receive is a paid mutator transaction binding the contract receive function.
|
|
//
|
|
// Solidity: receive() payable returns()
|
|
func (_CatRouter *CatRouterTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) {
|
|
return _CatRouter.contract.RawTransact(opts, nil) // calldata is disallowed for receive function
|
|
}
|
|
|
|
// Receive is a paid mutator transaction binding the contract receive function.
|
|
//
|
|
// Solidity: receive() payable returns()
|
|
func (_CatRouter *CatRouterSession) Receive() (*types.Transaction, error) {
|
|
return _CatRouter.Contract.Receive(&_CatRouter.TransactOpts)
|
|
}
|
|
|
|
// Receive is a paid mutator transaction binding the contract receive function.
|
|
//
|
|
// Solidity: receive() payable returns()
|
|
func (_CatRouter *CatRouterTransactorSession) Receive() (*types.Transaction, error) {
|
|
return _CatRouter.Contract.Receive(&_CatRouter.TransactOpts)
|
|
}
|