arbitrumfactory

package
v0.0.0-...-d80814a Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FactoryABI = FactoryMetaData.ABI

FactoryABI is the input ABI used to generate the binding from. Deprecated: Use FactoryMetaData.ABI instead.

View Source
var FactoryMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_poolDeployer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_vaultAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"newDefaultCommunityFee\",\"type\":\"uint8\"}],\"name\":\"DefaultCommunityFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newFarmingAddress\",\"type\":\"address\"}],\"name\":\"FarmingAddress\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"alpha1\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"alpha2\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"beta1\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"beta2\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gamma1\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gamma2\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"volumeBeta\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"volumeGamma\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"baseFee\",\"type\":\"uint16\"}],\"name\":\"FeeConfiguration\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"Owner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"Pool\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newVaultAddress\",\"type\":\"address\"}],\"name\":\"VaultAddress\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"baseFeeConfiguration\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"alpha1\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"alpha2\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"beta1\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"beta2\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"gamma1\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"gamma2\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"volumeBeta\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"volumeGamma\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"baseFee\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultCommunityFee\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"farmingAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"poolByPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolDeployer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"alpha1\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"alpha2\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"beta1\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"beta2\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"gamma1\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"gamma2\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"volumeBeta\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"volumeGamma\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"baseFee\",\"type\":\"uint16\"}],\"name\":\"setBaseFeeConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newDefaultCommunityFee\",\"type\":\"uint8\"}],\"name\":\"setDefaultCommunityFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_farmingAddress\",\"type\":\"address\"}],\"name\":\"setFarmingAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"setOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_vaultAddress\",\"type\":\"address\"}],\"name\":\"setVaultAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vaultAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"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

func NewFactory(address common.Address, backend bind.ContractBackend) (*Factory, error)

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) BaseFeeConfiguration

func (_Factory *FactoryCaller) BaseFeeConfiguration(opts *bind.CallOpts) (struct {
	Alpha1      uint16
	Alpha2      uint16
	Beta1       uint32
	Beta2       uint32
	Gamma1      uint16
	Gamma2      uint16
	VolumeBeta  uint32
	VolumeGamma uint16
	BaseFee     uint16
}, error)

BaseFeeConfiguration is a free data retrieval call binding the contract method 0x9832853a.

Solidity: function baseFeeConfiguration() view returns(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee)

func (*FactoryCaller) DefaultCommunityFee

func (_Factory *FactoryCaller) DefaultCommunityFee(opts *bind.CallOpts) (uint8, error)

DefaultCommunityFee is a free data retrieval call binding the contract method 0x2f8a39dd.

Solidity: function defaultCommunityFee() view returns(uint8)

func (*FactoryCaller) FarmingAddress

func (_Factory *FactoryCaller) FarmingAddress(opts *bind.CallOpts) (common.Address, error)

FarmingAddress is a free data retrieval call binding the contract method 0x8a2ade58.

Solidity: function farmingAddress() view returns(address)

func (*FactoryCaller) Owner

func (_Factory *FactoryCaller) 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 (*FactoryCaller) PoolByPair

func (_Factory *FactoryCaller) PoolByPair(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (common.Address, error)

PoolByPair is a free data retrieval call binding the contract method 0xd9a641e1.

Solidity: function poolByPair(address , address ) view returns(address)

func (*FactoryCaller) PoolDeployer

func (_Factory *FactoryCaller) PoolDeployer(opts *bind.CallOpts) (common.Address, error)

PoolDeployer is a free data retrieval call binding the contract method 0x3119049a.

Solidity: function poolDeployer() view returns(address)

func (*FactoryCaller) VaultAddress

func (_Factory *FactoryCaller) VaultAddress(opts *bind.CallOpts) (common.Address, error)

VaultAddress is a free data retrieval call binding the contract method 0x430bf08a.

Solidity: function vaultAddress() view returns(address)

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) BaseFeeConfiguration

func (_Factory *FactoryCallerSession) BaseFeeConfiguration() (struct {
	Alpha1      uint16
	Alpha2      uint16
	Beta1       uint32
	Beta2       uint32
	Gamma1      uint16
	Gamma2      uint16
	VolumeBeta  uint32
	VolumeGamma uint16
	BaseFee     uint16
}, error)

