traderjoeFactory

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TraderjoeFactoryABI = TraderjoeFactoryMetaData.ABI

TraderjoeFactoryABI is the input ABI used to generate the binding from. Deprecated: Use TraderjoeFactoryMetaData.ABI instead.

View Source
var TraderjoeFactoryMetaData = &bind.MetaData{
	ABI: "[{\"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\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"allPairs\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"allPairsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"createPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeToSetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"getPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"migrator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setFeeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setFeeToSetter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setMigrator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

TraderjoeFactoryMetaData contains all meta data concerning the TraderjoeFactory contract.

Functions

This section is empty.

Types

type TraderjoeFactory

type TraderjoeFactory struct {
	TraderjoeFactoryCaller     // Read-only binding to the contract
	TraderjoeFactoryTransactor // Write-only binding to the contract
	TraderjoeFactoryFilterer   // Log filterer for contract events
}

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

func NewTraderjoeFactory

func NewTraderjoeFactory(address common.Address, backend bind.ContractBackend) (*TraderjoeFactory, error)

NewTraderjoeFactory creates a new instance of TraderjoeFactory, bound to a specific deployed contract.

type TraderjoeFactoryCaller

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

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

func NewTraderjoeFactoryCaller

func NewTraderjoeFactoryCaller(address common.Address, caller bind.ContractCaller) (*TraderjoeFactoryCaller, error)

NewTraderjoeFactoryCaller creates a new read-only instance of TraderjoeFactory, bound to a specific deployed contract.

func (*TraderjoeFactoryCaller) AllPairs

func (_TraderjoeFactory *TraderjoeFactoryCaller) 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 (*TraderjoeFactoryCaller) AllPairsLength

func (_TraderjoeFactory *TraderjoeFactoryCaller) 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 (*TraderjoeFactoryCaller) FeeTo

func (_TraderjoeFactory *TraderjoeFactoryCaller) 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 (*TraderjoeFactoryCaller) FeeToSetter

func (_TraderjoeFactory *TraderjoeFactoryCaller) 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 (*TraderjoeFactoryCaller) GetPair

func (_TraderjoeFactory *TraderjoeFactoryCaller) 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)

func (*TraderjoeFactoryCaller) Migrator

func (_TraderjoeFactory *TraderjoeFactoryCaller) Migrator(opts *bind.CallOpts) (common.Address, error)

Migrator is a free data retrieval call binding the contract method 0x7cd07e47.

Solidity: function migrator() view returns(address)

type TraderjoeFactoryCallerRaw

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

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

func (*TraderjoeFactoryCallerRaw) Call

func (_TraderjoeFactory *TraderjoeFactoryCallerRaw) 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 TraderjoeFactoryCallerSession

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

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

func (*TraderjoeFactoryCallerSession) AllPairs

func (_TraderjoeFactory *TraderjoeFactoryCallerSession) 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 (*TraderjoeFactoryCallerSession) AllPairsLength

func (_TraderjoeFactory *TraderjoeFactoryCallerSession) AllPairsLength() (*big.Int, error)

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

Solidity: function allPairsLength() view returns(uint256)

func (*TraderjoeFactoryCallerSession) FeeTo

func (_TraderjoeFactory *TraderjoeFactoryCallerSession) FeeTo() (common.Address, error)

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

Solidity: function feeTo() view returns(address)

func (*TraderjoeFactoryCallerSession) FeeToSetter

func (_TraderjoeFactory *TraderjoeFactoryCallerSession) FeeToSetter() (common.Address, error)

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

Solidity: function feeToSetter() view returns(address)

func (*TraderjoeFactoryCallerSession) GetPair

func (_TraderjoeFactory *TraderjoeFactoryCallerSession) 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 (*TraderjoeFactoryCallerSession) Migrator

func (_TraderjoeFactory *TraderjoeFactoryCallerSession) Migrator() (common.Address, error)

Migrator is a free data retrieval call binding the contract method 0x7cd07e47.

Solidity: function migrator() view returns(address)

type TraderjoeFactoryFilterer

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

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

func NewTraderjoeFactoryFilterer

func NewTraderjoeFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*TraderjoeFactoryFilterer, error)

NewTraderjoeFactoryFilterer creates a new log filterer instance of TraderjoeFactory, bound to a specific deployed contract.

func (*TraderjoeFactoryFilterer) FilterPairCreated

func (_TraderjoeFactory *TraderjoeFactoryFilterer) FilterPairCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*TraderjoeFactoryPairCreatedIterator, 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 (*TraderjoeFactoryFilterer) ParsePairCreated

