UniswapV3

package
v0.0.0-...-3beb7e2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const UniswapV3ABI = "" /* 3176-byte string literal not displayed */

UniswapV3ABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type UniswapV3

type UniswapV3 struct {
	UniswapV3Caller     // Read-only binding to the contract
	UniswapV3Transactor // Write-only binding to the contract
	UniswapV3Filterer   // Log filterer for contract events
}

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

func NewUniswapV3

func NewUniswapV3(address common.Address, backend bind.ContractBackend) (*UniswapV3, error)

NewUniswapV3 creates a new instance of UniswapV3, bound to a specific deployed contract.

type UniswapV3Caller

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

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

func NewUniswapV3Caller

func NewUniswapV3Caller(address common.Address, caller bind.ContractCaller) (*UniswapV3Caller, error)

NewUniswapV3Caller creates a new read-only instance of UniswapV3, bound to a specific deployed contract.

func (*UniswapV3Caller) FeeAmountTickSpacing

func (_UniswapV3 *UniswapV3Caller) FeeAmountTickSpacing(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

FeeAmountTickSpacing is a free data retrieval call binding the contract method 0x22afcccb.

Solidity: function feeAmountTickSpacing(uint24 ) view returns(int24)

func (*UniswapV3Caller) GetPool

func (_UniswapV3 *UniswapV3Caller) GetPool(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int) (common.Address, error)

GetPool is a free data retrieval call binding the contract method 0x1698ee82.

Solidity: function getPool(address , address , uint24 ) view returns(address)

func (*UniswapV3Caller) Owner

func (_UniswapV3 *UniswapV3Caller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*UniswapV3Caller) Parameters

func (_UniswapV3 *UniswapV3Caller) Parameters(opts *bind.CallOpts) (struct {
	Factory     common.Address
	Token0      common.Address
	Token1      common.Address
	Fee         *big.Int
	TickSpacing *big.Int
}, error)

Parameters is a free data retrieval call binding the contract method 0x89035730.

Solidity: function parameters() view returns(address factory, address token0, address token1, uint24 fee, int24 tickSpacing)

type UniswapV3CallerRaw

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

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

func (*UniswapV3CallerRaw) Call

func (_UniswapV3 *UniswapV3CallerRaw) 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 UniswapV3CallerSession

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

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

func (*UniswapV3CallerSession) FeeAmountTickSpacing

func (_UniswapV3 *UniswapV3CallerSession) FeeAmountTickSpacing(arg0 *big.Int) (*big.Int, error)

FeeAmountTickSpacing is a free data retrieval call binding the contract method 0x22afcccb.

Solidity: function feeAmountTickSpacing(uint24 ) view returns(int24)

func (*UniswapV3CallerSession) GetPool

func (_UniswapV3 *UniswapV3CallerSession) GetPool(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (common.Address, error)

GetPool is a free data retrieval call binding the contract method 0x1698ee82.

Solidity: function getPool(address , address , uint24 ) view returns(address)

func (*UniswapV3CallerSession) Owner

func (_UniswapV3 *UniswapV3CallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*UniswapV3CallerSession) Parameters

func (_UniswapV3 *UniswapV3CallerSession) Parameters() (struct {
	Factory     common.Address
	Token0      common.Address
	Token1      common.Address
	Fee         *big.Int
	TickSpacing *big.Int
}, error)

Parameters is a free data retrieval call binding the contract method 0x89035730.

Solidity: function parameters() view returns(address factory, address token0, address token1, uint24 fee, int24 tickSpacing)

type UniswapV3FeeAmountEnabled

type UniswapV3FeeAmountEnabled struct {
	Fee         *big.Int
	TickSpacing *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

UniswapV3FeeAmountEnabled represents a FeeAmountEnabled event raised by the UniswapV3 contract.

type UniswapV3FeeAmountEnabledIterator

type UniswapV3FeeAmountEnabledIterator struct {
	Event *UniswapV3FeeAmountEnabled // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

UniswapV3FeeAmountEnabledIterator is returned from FilterFeeAmountEnabled and is used to iterate over the raw logs and unpacked data for FeeAmountEnabled events raised by the UniswapV3 contract.

func (*UniswapV3FeeAmountEnabledIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*UniswapV3FeeAmountEnabledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniswapV3FeeAmountEnabledIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type UniswapV3Filterer

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

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

func NewUniswapV3Filterer

func NewUniswapV3Filterer(address common.Address, filterer bind.ContractFilterer) (*UniswapV3Filterer, error)

NewUniswapV3Filterer creates a new log filterer instance of UniswapV3, bound to a specific deployed contract.

func (*UniswapV3Filterer) FilterFeeAmountEnabled

func (_UniswapV3 *UniswapV3Filterer) FilterFeeAmountEnabled(opts *bind.FilterOpts, fee []*big.Int, tickSpacing []*big.Int) (*UniswapV3FeeAmountEnabledIterator, error)

FilterFeeAmountEnabled is a free log retrieval operation binding the contract event 0xc66a3fdf07232cdd185febcc6579d408c241b47ae2f9907d84be655141eeaecc.

Solidity: event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing)

func (*UniswapV3Filterer) FilterOwnerChanged

func (_UniswapV3 *UniswapV3Filterer) FilterOwnerChanged(opts *bind.FilterOpts, oldOwner []common.Address, newOwner []common.Address) (*UniswapV3OwnerChangedIterator, error)

FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address indexed oldOwner, address indexed newOwner)

func (*UniswapV3Filterer) FilterPoolCreated

func (_UniswapV3 *UniswapV3Filterer) FilterPoolCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address, fee []*big.Int) (*UniswapV3PoolCreatedIterator, error)

FilterPoolCreated is a free log retrieval operation binding the contract event 0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118.

Solidity: event PoolCreated(address indexed token0, address indexed token1, uint24 indexed fee, int24 tickSpacing, address pool)

func (*UniswapV3Filterer) ParseFeeAmountEnabled

func (_UniswapV3 *UniswapV3Filterer) ParseFeeAmountEnabled(log types.Log) (*UniswapV3FeeAmountEnabled, error)

ParseFeeAmountEnabled is a log parse operation binding the contract event 0xc66a3fdf07232cdd185febcc6579d408c241b47ae2f9907d84be655141eeaecc.

Solidity: event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing)

func (*UniswapV3Filterer) ParseOwnerChanged

func (_UniswapV3 *UniswapV3Filterer) ParseOwnerChanged(log types.Log) (*UniswapV3OwnerChanged, error)

ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address indexed oldOwner, address indexed newOwner)

