pancakeSwapFactory

package
v1.1.29 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PancakeSwapFactoryABI = PancakeSwapFactoryMetaData.ABI

PancakeSwapFactoryABI is the input ABI used to generate the binding from. Deprecated: Use PancakeSwapFactoryMetaData.ABI instead.

View Source
var PancakeSwapFactoryMetaData = &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\"}]",
}

PancakeSwapFactoryMetaData contains all meta data concerning the PancakeSwapFactory contract.

Functions

This section is empty.

Types

type PancakeSwapFactory

type PancakeSwapFactory struct {
	PancakeSwapFactoryCaller     // Read-only binding to the contract
	PancakeSwapFactoryTransactor // Write-only binding to the contract
	PancakeSwapFactoryFilterer   // Log filterer for contract events
}

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

func NewPancakeSwapFactory

func NewPancakeSwapFactory(address common.Address, backend bind.ContractBackend) (*PancakeSwapFactory, error)

NewPancakeSwapFactory creates a new instance of PancakeSwapFactory, bound to a specific deployed contract.

type PancakeSwapFactoryCaller

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

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

func NewPancakeSwapFactoryCaller

func NewPancakeSwapFactoryCaller(address common.Address, caller bind.ContractCaller) (*PancakeSwapFactoryCaller, error)

NewPancakeSwapFactoryCaller creates a new read-only instance of PancakeSwapFactory, bound to a specific deployed contract.

func (*PancakeSwapFactoryCaller) AllPairs

func (_PancakeSwapFactory *PancakeSwapFactoryCaller) 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)

func (*PancakeSwapFactoryCaller) AllPairsLength

func (_PancakeSwapFactory *PancakeSwapFactoryCaller) 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 (*PancakeSwapFactoryCaller) FeeTo

func (_PancakeSwapFactory *PancakeSwapFactoryCaller) 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 (*PancakeSwapFactoryCaller) FeeToSetter

func (_PancakeSwapFactory *PancakeSwapFactoryCaller) 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 (*PancakeSwapFactoryCaller) GetPair

func (_PancakeSwapFactory *PancakeSwapFactoryCaller) 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 (*PancakeSwapFactoryCaller) INITCODEPAIRHASH

func (_PancakeSwapFactory *PancakeSwapFactoryCaller) 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 PancakeSwapFactoryCallerRaw

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

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

func (*PancakeSwapFactoryCallerRaw) Call

func (_PancakeSwapFactory *PancakeSwapFactoryCallerRaw) 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 PancakeSwapFactoryCallerSession

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

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

func (*PancakeSwapFactoryCallerSession) AllPairs

func (_PancakeSwapFactory *PancakeSwapFactoryCallerSession) 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)

func (*PancakeSwapFactoryCallerSession) AllPairsLength

func (_PancakeSwapFactory *PancakeSwapFactoryCallerSession) AllPairsLength() (*big.Int, error)

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

Solidity: function allPairsLength() view returns(uint256)

func (*PancakeSwapFactoryCallerSession) FeeTo

func (_PancakeSwapFactory *PancakeSwapFactoryCallerSession) FeeTo() (common.Address, error)

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

Solidity: function feeTo() view returns(address)

func (*PancakeSwapFactoryCallerSession) FeeToSetter

func (_PancakeSwapFactory *PancakeSwapFactoryCallerSession) FeeToSetter() (common.Address, error)

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

Solidity: function feeToSetter() view returns(address)

func (*PancakeSwapFactoryCallerSession) GetPair

func (_PancakeSwapFactory *PancakeSwapFactoryCallerSession) 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 (*PancakeSwapFactoryCallerSession) INITCODEPAIRHASH

func (_PancakeSwapFactory *PancakeSwapFactoryCallerSession) 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 PancakeSwapFactoryFilterer

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

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

func NewPancakeSwapFactoryFilterer

func NewPancakeSwapFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*PancakeSwapFactoryFilterer, error)

NewPancakeSwapFactoryFilterer creates a new log filterer instance of PancakeSwapFactory, bound to a specific deployed contract.

func (*PancakeSwapFactoryFilterer) FilterPairCreated

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