BaseFeeConfiguration is a free data retrieval call binding the contract method 0x9832853a.

Solidity: function baseFeeConfiguration() view returns(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee)

func (*FactoryCallerSession) DefaultCommunityFee

func (_Factory *FactoryCallerSession) DefaultCommunityFee() (uint8, error)

DefaultCommunityFee is a free data retrieval call binding the contract method 0x2f8a39dd.

Solidity: function defaultCommunityFee() view returns(uint8)

func (*FactoryCallerSession) FarmingAddress

func (_Factory *FactoryCallerSession) FarmingAddress() (common.Address, error)

FarmingAddress is a free data retrieval call binding the contract method 0x8a2ade58.

Solidity: function farmingAddress() view returns(address)

func (*FactoryCallerSession) Owner

func (_Factory *FactoryCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FactoryCallerSession) PoolByPair

func (_Factory *FactoryCallerSession) PoolByPair(arg0 common.Address, arg1 common.Address) (common.Address, error)

PoolByPair is a free data retrieval call binding the contract method 0xd9a641e1.

Solidity: function poolByPair(address , address ) view returns(address)

func (*FactoryCallerSession) PoolDeployer

func (_Factory *FactoryCallerSession) PoolDeployer() (common.Address, error)

PoolDeployer is a free data retrieval call binding the contract method 0x3119049a.

Solidity: function poolDeployer() view returns(address)

func (*FactoryCallerSession) VaultAddress

func (_Factory *FactoryCallerSession) VaultAddress() (common.Address, error)

VaultAddress is a free data retrieval call binding the contract method 0x430bf08a.

Solidity: function vaultAddress() view returns(address)

type FactoryDefaultCommunityFee

type FactoryDefaultCommunityFee struct {
	NewDefaultCommunityFee uint8
	Raw                    types.Log // Blockchain specific contextual infos
}

FactoryDefaultCommunityFee represents a DefaultCommunityFee event raised by the Factory contract.

type FactoryDefaultCommunityFeeIterator

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

FactoryDefaultCommunityFeeIterator is returned from FilterDefaultCommunityFee and is used to iterate over the raw logs and unpacked data for DefaultCommunityFee events raised by the Factory contract.

func (*FactoryDefaultCommunityFeeIterator) Close

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

func (*FactoryDefaultCommunityFeeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FactoryDefaultCommunityFeeIterator) 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 FactoryFarmingAddress

type FactoryFarmingAddress struct {
	NewFarmingAddress common.Address
	Raw               types.Log // Blockchain specific contextual infos
}

FactoryFarmingAddress represents a FarmingAddress event raised by the Factory contract.

type FactoryFarmingAddressIterator

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

FactoryFarmingAddressIterator is returned from FilterFarmingAddress and is used to iterate over the raw logs and unpacked data for FarmingAddress events raised by the Factory contract.

func (*FactoryFarmingAddressIterator) Close

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

func (*FactoryFarmingAddressIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FactoryFarmingAddressIterator) 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 FactoryFeeConfiguration

type FactoryFeeConfiguration struct {
	Alpha1      uint16
	Alpha2      uint16
	Beta1       uint32
	Beta2       uint32
	Gamma1      uint16
	Gamma2      uint16
	VolumeBeta  uint32
	VolumeGamma uint16
	BaseFee     uint16
	Raw         types.Log // Blockchain specific contextual infos
}

FactoryFeeConfiguration represents a FeeConfiguration event raised by the Factory contract.

type FactoryFeeConfigurationIterator

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

FactoryFeeConfigurationIterator is returned from FilterFeeConfiguration and is used to iterate over the raw logs and unpacked data for FeeConfiguration events raised by the Factory contract.

func (*FactoryFeeConfigurationIterator) Close

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

func (*FactoryFeeConfigurationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FactoryFeeConfigurationIterator) 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 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) FilterDefaultCommunityFee

func (_Factory *FactoryFilterer) FilterDefaultCommunityFee(opts *bind.FilterOpts) (*FactoryDefaultCommunityFeeIterator, error)

FilterDefaultCommunityFee is a free log retrieval operation binding the contract event 0x88cb5103fd9d88d417e72dc496030c71c65d1500548a9e9530e7d812b6a35558.

Solidity: event DefaultCommunityFee(uint8 newDefaultCommunityFee)

