Versions in this module Expand all Collapse all v0 v0.3.0 Jun 29, 2023 Changes in this version + var SwapRouterABI = SwapRouterMetaData.ABI + var SwapRouterMetaData = &bind.MetaData + func UnpackV2SwapExactIn(params *SwapRouterExactInputParams, input []byte) error + func UnpackV2SwapExactOut(params *SwapRouterExactOutputParams, input []byte) error + type SwapRouter struct + func NewSwapRouter(address common.Address, backend bind.ContractBackend) (*SwapRouter, error) + type SwapRouterCaller struct + func NewSwapRouterCaller(address common.Address, caller bind.ContractCaller) (*SwapRouterCaller, error) + type SwapRouterCallerRaw struct + Contract *SwapRouterCaller + func (_SwapRouter *SwapRouterCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type SwapRouterCallerSession struct + CallOpts bind.CallOpts + Contract *SwapRouterCaller + type SwapRouterExactInputParams struct + AmountIn *big.Int + AmountOutMinimum *big.Int + Path []common.Address + Payer common.Address + Recipient common.Address + type SwapRouterExactOutputParams struct + AmountInMaximum *big.Int + AmountOut *big.Int + Path []common.Address + Payer common.Address + Recipient common.Address + type SwapRouterFilterer struct + func NewSwapRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*SwapRouterFilterer, error) + type SwapRouterRaw struct + Contract *SwapRouter + func (_SwapRouter *SwapRouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_SwapRouter *SwapRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_SwapRouter *SwapRouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type SwapRouterSession struct + CallOpts bind.CallOpts + Contract *SwapRouter + TransactOpts bind.TransactOpts + func (_SwapRouter *SwapRouterSession) V2SwapExactInput(recipient common.Address, amountIn *big.Int, amountOutMinimum *big.Int, ...) (*types.Transaction, error) + func (_SwapRouter *SwapRouterSession) V2SwapExactOutput(recipient common.Address, amountOut *big.Int, amountInMaximum *big.Int, ...) (*types.Transaction, error) + type SwapRouterTransactor struct + func NewSwapRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*SwapRouterTransactor, error) + func (_SwapRouter *SwapRouterTransactor) V2SwapExactInput(opts *bind.TransactOpts, recipient common.Address, amountIn *big.Int, ...) (*types.Transaction, error) + func (_SwapRouter *SwapRouterTransactor) V2SwapExactOutput(opts *bind.TransactOpts, recipient common.Address, amountOut *big.Int, ...) (*types.Transaction, error) + type SwapRouterTransactorRaw struct + Contract *SwapRouterTransactor + func (_SwapRouter *SwapRouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_SwapRouter *SwapRouterTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type SwapRouterTransactorSession struct + Contract *SwapRouterTransactor + TransactOpts bind.TransactOpts + func (_SwapRouter *SwapRouterTransactorSession) V2SwapExactInput(recipient common.Address, amountIn *big.Int, amountOutMinimum *big.Int, ...) (*types.Transaction, error) + func (_SwapRouter *SwapRouterTransactorSession) V2SwapExactOutput(recipient common.Address, amountOut *big.Int, amountInMaximum *big.Int, ...) (*types.Transaction, error)