Documentation ¶
Index ¶
- Variables
- type Factory
- type FactoryCaller
- func (_Factory *FactoryCaller) AllPairs(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- func (_Factory *FactoryCaller) AllPairsLength(opts *bind.CallOpts) (*big.Int, error)
- func (_Factory *FactoryCaller) FeeTo(opts *bind.CallOpts) (common.Address, error)
- func (_Factory *FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error)
- func (_Factory *FactoryCaller) GetPair(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (common.Address, error)
- func (_Factory *FactoryCaller) INITCODEPAIRHASH(opts *bind.CallOpts) ([32]byte, error)
- type FactoryCallerRaw
- type FactoryCallerSession
- func (_Factory *FactoryCallerSession) AllPairs(arg0 *big.Int) (common.Address, error)
- func (_Factory *FactoryCallerSession) AllPairsLength() (*big.Int, error)
- func (_Factory *FactoryCallerSession) FeeTo() (common.Address, error)
- func (_Factory *FactoryCallerSession) FeeToSetter() (common.Address, error)
- func (_Factory *FactoryCallerSession) GetPair(arg0 common.Address, arg1 common.Address) (common.Address, error)
- func (_Factory *FactoryCallerSession) INITCODEPAIRHASH() ([32]byte, error)
- type FactoryFilterer
- func (_Factory *FactoryFilterer) FilterPairCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*FactoryPairCreatedIterator, error)
- func (_Factory *FactoryFilterer) ParsePairCreated(log types.Log) (*FactoryPairCreated, error)
- func (_Factory *FactoryFilterer) WatchPairCreated(opts *bind.WatchOpts, sink chan<- *FactoryPairCreated, token0 []common.Address, ...) (event.Subscription, error)
- type FactoryPairCreated
- type FactoryPairCreatedIterator
- type FactoryRaw
- func (_Factory *FactoryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Factory *FactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Factory *FactoryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type FactorySession
- func (_Factory *FactorySession) AllPairs(arg0 *big.Int) (common.Address, error)
- func (_Factory *FactorySession) AllPairsLength() (*big.Int, error)
- func (_Factory *FactorySession) CreatePair(tokenA common.Address, tokenB common.Address) (*types.Transaction, error)
- func (_Factory *FactorySession) FeeTo() (common.Address, error)
- func (_Factory *FactorySession) FeeToSetter() (common.Address, error)
- func (_Factory *FactorySession) GetPair(arg0 common.Address, arg1 common.Address) (common.Address, error)
- func (_Factory *FactorySession) INITCODEPAIRHASH() ([32]byte, error)
- func (_Factory *FactorySession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error)
- func (_Factory *FactorySession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error)
- type FactoryTransactor
- func (_Factory *FactoryTransactor) CreatePair(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address) (*types.Transaction, error)
- func (_Factory *FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, _feeTo common.Address) (*types.Transaction, error)
- func (_Factory *FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, _feeToSetter common.Address) (*types.Transaction, error)
- type FactoryTransactorRaw
- type FactoryTransactorSession
- func (_Factory *FactoryTransactorSession) CreatePair(tokenA common.Address, tokenB common.Address) (*types.Transaction, error)
- func (_Factory *FactoryTransactorSession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error)
- func (_Factory *FactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var FactoryABI = FactoryMetaData.ABI
FactoryABI is the input ABI used to generate the binding from. Deprecated: Use FactoryMetaData.ABI instead.
var FactoryMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeToSetter\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"PairCreated\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"INIT_CODE_PAIR_HASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"allPairs\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"allPairsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"createPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeToSetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"getPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeTo\",\"type\":\"address\"}],\"name\":\"setFeeTo\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeToSetter\",\"type\":\"address\"}],\"name\":\"setFeeToSetter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
FactoryMetaData contains all meta data concerning the Factory contract.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct { FactoryCaller // Read-only binding to the contract FactoryTransactor // Write-only binding to the contract FactoryFilterer // Log filterer for contract events }
Factory is an auto generated Go binding around an Ethereum contract.
func NewFactory ¶
NewFactory creates a new instance of Factory, bound to a specific deployed contract.
type FactoryCaller ¶
type FactoryCaller struct {
// contains filtered or unexported fields
}
FactoryCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewFactoryCaller ¶
func NewFactoryCaller(address common.Address, caller bind.ContractCaller) (*FactoryCaller, error)
NewFactoryCaller creates a new read-only instance of Factory, bound to a specific deployed contract.
func (*FactoryCaller) AllPairs ¶
AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b.
Solidity: function allPairs(uint256 ) view returns(address)
func (*FactoryCaller) AllPairsLength ¶
AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3.
Solidity: function allPairsLength() view returns(uint256)
func (*FactoryCaller) FeeTo ¶
FeeTo is a free data retrieval call binding the contract method 0x017e7e58.
Solidity: function feeTo() view returns(address)
func (*FactoryCaller) FeeToSetter ¶
FeeToSetter is a free data retrieval call binding the contract method 0x094b7415.
Solidity: function feeToSetter() view returns(address)
func (*FactoryCaller) GetPair ¶
func (_Factory *FactoryCaller) GetPair(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (common.Address, error)
GetPair is a free data retrieval call binding the contract method 0xe6a43905.
Solidity: function getPair(address , address ) view returns(address)
func (*FactoryCaller) INITCODEPAIRHASH ¶
func (_Factory *FactoryCaller) INITCODEPAIRHASH(opts *bind.CallOpts) ([32]byte, error)
INITCODEPAIRHASH is a free data retrieval call binding the contract method 0x5855a25a.
Solidity: function INIT_CODE_PAIR_HASH() view returns(bytes32)
type FactoryCallerRaw ¶
type FactoryCallerRaw struct {
Contract *FactoryCaller // Generic read-only contract binding to access the raw methods on
}
FactoryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*FactoryCallerRaw) Call ¶
func (_Factory *FactoryCallerRaw) 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 FactoryCallerSession ¶
type FactoryCallerSession struct { Contract *FactoryCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
FactoryCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*FactoryCallerSession) AllPairs ¶
AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b.
Solidity: function allPairs(uint256 ) view returns(address)
func (*FactoryCallerSession) AllPairsLength ¶
func (_Factory *FactoryCallerSession) AllPairsLength() (*big.Int, error)
AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3.
Solidity: function allPairsLength() view returns(uint256)
func (*FactoryCallerSession) FeeTo ¶
func (_Factory *FactoryCallerSession) FeeTo() (common.Address, error)
FeeTo is a free data retrieval call binding the contract method 0x017e7e58.
Solidity: function feeTo() view returns(address)
func (*FactoryCallerSession) FeeToSetter ¶
func (_Factory *FactoryCallerSession) FeeToSetter() (common.Address, error)
FeeToSetter is a free data retrieval call binding the contract method 0x094b7415.
Solidity: function feeToSetter() view returns(address)
func (*FactoryCallerSession) GetPair ¶
func (_Factory *FactoryCallerSession) GetPair(arg0 common.Address, arg1 common.Address) (common.Address, error)
GetPair is a free data retrieval call binding the contract method 0xe6a43905.
Solidity: function getPair(address , address ) view returns(address)
func (*FactoryCallerSession) INITCODEPAIRHASH ¶
func (_Factory *FactoryCallerSession) INITCODEPAIRHASH() ([32]byte, error)
INITCODEPAIRHASH is a free data retrieval call binding the contract method 0x5855a25a.
Solidity: function INIT_CODE_PAIR_HASH() view returns(bytes32)
type FactoryFilterer ¶
type FactoryFilterer struct {
// contains filtered or unexported fields
}
FactoryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewFactoryFilterer ¶
func NewFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*FactoryFilterer, error)
NewFactoryFilterer creates a new log filterer instance of Factory, bound to a specific deployed contract.
func (*FactoryFilterer) FilterPairCreated ¶
func (_Factory *FactoryFilterer) FilterPairCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*FactoryPairCreatedIterator, 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 (*FactoryFilterer) ParsePairCreated ¶
func (_Factory *FactoryFilterer) ParsePairCreated(log types.Log) (*FactoryPairCreated, 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 (*FactoryFilterer) WatchPairCreated ¶
func (_Factory *FactoryFilterer) WatchPairCreated(opts *bind.WatchOpts, sink chan<- *FactoryPairCreated, 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 FactoryPairCreated ¶
type FactoryPairCreated struct { Token0 common.Address Token1 common.Address Pair common.Address Arg3 *big.Int Raw types.Log // Blockchain specific contextual infos }
FactoryPairCreated represents a PairCreated event raised by the Factory contract.
type FactoryPairCreatedIterator ¶
type FactoryPairCreatedIterator struct { Event *FactoryPairCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FactoryPairCreatedIterator is returned from FilterPairCreated and is used to iterate over the raw logs and unpacked data for PairCreated events raised by the Factory contract.
func (*FactoryPairCreatedIterator) Close ¶
func (it *FactoryPairCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FactoryPairCreatedIterator) Error ¶
func (it *FactoryPairCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FactoryPairCreatedIterator) Next ¶
func (it *FactoryPairCreatedIterator) Next() bool
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 FactoryRaw ¶
type FactoryRaw struct {
Contract *Factory // Generic contract binding to access the raw methods on
}
FactoryRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*FactoryRaw) Call ¶
func (_Factory *FactoryRaw) 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 (*FactoryRaw) Transact ¶
func (_Factory *FactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FactoryRaw) Transfer ¶
func (_Factory *FactoryRaw) 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 FactorySession ¶
type FactorySession struct { Contract *Factory // 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 }
FactorySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*FactorySession) AllPairs ¶
AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b.
Solidity: function allPairs(uint256 ) view returns(address)
func (*FactorySession) AllPairsLength ¶
func (_Factory *FactorySession) AllPairsLength() (*big.Int, error)
AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3.
Solidity: function allPairsLength() view returns(uint256)
func (*FactorySession) CreatePair ¶
func (_Factory *FactorySession) 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 (*FactorySession) FeeTo ¶
func (_Factory *FactorySession) FeeTo() (common.Address, error)
FeeTo is a free data retrieval call binding the contract method 0x017e7e58.
Solidity: function feeTo() view returns(address)
func (*FactorySession) FeeToSetter ¶
func (_Factory *FactorySession) FeeToSetter() (common.Address, error)
FeeToSetter is a free data retrieval call binding the contract method 0x094b7415.
Solidity: function feeToSetter() view returns(address)
func (*FactorySession) GetPair ¶
func (_Factory *FactorySession) GetPair(arg0 common.Address, arg1 common.Address) (common.Address, error)
GetPair is a free data retrieval call binding the contract method 0xe6a43905.
Solidity: function getPair(address , address ) view returns(address)
func (*FactorySession) INITCODEPAIRHASH ¶
func (_Factory *FactorySession) INITCODEPAIRHASH() ([32]byte, error)
INITCODEPAIRHASH is a free data retrieval call binding the contract method 0x5855a25a.
Solidity: function INIT_CODE_PAIR_HASH() view returns(bytes32)
func (*FactorySession) SetFeeTo ¶
func (_Factory *FactorySession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error)
SetFeeTo is a paid mutator transaction binding the contract method 0xf46901ed.
Solidity: function setFeeTo(address _feeTo) returns()
func (*FactorySession) SetFeeToSetter ¶
func (_Factory *FactorySession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error)
SetFeeToSetter is a paid mutator transaction binding the contract method 0xa2e74af6.
Solidity: function setFeeToSetter(address _feeToSetter) returns()
type FactoryTransactor ¶
type FactoryTransactor struct {
// contains filtered or unexported fields
}
FactoryTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewFactoryTransactor ¶
func NewFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*FactoryTransactor, error)
NewFactoryTransactor creates a new write-only instance of Factory, bound to a specific deployed contract.
func (*FactoryTransactor) CreatePair ¶
func (_Factory *FactoryTransactor) 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 (*FactoryTransactor) SetFeeTo ¶
func (_Factory *FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, _feeTo common.Address) (*types.Transaction, error)
SetFeeTo is a paid mutator transaction binding the contract method 0xf46901ed.
Solidity: function setFeeTo(address _feeTo) returns()
func (*FactoryTransactor) SetFeeToSetter ¶
func (_Factory *FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, _feeToSetter common.Address) (*types.Transaction, error)
SetFeeToSetter is a paid mutator transaction binding the contract method 0xa2e74af6.
Solidity: function setFeeToSetter(address _feeToSetter) returns()
type FactoryTransactorRaw ¶
type FactoryTransactorRaw struct {
Contract *FactoryTransactor // Generic write-only contract binding to access the raw methods on
}
FactoryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*FactoryTransactorRaw) Transact ¶
func (_Factory *FactoryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FactoryTransactorRaw) Transfer ¶
func (_Factory *FactoryTransactorRaw) 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 FactoryTransactorSession ¶
type FactoryTransactorSession struct { Contract *FactoryTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
FactoryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*FactoryTransactorSession) CreatePair ¶
func (_Factory *FactoryTransactorSession) 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 (*FactoryTransactorSession) SetFeeTo ¶
func (_Factory *FactoryTransactorSession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error)
SetFeeTo is a paid mutator transaction binding the contract method 0xf46901ed.
Solidity: function setFeeTo(address _feeTo) returns()
func (*FactoryTransactorSession) SetFeeToSetter ¶
func (_Factory *FactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error)
SetFeeToSetter is a paid mutator transaction binding the contract method 0xa2e74af6.
Solidity: function setFeeToSetter(address _feeToSetter) returns()