func (*FactoryFilterer) FilterFarmingAddress

func (_Factory *FactoryFilterer) FilterFarmingAddress(opts *bind.FilterOpts, newFarmingAddress []common.Address) (*FactoryFarmingAddressIterator, error)

FilterFarmingAddress is a free log retrieval operation binding the contract event 0x56b9e8342f530796ceed0d5529abdcdeae6e4f2ac1dc456ceb73bbda898e0cd3.

Solidity: event FarmingAddress(address indexed newFarmingAddress)

func (*FactoryFilterer) FilterFeeConfiguration

func (_Factory *FactoryFilterer) FilterFeeConfiguration(opts *bind.FilterOpts) (*FactoryFeeConfigurationIterator, error)

FilterFeeConfiguration is a free log retrieval operation binding the contract event 0x4035ab409f15e202f9f114632e1fb14a0552325955722be18503403e7f98730c.

Solidity: event FeeConfiguration(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee)

func (*FactoryFilterer) FilterOwner

func (_Factory *FactoryFilterer) FilterOwner(opts *bind.FilterOpts, newOwner []common.Address) (*FactoryOwnerIterator, error)

FilterOwner is a free log retrieval operation binding the contract event 0xa5e220c2c27d986cc8efeafa8f34ba6ea6bf96a34e146b29b6bdd8587771b130.

Solidity: event Owner(address indexed newOwner)

func (*FactoryFilterer) FilterPool

func (_Factory *FactoryFilterer) FilterPool(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*FactoryPoolIterator, error)

FilterPool is a free log retrieval operation binding the contract event 0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db.

Solidity: event Pool(address indexed token0, address indexed token1, address pool)

func (*FactoryFilterer) FilterVaultAddress

func (_Factory *FactoryFilterer) FilterVaultAddress(opts *bind.FilterOpts, newVaultAddress []common.Address) (*FactoryVaultAddressIterator, error)

FilterVaultAddress is a free log retrieval operation binding the contract event 0xb9c265ae4414f501736ec5d4961edc3309e4385eb2ff3feeecb30fb36621dd83.

Solidity: event VaultAddress(address indexed newVaultAddress)

func (*FactoryFilterer) ParseDefaultCommunityFee

func (_Factory *FactoryFilterer) ParseDefaultCommunityFee(log types.Log) (*FactoryDefaultCommunityFee, error)

ParseDefaultCommunityFee is a log parse operation binding the contract event 0x88cb5103fd9d88d417e72dc496030c71c65d1500548a9e9530e7d812b6a35558.

Solidity: event DefaultCommunityFee(uint8 newDefaultCommunityFee)

func (*FactoryFilterer) ParseFarmingAddress

func (_Factory *FactoryFilterer) ParseFarmingAddress(log types.Log) (*FactoryFarmingAddress, error)

ParseFarmingAddress is a log parse operation binding the contract event 0x56b9e8342f530796ceed0d5529abdcdeae6e4f2ac1dc456ceb73bbda898e0cd3.

Solidity: event FarmingAddress(address indexed newFarmingAddress)

func (*FactoryFilterer) ParseFeeConfiguration

func (_Factory *FactoryFilterer) ParseFeeConfiguration(log types.Log) (*FactoryFeeConfiguration, error)

ParseFeeConfiguration is a log parse operation binding the contract event 0x4035ab409f15e202f9f114632e1fb14a0552325955722be18503403e7f98730c.

Solidity: event FeeConfiguration(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee)

func (*FactoryFilterer) ParseOwner

func (_Factory *FactoryFilterer) ParseOwner(log types.Log) (*FactoryOwner, error)

ParseOwner is a log parse operation binding the contract event 0xa5e220c2c27d986cc8efeafa8f34ba6ea6bf96a34e146b29b6bdd8587771b130.

Solidity: event Owner(address indexed newOwner)

func (*FactoryFilterer) ParsePool

func (_Factory *FactoryFilterer) ParsePool(log types.Log) (*FactoryPool, error)

ParsePool is a log parse operation binding the contract event 0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db.

Solidity: event Pool(address indexed token0, address indexed token1, address pool)

func (*FactoryFilterer) ParseVaultAddress

func (_Factory *FactoryFilterer) ParseVaultAddress(log types.Log) (*FactoryVaultAddress, error)