func (*UniswapV3Filterer) ParsePoolCreated

func (_UniswapV3 *UniswapV3Filterer) ParsePoolCreated(log types.Log) (*UniswapV3PoolCreated, error)

ParsePoolCreated is a log parse operation binding the contract event 0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118.

Solidity: event PoolCreated(address indexed token0, address indexed token1, uint24 indexed fee, int24 tickSpacing, address pool)

func (*UniswapV3Filterer) WatchFeeAmountEnabled

func (_UniswapV3 *UniswapV3Filterer) WatchFeeAmountEnabled(opts *bind.WatchOpts, sink chan<- *UniswapV3FeeAmountEnabled, fee []*big.Int, tickSpacing []*big.Int) (event.Subscription, error)

WatchFeeAmountEnabled is a free log subscription operation binding the contract event 0xc66a3fdf07232cdd185febcc6579d408c241b47ae2f9907d84be655141eeaecc.

Solidity: event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing)

func (*UniswapV3Filterer) WatchOwnerChanged

func (_UniswapV3 *UniswapV3Filterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *UniswapV3OwnerChanged, oldOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address indexed oldOwner, address indexed newOwner)

func (*UniswapV3Filterer) WatchPoolCreated

func (_UniswapV3 *UniswapV3Filterer) WatchPoolCreated(opts *bind.WatchOpts, sink chan<- *UniswapV3PoolCreated, token0 []common.Address, token1 []common.Address, fee []*big.Int) (event.Subscription, error)

WatchPoolCreated is a free log subscription operation binding the contract event 0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118.

Solidity: event PoolCreated(address indexed token0, address indexed token1, uint24 indexed fee, int24 tickSpacing, address pool)

type UniswapV3OwnerChanged