func (_PancakeSwapFactory *PancakeSwapFactoryFilterer) ParsePairCreated(log types.Log) (*PancakeSwapFactoryPairCreated, 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 (*PancakeSwapFactoryFilterer) WatchPairCreated

func (_PancakeSwapFactory *PancakeSwapFactoryFilterer) WatchPairCreated(opts *bind.WatchOpts, sink chan<- *PancakeSwapFactoryPairCreated, 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 PancakeSwapFactoryPairCreated

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

PancakeSwapFactoryPairCreated represents a PairCreated event raised by the PancakeSwapFactory contract.

type PancakeSwapFactoryPairCreatedIterator

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

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

func (*PancakeSwapFactoryPairCreatedIterator) Close

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

func (*PancakeSwapFactoryPairCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PancakeSwapFactoryPairCreatedIterator) 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 PancakeSwapFactoryRaw

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

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

func (*PancakeSwapFactoryRaw) Call

func (_PancakeSwapFactory *PancakeSwapFactoryRaw) 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 (*PancakeSwapFactoryRaw) Transact

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

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

func (*PancakeSwapFactoryRaw) Transfer

func (_PancakeSwapFactory *PancakeSwapFactoryRaw) 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 PancakeSwapFactorySession

type PancakeSwapFactorySession struct {
	Contract     *PancakeSwapFactory // 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
}

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

func (*PancakeSwapFactorySession) AllPairs

func (_PancakeSwapFactory *PancakeSwapFactorySession) 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)

func (*PancakeSwapFactorySession) AllPairsLength

func (_PancakeSwapFactory *PancakeSwapFactorySession) AllPairsLength() (*big.Int, error)

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

Solidity: function allPairsLength() view returns(uint256)

func (*PancakeSwapFactorySession) CreatePair

func (_PancakeSwapFactory *PancakeSwapFactorySession) 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 (*PancakeSwapFactorySession) FeeTo

func (_PancakeSwapFactory *PancakeSwapFactorySession) FeeTo() (common.Address, error)

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

Solidity: function feeTo() view returns(address)

func (*PancakeSwapFactorySession) FeeToSetter

func (_PancakeSwapFactory *PancakeSwapFactorySession) FeeToSetter() (common.Address, error)

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

Solidity: function feeToSetter() view returns(address)

func (*PancakeSwapFactorySession) GetPair

func (_PancakeSwapFactory *PancakeSwapFactorySession) 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 (*PancakeSwapFactorySession) INITCODEPAIRHASH

func (_PancakeSwapFactory *PancakeSwapFactorySession) 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 (*PancakeSwapFactorySession) SetFeeTo

func (_PancakeSwapFactory *PancakeSwapFactorySession) 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 (*PancakeSwapFactorySession) SetFeeToSetter

func (_PancakeSwapFactory *PancakeSwapFactorySession) 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 PancakeSwapFactoryTransactor

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

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

func NewPancakeSwapFactoryTransactor

func NewPancakeSwapFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*PancakeSwapFactoryTransactor, error)

NewPancakeSwapFactoryTransactor creates a new write-only instance of PancakeSwapFactory, bound to a specific deployed contract.

func (*PancakeSwapFactoryTransactor) CreatePair

func (_PancakeSwapFactory *PancakeSwapFactoryTransactor) 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 (*PancakeSwapFactoryTransactor) SetFeeTo

func (_PancakeSwapFactory *PancakeSwapFactoryTransactor) 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 (*PancakeSwapFactoryTransactor) SetFeeToSetter

func (_PancakeSwapFactory *PancakeSwapFactoryTransactor) 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 PancakeSwapFactoryTransactorRaw

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

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

func (*PancakeSwapFactoryTransactorRaw) Transact

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

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

func (*PancakeSwapFactoryTransactorRaw) Transfer

func (_PancakeSwapFactory *PancakeSwapFactoryTransactorRaw) 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 PancakeSwapFactoryTransactorSession

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

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

func (*PancakeSwapFactoryTransactorSession) CreatePair

func (_PancakeSwapFactory *PancakeSwapFactoryTransactorSession) 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 (*PancakeSwapFactoryTransactorSession) SetFeeTo

func (_PancakeSwapFactory *PancakeSwapFactoryTransactorSession) 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 (*PancakeSwapFactoryTransactorSession) SetFeeToSetter

func (_PancakeSwapFactory *PancakeSwapFactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error)

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

Solidity: function setFeeToSetter(address _feeToSetter) returns()

Jump to

Keyboard shortcuts

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