uniswapv2factory

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Uniswapv2factoryABI = "" /* 2467-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Uniswapv2factory

type Uniswapv2factory struct {
	Uniswapv2factoryCaller     // Read-only binding to the contract
	Uniswapv2factoryTransactor // Write-only binding to the contract
	Uniswapv2factoryFilterer   // Log filterer for contract events
}

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

func NewUniswapv2factory

func NewUniswapv2factory(address common.Address, backend bind.ContractBackend) (*Uniswapv2factory, error)

NewUniswapv2factory creates a new instance of Uniswapv2factory, bound to a specific deployed contract.

type Uniswapv2factoryCaller

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

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

func NewUniswapv2factoryCaller

func NewUniswapv2factoryCaller(address common.Address, caller bind.ContractCaller) (*Uniswapv2factoryCaller, error)

NewUniswapv2factoryCaller creates a new read-only instance of Uniswapv2factory, bound to a specific deployed contract.

func (*Uniswapv2factoryCaller) AllPairs

func (_Uniswapv2factory *Uniswapv2factoryCaller) AllPairs(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b.

Solidity: function allPairs(uint256 ) view returns(address pair)

func (*Uniswapv2factoryCaller) AllPairsLength

func (_Uniswapv2factory *Uniswapv2factoryCaller) AllPairsLength(opts *bind.CallOpts) (*big.Int, error)

AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3.

Solidity: function allPairsLength() view returns(uint256)

func (*Uniswapv2factoryCaller) FeeTo

func (_Uniswapv2factory *Uniswapv2factoryCaller) FeeTo(opts *bind.CallOpts) (common.Address, error)

FeeTo is a free data retrieval call binding the contract method 0x017e7e58.

Solidity: function feeTo() view returns(address)

func (*Uniswapv2factoryCaller) FeeToSetter

func (_Uniswapv2factory *Uniswapv2factoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error)

FeeToSetter is a free data retrieval call binding the contract method 0x094b7415.

Solidity: function feeToSetter() view returns(address)

func (*Uniswapv2factoryCaller) GetPair

func (_Uniswapv2factory *Uniswapv2factoryCaller) GetPair(opts *bind.CallOpts, tokenA common.Address, tokenB common.Address) (common.Address, error)

GetPair is a free data retrieval call binding the contract method 0xe6a43905.

Solidity: function getPair(address tokenA, address tokenB) view returns(address pair)

type Uniswapv2factoryCallerRaw

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

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

func (*Uniswapv2factoryCallerRaw) Call

func (_Uniswapv2factory *Uniswapv2factoryCallerRaw) 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 Uniswapv2factoryCallerSession

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

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

func (*Uniswapv2factoryCallerSession) AllPairs

func (_Uniswapv2factory *Uniswapv2factoryCallerSession) AllPairs(arg0 *big.Int) (common.Address, error)

AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b.

Solidity: function allPairs(uint256 ) view returns(address pair)

func (*Uniswapv2factoryCallerSession) AllPairsLength

func (_Uniswapv2factory *Uniswapv2factoryCallerSession) AllPairsLength() (*big.Int, error)

AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3.

Solidity: function allPairsLength() view returns(uint256)

func (*Uniswapv2factoryCallerSession) FeeTo

func (_Uniswapv2factory *Uniswapv2factoryCallerSession) FeeTo() (common.Address, error)

FeeTo is a free data retrieval call binding the contract method 0x017e7e58.

Solidity: function feeTo() view returns(address)

func (*Uniswapv2factoryCallerSession) FeeToSetter

func (_Uniswapv2factory *Uniswapv2factoryCallerSession) FeeToSetter() (common.Address, error)

FeeToSetter is a free data retrieval call binding the contract method 0x094b7415.

Solidity: function feeToSetter() view returns(address)

func (*Uniswapv2factoryCallerSession) GetPair

func (_Uniswapv2factory *Uniswapv2factoryCallerSession) GetPair(tokenA common.Address, tokenB common.Address) (common.Address, error)

GetPair is a free data retrieval call binding the contract method 0xe6a43905.

Solidity: function getPair(address tokenA, address tokenB) view returns(address pair)

type Uniswapv2factoryFilterer

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

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

func NewUniswapv2factoryFilterer

func NewUniswapv2factoryFilterer(address common.Address, filterer bind.ContractFilterer) (*Uniswapv2factoryFilterer, error)

NewUniswapv2factoryFilterer creates a new log filterer instance of Uniswapv2factory, bound to a specific deployed contract.

func (*Uniswapv2factoryFilterer) FilterPairCreated

func (_Uniswapv2factory *Uniswapv2factoryFilterer) FilterPairCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*Uniswapv2factoryPairCreatedIterator, error)

FilterPairCreated is a free log retrieval operation binding the contract event 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9.

Solidity: event PairCreated(address indexed token0, address indexed token1, address pair, uint256 arg3)

func (*Uniswapv2factoryFilterer) ParsePairCreated

func (_Uniswapv2factory *Uniswapv2factoryFilterer) ParsePairCreated(log types.Log) (*Uniswapv2factoryPairCreated, error)

ParsePairCreated is a log parse operation binding the contract event 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9.

Solidity: event PairCreated(address indexed token0, address indexed token1, address pair, uint256 arg3)

func (*Uniswapv2factoryFilterer) WatchPairCreated

func (_Uniswapv2factory *Uniswapv2factoryFilterer) WatchPairCreated(opts *bind.WatchOpts, sink chan<- *Uniswapv2factoryPairCreated, token0 []common.Address, token1 []common.Address) (event.Subscription, error)

WatchPairCreated is a free log subscription operation binding the contract event 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9.

Solidity: event PairCreated(address indexed token0, address indexed token1, address pair, uint256 arg3)

type Uniswapv2factoryPairCreated

type Uniswapv2factoryPairCreated struct {
	Token0 common.Address
	Token1 common.Address
	Pair   common.Address
	Arg3   *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

Uniswapv2factoryPairCreated represents a PairCreated event raised by the Uniswapv2factory contract.

type Uniswapv2factoryPairCreatedIterator

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

Uniswapv2factoryPairCreatedIterator is returned from FilterPairCreated and is used to iterate over the raw logs and unpacked data for PairCreated events raised by the Uniswapv2factory contract.

func (*Uniswapv2factoryPairCreatedIterator) Close

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

func (*Uniswapv2factoryPairCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Uniswapv2factoryPairCreatedIterator) 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 Uniswapv2factoryRaw

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

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

func (*Uniswapv2factoryRaw) Call

func (_Uniswapv2factory *Uniswapv2factoryRaw) 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 (*Uniswapv2factoryRaw) Transact

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

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

func (*Uniswapv2factoryRaw) Transfer

func (_Uniswapv2factory *Uniswapv2factoryRaw) 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 Uniswapv2factorySession

type Uniswapv2factorySession struct {
	Contract     *Uniswapv2factory // 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
}

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

func (*Uniswapv2factorySession) AllPairs

func (_Uniswapv2factory *Uniswapv2factorySession) AllPairs(arg0 *big.Int) (common.Address, error)

AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b.

Solidity: function allPairs(uint256 ) view returns(address pair)

func (*Uniswapv2factorySession) AllPairsLength

func (_Uniswapv2factory *Uniswapv2factorySession) AllPairsLength() (*big.Int, error)

AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3.

Solidity: function allPairsLength() view returns(uint256)

func (*Uniswapv2factorySession) CreatePair

func (_Uniswapv2factory *Uniswapv2factorySession) CreatePair(tokenA common.Address, tokenB common.Address) (*types.Transaction, error)

CreatePair is a paid mutator transaction binding the contract method 0xc9c65396.

Solidity: function createPair(address tokenA, address tokenB) returns(address pair)

func (*Uniswapv2factorySession) FeeTo

func (_Uniswapv2factory *Uniswapv2factorySession) FeeTo() (common.Address, error)

FeeTo is a free data retrieval call binding the contract method 0x017e7e58.

Solidity: function feeTo() view returns(address)

func (*Uniswapv2factorySession) FeeToSetter

func (_Uniswapv2factory *Uniswapv2factorySession) FeeToSetter() (common.Address, error)

FeeToSetter is a free data retrieval call binding the contract method 0x094b7415.

Solidity: function feeToSetter() view returns(address)

func (*Uniswapv2factorySession) GetPair

func (_Uniswapv2factory *Uniswapv2factorySession) GetPair(tokenA common.Address, tokenB common.Address) (common.Address, error)

GetPair is a free data retrieval call binding the contract method 0xe6a43905.

Solidity: function getPair(address tokenA, address tokenB) view returns(address pair)

func (*Uniswapv2factorySession) SetFeeTo

func (_Uniswapv2factory *Uniswapv2factorySession) SetFeeTo(arg0 common.Address) (*types.Transaction, error)

SetFeeTo is a paid mutator transaction binding the contract method 0xf46901ed.

Solidity: function setFeeTo(address ) returns()

func (*Uniswapv2factorySession) SetFeeToSetter

func (_Uniswapv2factory *Uniswapv2factorySession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error)

SetFeeToSetter is a paid mutator transaction binding the contract method 0xa2e74af6.

Solidity: function setFeeToSetter(address ) returns()

type Uniswapv2factoryTransactor

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

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

func NewUniswapv2factoryTransactor

func NewUniswapv2factoryTransactor(address common.Address, transactor bind.ContractTransactor) (*Uniswapv2factoryTransactor, error)

NewUniswapv2factoryTransactor creates a new write-only instance of Uniswapv2factory, bound to a specific deployed contract.

func (*Uniswapv2factoryTransactor) CreatePair

func (_Uniswapv2factory *Uniswapv2factoryTransactor) CreatePair(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address) (*types.Transaction, error)

CreatePair is a paid mutator transaction binding the contract method 0xc9c65396.

Solidity: function createPair(address tokenA, address tokenB) returns(address pair)

func (*Uniswapv2factoryTransactor) SetFeeTo

func (_Uniswapv2factory *Uniswapv2factoryTransactor) SetFeeTo(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error)

SetFeeTo is a paid mutator transaction binding the contract method 0xf46901ed.

Solidity: function setFeeTo(address ) returns()

func (*Uniswapv2factoryTransactor) SetFeeToSetter

func (_Uniswapv2factory *Uniswapv2factoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error)

SetFeeToSetter is a paid mutator transaction binding the contract method 0xa2e74af6.

Solidity: function setFeeToSetter(address ) returns()

type Uniswapv2factoryTransactorRaw

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

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

func (*Uniswapv2factoryTransactorRaw) Transact

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

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

func (*Uniswapv2factoryTransactorRaw) Transfer

func (_Uniswapv2factory *Uniswapv2factoryTransactorRaw) 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 Uniswapv2factoryTransactorSession

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

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

func (*Uniswapv2factoryTransactorSession) CreatePair

func (_Uniswapv2factory *Uniswapv2factoryTransactorSession) CreatePair(tokenA common.Address, tokenB common.Address) (*types.Transaction, error)

CreatePair is a paid mutator transaction binding the contract method 0xc9c65396.

Solidity: function createPair(address tokenA, address tokenB) returns(address pair)

func (*Uniswapv2factoryTransactorSession) SetFeeTo

func (_Uniswapv2factory *Uniswapv2factoryTransactorSession) SetFeeTo(arg0 common.Address) (*types.Transaction, error)

SetFeeTo is a paid mutator transaction binding the contract method 0xf46901ed.

Solidity: function setFeeTo(address ) returns()

func (*Uniswapv2factoryTransactorSession) SetFeeToSetter

func (_Uniswapv2factory *Uniswapv2factoryTransactorSession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error)

SetFeeToSetter is a paid mutator transaction binding the contract method 0xa2e74af6.

Solidity: function setFeeToSetter(address ) returns()

Jump to

Keyboard shortcuts

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