ParseVaultAddress is a log parse operation binding the contract event 0xb9c265ae4414f501736ec5d4961edc3309e4385eb2ff3feeecb30fb36621dd83.

Solidity: event VaultAddress(address indexed newVaultAddress)

func (*FactoryFilterer) WatchDefaultCommunityFee

func (_Factory *FactoryFilterer) WatchDefaultCommunityFee(opts *bind.WatchOpts, sink chan<- *FactoryDefaultCommunityFee) (event.Subscription, error)

WatchDefaultCommunityFee is a free log subscription operation binding the contract event 0x88cb5103fd9d88d417e72dc496030c71c65d1500548a9e9530e7d812b6a35558.

Solidity: event DefaultCommunityFee(uint8 newDefaultCommunityFee)

func (*FactoryFilterer) WatchFarmingAddress

func (_Factory *FactoryFilterer) WatchFarmingAddress(opts *bind.WatchOpts, sink chan<- *FactoryFarmingAddress, newFarmingAddress []common.Address) (event.Subscription, error)

WatchFarmingAddress is a free log subscription operation binding the contract event 0x56b9e8342f530796ceed0d5529abdcdeae6e4f2ac1dc456ceb73bbda898e0cd3.

Solidity: event FarmingAddress(address indexed newFarmingAddress)

func (*FactoryFilterer) WatchFeeConfiguration

func (_Factory *FactoryFilterer) WatchFeeConfiguration(opts *bind.WatchOpts, sink chan<- *FactoryFeeConfiguration) (event.Subscription, error)

WatchFeeConfiguration is a free log subscription operation binding the contract event 0x4035ab409f15e202f9f114632e1fb14a0552325955722be18503403e7f98730c.

Solidity: event FeeConfiguration(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee)

func (*FactoryFilterer) WatchOwner

func (_Factory *FactoryFilterer) WatchOwner(opts *bind.WatchOpts, sink chan<- *FactoryOwner, newOwner []common.Address) (event.Subscription, error)

WatchOwner is a free log subscription operation binding the contract event 0xa5e220c2c27d986cc8efeafa8f34ba6ea6bf96a34e146b29b6bdd8587771b130.

Solidity: event Owner(address indexed newOwner)

func (*FactoryFilterer) WatchPool

func (_Factory *FactoryFilterer) WatchPool(opts *bind.WatchOpts, sink chan<- *FactoryPool, token0 []common.Address, token1 []common.Address) (event.Subscription, error)

WatchPool is a free log subscription operation binding the contract event 0x91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db.

Solidity: event Pool(address indexed token0, address indexed token1, address pool)

func (*FactoryFilterer) WatchVaultAddress

func (_Factory *FactoryFilterer) WatchVaultAddress(opts *bind.WatchOpts, sink chan<- *FactoryVaultAddress, newVaultAddress []common.Address) (event.Subscription, error)

WatchVaultAddress is a free log subscription operation binding the contract event 0xb9c265ae4414f501736ec5d4961edc3309e4385eb2ff3feeecb30fb36621dd83.

Solidity: event VaultAddress(address indexed newVaultAddress)

type FactoryOwner

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

FactoryOwner represents a Owner event raised by the Factory contract.

type FactoryOwnerIterator

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

FactoryOwnerIterator is returned from FilterOwner and is used to iterate over the raw logs and unpacked data for Owner events raised by the Factory contract.

func (*FactoryOwnerIterator) Close

func (it *FactoryOwnerIterator) Close() error

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

func (*FactoryOwnerIterator) Error

func (it *FactoryOwnerIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FactoryOwnerIterator) Next

func (it *FactoryOwnerIterator) 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 FactoryPool

type FactoryPool struct {
	Token0 common.Address
	Token1 common.Address
	Pool   common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

FactoryPool represents a Pool event raised by the Factory contract.

type FactoryPoolIterator

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

FactoryPoolIterator is returned from FilterPool and is used to iterate over the raw logs and unpacked data for Pool events raised by the Factory contract.

func (*FactoryPoolIterator) Close

func (it *FactoryPoolIterator) Close() error

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

func (*FactoryPoolIterator) Error

func (it *FactoryPoolIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FactoryPoolIterator) Next

func (it *FactoryPoolIterator) 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) BaseFeeConfiguration

