iv3swaprouter

package
v0.0.0-...-baa49d7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IV3SwapRouterABI = IV3SwapRouterMetaData.ABI

IV3SwapRouterABI is the input ABI used to generate the binding from. Deprecated: Use IV3SwapRouterMetaData.ABI instead.

View Source
var IV3SwapRouterMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"WETH9\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"internalType\":\"structIV3SwapRouter.ExactInputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactInputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"refundETH\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountMinimum\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"sweepToken\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountMinimum\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"unwrapWETH9\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
}

IV3SwapRouterMetaData contains all meta data concerning the IV3SwapRouter contract.

Functions

This section is empty.

Types

type IV3SwapRouter

type IV3SwapRouter struct {
	IV3SwapRouterCaller     // Read-only binding to the contract
	IV3SwapRouterTransactor // Write-only binding to the contract
	IV3SwapRouterFilterer   // Log filterer for contract events
}

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

func NewIV3SwapRouter

func NewIV3SwapRouter(address common.Address, backend bind.ContractBackend) (*IV3SwapRouter, error)

NewIV3SwapRouter creates a new instance of IV3SwapRouter, bound to a specific deployed contract.

type IV3SwapRouterCaller

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

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

func NewIV3SwapRouterCaller

func NewIV3SwapRouterCaller(address common.Address, caller bind.ContractCaller) (*IV3SwapRouterCaller, error)

NewIV3SwapRouterCaller creates a new read-only instance of IV3SwapRouter, bound to a specific deployed contract.

func (*IV3SwapRouterCaller) WETH9

func (_IV3SwapRouter *IV3SwapRouterCaller) WETH9(opts *bind.CallOpts) (common.Address, error)

WETH9 is a free data retrieval call binding the contract method 0x4aa4a4fc.

Solidity: function WETH9() view returns(address)

type IV3SwapRouterCallerRaw

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

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

func (*IV3SwapRouterCallerRaw) Call

func (_IV3SwapRouter *IV3SwapRouterCallerRaw) 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 IV3SwapRouterCallerSession

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

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

func (*IV3SwapRouterCallerSession) WETH9

func (_IV3SwapRouter *IV3SwapRouterCallerSession) WETH9() (common.Address, error)

WETH9 is a free data retrieval call binding the contract method 0x4aa4a4fc.

Solidity: function WETH9() view returns(address)

type IV3SwapRouterExactInputSingleParams

type IV3SwapRouterExactInputSingleParams struct {
	TokenIn           common.Address
	TokenOut          common.Address
	Fee               *big.Int
	Recipient         common.Address
	AmountIn          *big.Int
	AmountOutMinimum  *big.Int
	SqrtPriceLimitX96 *big.Int
}

IV3SwapRouterExactInputSingleParams is an auto generated low-level Go binding around an user-defined struct.

type IV3SwapRouterFilterer

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

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

func NewIV3SwapRouterFilterer

func NewIV3SwapRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*IV3SwapRouterFilterer, error)

NewIV3SwapRouterFilterer creates a new log filterer instance of IV3SwapRouter, bound to a specific deployed contract.

type IV3SwapRouterRaw

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

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

func (*IV3SwapRouterRaw) Call

func (_IV3SwapRouter *IV3SwapRouterRaw) 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 (*IV3SwapRouterRaw) Transact

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

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

func (*IV3SwapRouterRaw) Transfer

func (_IV3SwapRouter *IV3SwapRouterRaw) 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 IV3SwapRouterSession

type IV3SwapRouterSession struct {
	Contract     *IV3SwapRouter    // 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
}

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

func (*IV3SwapRouterSession) ExactInputSingle

func (_IV3SwapRouter *IV3SwapRouterSession) ExactInputSingle(params IV3SwapRouterExactInputSingleParams) (*types.Transaction, error)

ExactInputSingle is a paid mutator transaction binding the contract method 0x04e45aaf.

Solidity: function exactInputSingle((address,address,uint24,address,uint256,uint256,uint160) params) payable returns(uint256 amountOut)

func (*IV3SwapRouterSession) Multicall

func (_IV3SwapRouter *IV3SwapRouterSession) Multicall(data [][]byte) (*types.Transaction, error)

Multicall is a paid mutator transaction binding the contract method 0xac9650d8.

Solidity: function multicall(bytes[] data) payable returns(bytes[] results)

func (*IV3SwapRouterSession) RefundETH

func (_IV3SwapRouter *IV3SwapRouterSession) RefundETH() (*types.Transaction, error)

RefundETH is a paid mutator transaction binding the contract method 0x12210e8a.

Solidity: function refundETH() payable returns()

func (*IV3SwapRouterSession) SweepToken

func (_IV3SwapRouter *IV3SwapRouterSession) SweepToken(token common.Address, amountMinimum *big.Int, recipient common.Address) (*types.Transaction, error)

SweepToken is a paid mutator transaction binding the contract method 0xdf2ab5bb.

Solidity: function sweepToken(address token, uint256 amountMinimum, address recipient) payable returns()

func (*IV3SwapRouterSession) UnwrapWETH9