func (_TraderjoeFactory *TraderjoeFactoryFilterer) ParsePairCreated(log types.Log) (*TraderjoeFactoryPairCreated, 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 (*TraderjoeFactoryFilterer) WatchPairCreated

func (_TraderjoeFactory *TraderjoeFactoryFilterer) WatchPairCreated(opts *bind.WatchOpts, sink chan<- *TraderjoeFactoryPairCreated, 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 TraderjoeFactoryPairCreated

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

TraderjoeFactoryPairCreated represents a PairCreated event raised by the TraderjoeFactory contract.

type TraderjoeFactoryPairCreatedIterator

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

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

func (*TraderjoeFactoryPairCreatedIterator) Close

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

func (*TraderjoeFactoryPairCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TraderjoeFactoryPairCreatedIterator) 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 TraderjoeFactoryRaw

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

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

func (*TraderjoeFactoryRaw) Call

func (_TraderjoeFactory *TraderjoeFactoryRaw) 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 (*TraderjoeFactoryRaw) Transact

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

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

func (*TraderjoeFactoryRaw) Transfer

func (_TraderjoeFactory *TraderjoeFactoryRaw) 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 TraderjoeFactorySession

type TraderjoeFactorySession struct {
	Contract     *TraderjoeFactory // 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
}

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

func (*TraderjoeFactorySession) AllPairs

func (_TraderjoeFactory *TraderjoeFactorySession) 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 (*TraderjoeFactorySession) AllPairsLength

func (_TraderjoeFactory *TraderjoeFactorySession) AllPairsLength() (*big.Int, error)

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

Solidity: function allPairsLength() view returns(uint256)

func (*TraderjoeFactorySession) CreatePair

func (_TraderjoeFactory *TraderjoeFactorySession) 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 (*TraderjoeFactorySession) FeeTo

func (_TraderjoeFactory *TraderjoeFactorySession) FeeTo() (common.Address, error)

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

Solidity: function feeTo() view returns(address)

func (*TraderjoeFactorySession) FeeToSetter

func (_TraderjoeFactory *TraderjoeFactorySession) FeeToSetter() (common.Address, error)

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

Solidity: function feeToSetter() view returns(address)

func (*TraderjoeFactorySession) GetPair

func (_TraderjoeFactory *TraderjoeFactorySession) 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 (*TraderjoeFactorySession) Migrator

func (_TraderjoeFactory *TraderjoeFactorySession) Migrator() (common.Address, error)

Migrator is a free data retrieval call binding the contract method 0x7cd07e47.

Solidity: function migrator() view returns(address)

func (*TraderjoeFactorySession) SetFeeTo

func (_TraderjoeFactory *TraderjoeFactorySession) SetFeeTo(arg0 common.Address) (*types.Transaction, error)

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

Solidity: function setFeeTo(address ) returns()

func (*TraderjoeFactorySession) SetFeeToSetter

func (_TraderjoeFactory *TraderjoeFactorySession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error)

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

Solidity: function setFeeToSetter(address ) returns()

func (*TraderjoeFactorySession) SetMigrator

func (_TraderjoeFactory *TraderjoeFactorySession) SetMigrator(arg0 common.Address) (*types.Transaction, error)

SetMigrator is a paid mutator transaction binding the contract method 0x23cf3118.

Solidity: function setMigrator(address ) returns()

type TraderjoeFactoryTransactor

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

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

func NewTraderjoeFactoryTransactor

func NewTraderjoeFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*TraderjoeFactoryTransactor, error)

NewTraderjoeFactoryTransactor creates a new write-only instance of TraderjoeFactory, bound to a specific deployed contract.

func (*TraderjoeFactoryTransactor) CreatePair

func (_TraderjoeFactory *TraderjoeFactoryTransactor) 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 (*TraderjoeFactoryTransactor) SetFeeTo

func (_TraderjoeFactory *TraderjoeFactoryTransactor) 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 (*TraderjoeFactoryTransactor) SetFeeToSetter

func (_TraderjoeFactory *TraderjoeFactoryTransactor) 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()

func (*TraderjoeFactoryTransactor) SetMigrator

func (_TraderjoeFactory *TraderjoeFactoryTransactor) SetMigrator(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error)

SetMigrator is a paid mutator transaction binding the contract method 0x23cf3118.

Solidity: function setMigrator(address ) returns()

type TraderjoeFactoryTransactorRaw

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

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

func (*TraderjoeFactoryTransactorRaw) Transact

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

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

func (*TraderjoeFactoryTransactorRaw) Transfer

func (_TraderjoeFactory *TraderjoeFactoryTransactorRaw) 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 TraderjoeFactoryTransactorSession

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

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

func (*TraderjoeFactoryTransactorSession) CreatePair

func (_TraderjoeFactory *TraderjoeFactoryTransactorSession) 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 (*TraderjoeFactoryTransactorSession) SetFeeTo

func (_TraderjoeFactory *TraderjoeFactoryTransactorSession) SetFeeTo(arg0 common.Address) (*types.Transaction, error)

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

Solidity: function setFeeTo(address ) returns()

func (*TraderjoeFactoryTransactorSession) SetFeeToSetter

func (_TraderjoeFactory *TraderjoeFactoryTransactorSession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error)

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

Solidity: function setFeeToSetter(address ) returns()

func (*TraderjoeFactoryTransactorSession) SetMigrator

func (_TraderjoeFactory *TraderjoeFactoryTransactorSession) SetMigrator(arg0 common.Address) (*types.Transaction, error)

SetMigrator is a paid mutator transaction binding the contract method 0x23cf3118.

Solidity: function setMigrator(address ) returns()

Jump to

Keyboard shortcuts

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