func (_Factory *FactorySession) BaseFeeConfiguration() (struct {
	Alpha1      uint16
	Alpha2      uint16
	Beta1       uint32
	Beta2       uint32
	Gamma1      uint16
	Gamma2      uint16
	VolumeBeta  uint32
	VolumeGamma uint16
	BaseFee     uint16
}, error)

BaseFeeConfiguration is a free data retrieval call binding the contract method 0x9832853a.

Solidity: function baseFeeConfiguration() view returns(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee)

func (*FactorySession) CreatePool

func (_Factory *FactorySession) CreatePool(tokenA common.Address, tokenB common.Address) (*types.Transaction, error)

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

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

func (*FactorySession) DefaultCommunityFee

func (_Factory *FactorySession) DefaultCommunityFee() (uint8, error)

DefaultCommunityFee is a free data retrieval call binding the contract method 0x2f8a39dd.

Solidity: function defaultCommunityFee() view returns(uint8)

func (*FactorySession) FarmingAddress

func (_Factory *FactorySession) FarmingAddress() (common.Address, error)

FarmingAddress is a free data retrieval call binding the contract method 0x8a2ade58.

Solidity: function farmingAddress() view returns(address)

func (*FactorySession) Owner

func (_Factory *FactorySession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FactorySession) PoolByPair

func (_Factory *FactorySession) PoolByPair(arg0 common.Address, arg1 common.Address) (common.Address, error)

PoolByPair is a free data retrieval call binding the contract method 0xd9a641e1.

Solidity: function poolByPair(address , address ) view returns(address)

func (*FactorySession) PoolDeployer

func (_Factory *FactorySession) PoolDeployer() (common.Address, error)

PoolDeployer is a free data retrieval call binding the contract method 0x3119049a.

Solidity: function poolDeployer() view returns(address)

func (*FactorySession) SetBaseFeeConfiguration

func (_Factory *FactorySession) SetBaseFeeConfiguration(alpha1 uint16, alpha2 uint16, beta1 uint32, beta2 uint32, gamma1 uint16, gamma2 uint16, volumeBeta uint32, volumeGamma uint16, baseFee uint16) (*types.Transaction, error)

SetBaseFeeConfiguration is a paid mutator transaction binding the contract method 0x5d6d7e93.

Solidity: function setBaseFeeConfiguration(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee) returns()

func (*FactorySession) SetDefaultCommunityFee

func (_Factory *FactorySession) SetDefaultCommunityFee(newDefaultCommunityFee uint8) (*types.Transaction, error)

SetDefaultCommunityFee is a paid mutator transaction binding the contract method 0x371e3521.

Solidity: function setDefaultCommunityFee(uint8 newDefaultCommunityFee) returns()

func (*FactorySession) SetFarmingAddress

func (_Factory *FactorySession) SetFarmingAddress(_farmingAddress common.Address) (*types.Transaction, error)

SetFarmingAddress is a paid mutator transaction binding the contract method 0xb001f618.

Solidity: function setFarmingAddress(address _farmingAddress) returns()

func (*FactorySession) SetOwner

func (_Factory *FactorySession) SetOwner(_owner common.Address) (*types.Transaction, error)

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

Solidity: function setOwner(address _owner) returns()

func (*FactorySession) SetVaultAddress

func (_Factory *FactorySession) SetVaultAddress(_vaultAddress common.Address) (*types.Transaction, error)

SetVaultAddress is a paid mutator transaction binding the contract method 0x85535cc5.

Solidity: function setVaultAddress(address _vaultAddress) returns()

func (*FactorySession) VaultAddress

func (_Factory *FactorySession) VaultAddress() (common.Address, error)

VaultAddress is a free data retrieval call binding the contract method 0x430bf08a.

Solidity: function vaultAddress() view returns(address)

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) CreatePool

func (_Factory *FactoryTransactor) CreatePool(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address) (*types.Transaction, error)

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

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

func (*FactoryTransactor) SetBaseFeeConfiguration

func (_Factory *FactoryTransactor) SetBaseFeeConfiguration(opts *bind.TransactOpts, alpha1 uint16, alpha2 uint16, beta1 uint32, beta2 uint32, gamma1 uint16, gamma2 uint16, volumeBeta uint32, volumeGamma uint16, baseFee uint16) (*types.Transaction, error)