func (_IV3SwapRouter *IV3SwapRouterSession) UnwrapWETH9(amountMinimum *big.Int, recipient common.Address) (*types.Transaction, error)

UnwrapWETH9 is a paid mutator transaction binding the contract method 0x49404b7c.

Solidity: function unwrapWETH9(uint256 amountMinimum, address recipient) payable returns()

func (*IV3SwapRouterSession) WETH9

func (_IV3SwapRouter *IV3SwapRouterSession) WETH9() (common.Address, error)

WETH9 is a free data retrieval call binding the contract method 0x4aa4a4fc.

Solidity: function WETH9() view returns(address)

type IV3SwapRouterTransactor

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

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

func NewIV3SwapRouterTransactor

func NewIV3SwapRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*IV3SwapRouterTransactor, error)

NewIV3SwapRouterTransactor creates a new write-only instance of IV3SwapRouter, bound to a specific deployed contract.

func (*IV3SwapRouterTransactor) ExactInputSingle

func (_IV3SwapRouter *IV3SwapRouterTransactor) ExactInputSingle(opts *bind.TransactOpts, params IV3SwapRouterExactInputSingleParams) (*types.Transaction, error)

ExactInputSingle is a paid mutator transaction binding the contract method 0x04e45aaf.

Solidity: function exactInputSingle((address,address,uint24,address,uint256,uint256,uint160) params) payable returns(uint256 amountOut)

func (*IV3SwapRouterTransactor) Multicall

func (_IV3SwapRouter *IV3SwapRouterTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error)

Multicall is a paid mutator transaction binding the contract method 0xac9650d8.

Solidity: function multicall(bytes[] data) payable returns(bytes[] results)

func (*IV3SwapRouterTransactor) RefundETH

func (_IV3SwapRouter *IV3SwapRouterTransactor) RefundETH(opts *bind.TransactOpts) (*types.Transaction, error)

RefundETH is a paid mutator transaction binding the contract method 0x12210e8a.

Solidity: function refundETH() payable returns()

func (*IV3SwapRouterTransactor) SweepToken

func (_IV3SwapRouter *IV3SwapRouterTransactor) SweepToken(opts *bind.TransactOpts, token common.Address, amountMinimum *big.Int, recipient common.Address) (*types.Transaction, error)

SweepToken is a paid mutator transaction binding the contract method 0xdf2ab5bb.

Solidity: function sweepToken(address token, uint256 amountMinimum, address recipient) payable returns()

func (*IV3SwapRouterTransactor) UnwrapWETH9

func (_IV3SwapRouter *IV3SwapRouterTransactor) UnwrapWETH9(opts *bind.TransactOpts, amountMinimum *big.Int, recipient common.Address) (*types.Transaction, error)

UnwrapWETH9 is a paid mutator transaction binding the contract method 0x49404b7c.

Solidity: function unwrapWETH9(uint256 amountMinimum, address recipient) payable returns()

type IV3SwapRouterTransactorRaw

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

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

func (*IV3SwapRouterTransactorRaw) Transact

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

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

func (*IV3SwapRouterTransactorRaw) Transfer

func (_IV3SwapRouter *IV3SwapRouterTransactorRaw) 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 IV3SwapRouterTransactorSession

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

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

func (*IV3SwapRouterTransactorSession) ExactInputSingle

func (_IV3SwapRouter *IV3SwapRouterTransactorSession) ExactInputSingle(params IV3SwapRouterExactInputSingleParams) (*types.Transaction, error)

ExactInputSingle is a paid mutator transaction binding the contract method 0x04e45aaf.

Solidity: function exactInputSingle((address,address,uint24,address,uint256,uint256,uint160) params) payable returns(uint256 amountOut)

func (*IV3SwapRouterTransactorSession) Multicall

func (_IV3SwapRouter *IV3SwapRouterTransactorSession) Multicall(data [][]byte) (*types.Transaction, error)

Multicall is a paid mutator transaction binding the contract method 0xac9650d8.

Solidity: function multicall(bytes[] data) payable returns(bytes[] results)

func (*IV3SwapRouterTransactorSession) RefundETH

func (_IV3SwapRouter *IV3SwapRouterTransactorSession) RefundETH() (*types.Transaction, error)

RefundETH is a paid mutator transaction binding the contract method 0x12210e8a.

Solidity: function refundETH() payable returns()

func (*IV3SwapRouterTransactorSession) SweepToken

func (_IV3SwapRouter *IV3SwapRouterTransactorSession) SweepToken(token common.Address, amountMinimum *big.Int, recipient common.Address) (*types.Transaction, error)

SweepToken is a paid mutator transaction binding the contract method 0xdf2ab5bb.

Solidity: function sweepToken(address token, uint256 amountMinimum, address recipient) payable returns()

func (*IV3SwapRouterTransactorSession) UnwrapWETH9

func (_IV3SwapRouter *IV3SwapRouterTransactorSession) UnwrapWETH9(amountMinimum *big.Int, recipient common.Address) (*types.Transaction, error)

UnwrapWETH9 is a paid mutator transaction binding the contract method 0x49404b7c.

Solidity: function unwrapWETH9(uint256 amountMinimum, address recipient) payable returns()

Jump to

Keyboard shortcuts

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