type UniswapV3OwnerChanged struct {
	OldOwner common.Address
	NewOwner common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

UniswapV3OwnerChanged represents a OwnerChanged event raised by the UniswapV3 contract.

type UniswapV3OwnerChangedIterator

type UniswapV3OwnerChangedIterator struct {
	Event *UniswapV3OwnerChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

UniswapV3OwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the UniswapV3 contract.

func (*UniswapV3OwnerChangedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*UniswapV3OwnerChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniswapV3OwnerChangedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type UniswapV3PoolCreated

type UniswapV3PoolCreated struct {
	Token0      common.Address
	Token1      common.Address
	Fee         *big.Int
	TickSpacing *big.Int
	Pool        common.Address
	Raw         types.Log // Blockchain specific contextual infos
}

UniswapV3PoolCreated represents a PoolCreated event raised by the UniswapV3 contract.

type UniswapV3PoolCreatedIterator

type UniswapV3PoolCreatedIterator struct {
	Event *UniswapV3PoolCreated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

UniswapV3PoolCreatedIterator is returned from FilterPoolCreated and is used to iterate over the raw logs and unpacked data for PoolCreated events raised by the UniswapV3 contract.

func (*UniswapV3PoolCreatedIterator) Close

func (it *UniswapV3PoolCreatedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*UniswapV3PoolCreatedIterator) Error

func (it *UniswapV3PoolCreatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniswapV3PoolCreatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type UniswapV3Raw

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

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

func (*UniswapV3Raw) Call

func (_UniswapV3 *UniswapV3Raw) 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 (*UniswapV3Raw) Transact

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

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

func (*UniswapV3Raw) Transfer

func (_UniswapV3 *UniswapV3Raw) 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 UniswapV3Session

type UniswapV3Session struct {
	Contract     *UniswapV3        // 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
}

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

func (*UniswapV3Session) CreatePool

func (_UniswapV3 *UniswapV3Session) CreatePool(tokenA common.Address, tokenB common.Address, fee *big.Int) (*types.Transaction, error)

CreatePool is a paid mutator transaction binding the contract method 0xa1671295.

Solidity: function createPool(address tokenA, address tokenB, uint24 fee) returns(address pool)

func (*UniswapV3Session) EnableFeeAmount

func (_UniswapV3 *UniswapV3Session) EnableFeeAmount(fee *big.Int, tickSpacing *big.Int) (*types.Transaction, error)

EnableFeeAmount is a paid mutator transaction binding the contract method 0x8a7c195f.

Solidity: function enableFeeAmount(uint24 fee, int24 tickSpacing) returns()

func (*UniswapV3Session) FeeAmountTickSpacing

func (_UniswapV3 *UniswapV3Session) FeeAmountTickSpacing(arg0 *big.Int) (*big.Int, error)

FeeAmountTickSpacing is a free data retrieval call binding the contract method 0x22afcccb.

Solidity: function feeAmountTickSpacing(uint24 ) view returns(int24)

func (*UniswapV3Session) GetPool

func (_UniswapV3 *UniswapV3Session) GetPool(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (common.Address, error)

GetPool is a free data retrieval call binding the contract method 0x1698ee82.

Solidity: function getPool(address , address , uint24 ) view returns(address)

func (*UniswapV3Session) Owner

func (_UniswapV3 *UniswapV3Session) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*UniswapV3Session) Parameters

func (_UniswapV3 *UniswapV3Session) Parameters() (struct {
	Factory     common.Address
	Token0      common.Address
	Token1      common.Address
	Fee         *big.Int
	TickSpacing *big.Int
}, error)

Parameters is a free data retrieval call binding the contract method 0x89035730.

Solidity: function parameters() view returns(address factory, address token0, address token1, uint24 fee, int24 tickSpacing)

func (*UniswapV3Session) SetOwner

func (_UniswapV3 *UniswapV3Session) SetOwner(_owner common.Address) (*types.Transaction, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address _owner) returns()

type UniswapV3Transactor

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

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

func NewUniswapV3Transactor

func NewUniswapV3Transactor(address common.Address, transactor bind.ContractTransactor) (*UniswapV3Transactor, error)

NewUniswapV3Transactor creates a new write-only instance of UniswapV3, bound to a specific deployed contract.

func (*UniswapV3Transactor) CreatePool

func (_UniswapV3 *UniswapV3Transactor) CreatePool(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, fee *big.Int) (*types.Transaction, error)

CreatePool is a paid mutator transaction binding the contract method 0xa1671295.

Solidity: function createPool(address tokenA, address tokenB, uint24 fee) returns(address pool)

func (*UniswapV3Transactor) EnableFeeAmount

func (_UniswapV3 *UniswapV3Transactor) EnableFeeAmount(opts *bind.TransactOpts, fee *big.Int, tickSpacing *big.Int) (*types.Transaction, error)

EnableFeeAmount is a paid mutator transaction binding the contract method 0x8a7c195f.

Solidity: function enableFeeAmount(uint24 fee, int24 tickSpacing) returns()

func (*UniswapV3Transactor) SetOwner

func (_UniswapV3 *UniswapV3Transactor) SetOwner(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address _owner) returns()

type UniswapV3TransactorRaw

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

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

func (*UniswapV3TransactorRaw) Transact

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

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

func (*UniswapV3TransactorRaw) Transfer

func (_UniswapV3 *UniswapV3TransactorRaw) 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 UniswapV3TransactorSession

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

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

func (*UniswapV3TransactorSession) CreatePool

func (_UniswapV3 *UniswapV3TransactorSession) CreatePool(tokenA common.Address, tokenB common.Address, fee *big.Int) (*types.Transaction, error)

CreatePool is a paid mutator transaction binding the contract method 0xa1671295.

Solidity: function createPool(address tokenA, address tokenB, uint24 fee) returns(address pool)

func (*UniswapV3TransactorSession) EnableFeeAmount

func (_UniswapV3 *UniswapV3TransactorSession) EnableFeeAmount(fee *big.Int, tickSpacing *big.Int) (*types.Transaction, error)

EnableFeeAmount is a paid mutator transaction binding the contract method 0x8a7c195f.

Solidity: function enableFeeAmount(uint24 fee, int24 tickSpacing) returns()

func (*UniswapV3TransactorSession) SetOwner

func (_UniswapV3 *UniswapV3TransactorSession) SetOwner(_owner common.Address) (*types.Transaction, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address _owner) returns()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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