SetBaseFeeConfiguration is a paid mutator transaction binding the contract method 0x5d6d7e93.

Solidity: function setBaseFeeConfiguration(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee) returns()

func (*FactoryTransactor) SetDefaultCommunityFee

func (_Factory *FactoryTransactor) SetDefaultCommunityFee(opts *bind.TransactOpts, newDefaultCommunityFee uint8) (*types.Transaction, error)

SetDefaultCommunityFee is a paid mutator transaction binding the contract method 0x371e3521.

Solidity: function setDefaultCommunityFee(uint8 newDefaultCommunityFee) returns()

func (*FactoryTransactor) SetFarmingAddress

func (_Factory *FactoryTransactor) SetFarmingAddress(opts *bind.TransactOpts, _farmingAddress common.Address) (*types.Transaction, error)

SetFarmingAddress is a paid mutator transaction binding the contract method 0xb001f618.

Solidity: function setFarmingAddress(address _farmingAddress) returns()

func (*FactoryTransactor) SetOwner

func (_Factory *FactoryTransactor) 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()

func (*FactoryTransactor) SetVaultAddress

func (_Factory *FactoryTransactor) SetVaultAddress(opts *bind.TransactOpts, _vaultAddress common.Address) (*types.Transaction, error)

SetVaultAddress is a paid mutator transaction binding the contract method 0x85535cc5.

Solidity: function setVaultAddress(address _vaultAddress) 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) CreatePool

func (_Factory *FactoryTransactorSession) CreatePool(tokenA common.Address, tokenB common.Address) (*types.Transaction, error)

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

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

func (*FactoryTransactorSession) SetBaseFeeConfiguration

func (_Factory *FactoryTransactorSession) SetBaseFeeConfiguration(alpha1 uint16, alpha2 uint16, beta1 uint32, beta2 uint32, gamma1 uint16, gamma2 uint16, volumeBeta uint32, volumeGamma uint16, baseFee uint16) (*types.Transaction, error)

SetBaseFeeConfiguration is a paid mutator transaction binding the contract method 0x5d6d7e93.

Solidity: function setBaseFeeConfiguration(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee) returns()

func (*FactoryTransactorSession) SetDefaultCommunityFee

func (_Factory *FactoryTransactorSession) SetDefaultCommunityFee(newDefaultCommunityFee uint8) (*types.Transaction, error)

SetDefaultCommunityFee is a paid mutator transaction binding the contract method 0x371e3521.

Solidity: function setDefaultCommunityFee(uint8 newDefaultCommunityFee) returns()

func (*FactoryTransactorSession) SetFarmingAddress

func (_Factory *FactoryTransactorSession) SetFarmingAddress(_farmingAddress common.Address) (*types.Transaction, error)

SetFarmingAddress is a paid mutator transaction binding the contract method 0xb001f618.

Solidity: function setFarmingAddress(address _farmingAddress) returns()

func (*FactoryTransactorSession) SetOwner

func (_Factory *FactoryTransactorSession) SetOwner(_owner common.Address) (*types.Transaction, error)

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

Solidity: function setOwner(address _owner) returns()

func (*FactoryTransactorSession) SetVaultAddress

func (_Factory *FactoryTransactorSession) SetVaultAddress(_vaultAddress common.Address) (*types.Transaction, error)

SetVaultAddress is a paid mutator transaction binding the contract method 0x85535cc5.

Solidity: function setVaultAddress(address _vaultAddress) returns()

type FactoryVaultAddress

type FactoryVaultAddress struct {
	NewVaultAddress common.Address
	Raw             types.Log // Blockchain specific contextual infos
}

FactoryVaultAddress represents a VaultAddress event raised by the Factory contract.

type FactoryVaultAddressIterator

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

FactoryVaultAddressIterator is returned from FilterVaultAddress and is used to iterate over the raw logs and unpacked data for VaultAddress events raised by the Factory contract.

func (*FactoryVaultAddressIterator) Close

func (it *FactoryVaultAddressIterator) Close() error

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

func (*FactoryVaultAddressIterator) Error

func (it *FactoryVaultAddressIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FactoryVaultAddressIterator) Next

func (it *FactoryVaultAddressIterator) 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.

Jump to

Keyboard shortcuts

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