KyberFactory

package
v0.1.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KyberFactoryABI = KyberFactoryMetaData.ABI

KyberFactoryABI is the input ABI used to generate the binding from. Deprecated: Use KyberFactoryMetaData.ABI instead.

View Source
var KyberFactoryMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"allPools\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"allPoolsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"ampBps\",\"type\":\"uint32\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeToSetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFeeConfiguration\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"_feeTo\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_governmentFeeBps\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getPoolAtIndex\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"}],\"name\":\"getPools\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"_tokenPools\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"}],\"name\":\"getPoolsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"getUnamplifiedPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"isPool\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeTo\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_governmentFeeBps\",\"type\":\"uint16\"}],\"name\":\"setFeeConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeToSetter\",\"type\":\"address\"}],\"name\":\"setFeeToSetter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

KyberFactoryMetaData contains all meta data concerning the KyberFactory contract.

Functions

This section is empty.

Types

type KyberFactory

type KyberFactory struct {
	KyberFactoryCaller     // Read-only binding to the contract
	KyberFactoryTransactor // Write-only binding to the contract
	KyberFactoryFilterer   // Log filterer for contract events
}

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

func NewKyberFactory

func NewKyberFactory(address common.Address, backend bind.ContractBackend) (*KyberFactory, error)

NewKyberFactory creates a new instance of KyberFactory, bound to a specific deployed contract.

type KyberFactoryCaller

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

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

func NewKyberFactoryCaller

func NewKyberFactoryCaller(address common.Address, caller bind.ContractCaller) (*KyberFactoryCaller, error)

NewKyberFactoryCaller creates a new read-only instance of KyberFactory, bound to a specific deployed contract.

func (*KyberFactoryCaller) AllPools

func (_KyberFactory *KyberFactoryCaller) AllPools(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

AllPools is a free data retrieval call binding the contract method 0x41d1de97.

Solidity: function allPools(uint256 ) view returns(address)

func (*KyberFactoryCaller) AllPoolsLength

func (_KyberFactory *KyberFactoryCaller) AllPoolsLength(opts *bind.CallOpts) (*big.Int, error)

AllPoolsLength is a free data retrieval call binding the contract method 0xefde4e64.

Solidity: function allPoolsLength() view returns(uint256)

func (*KyberFactoryCaller) FeeToSetter

func (_KyberFactory *KyberFactoryCaller) 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 (*KyberFactoryCaller) GetFeeConfiguration

func (_KyberFactory *KyberFactoryCaller) GetFeeConfiguration(opts *bind.CallOpts) (struct {
	FeeTo            common.Address
	GovernmentFeeBps uint16
}, error)

GetFeeConfiguration is a free data retrieval call binding the contract method 0xad5cb2e1.

Solidity: function getFeeConfiguration() view returns(address _feeTo, uint16 _governmentFeeBps)

func (*KyberFactoryCaller) GetPoolAtIndex

func (_KyberFactory *KyberFactoryCaller) GetPoolAtIndex(opts *bind.CallOpts, token0 common.Address, token1 common.Address, index *big.Int) (common.Address, error)

GetPoolAtIndex is a free data retrieval call binding the contract method 0x65da9289.

Solidity: function getPoolAtIndex(address token0, address token1, uint256 index) view returns(address pool)

func (*KyberFactoryCaller) GetPools

func (_KyberFactory *KyberFactoryCaller) GetPools(opts *bind.CallOpts, token0 common.Address, token1 common.Address) ([]common.Address, error)

GetPools is a free data retrieval call binding the contract method 0x5b1dc86f.

Solidity: function getPools(address token0, address token1) view returns(address[] _tokenPools)

func (*KyberFactoryCaller) GetPoolsLength

func (_KyberFactory *KyberFactoryCaller) GetPoolsLength(opts *bind.CallOpts, token0 common.Address, token1 common.Address) (*big.Int, error)

GetPoolsLength is a free data retrieval call binding the contract method 0x538633df.

Solidity: function getPoolsLength(address token0, address token1) view returns(uint256)

func (*KyberFactoryCaller) GetUnamplifiedPool

func (_KyberFactory *KyberFactoryCaller) GetUnamplifiedPool(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (common.Address, error)

GetUnamplifiedPool is a free data retrieval call binding the contract method 0x3d82497e.

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

func (*KyberFactoryCaller) IsPool

func (_KyberFactory *KyberFactoryCaller) IsPool(opts *bind.CallOpts, token0 common.Address, token1 common.Address, pool common.Address) (bool, error)

IsPool is a free data retrieval call binding the contract method 0xeb787f61.

Solidity: function isPool(address token0, address token1, address pool) view returns(bool)

type KyberFactoryCallerRaw

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

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

func (*KyberFactoryCallerRaw) Call

func (_KyberFactory *KyberFactoryCallerRaw) 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 KyberFactoryCallerSession

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

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

func (*KyberFactoryCallerSession) AllPools

func (_KyberFactory *KyberFactoryCallerSession) AllPools(arg0 *big.Int) (common.Address, error)

AllPools is a free data retrieval call binding the contract method 0x41d1de97.

Solidity: function allPools(uint256 ) view returns(address)

func (*KyberFactoryCallerSession) AllPoolsLength

func (_KyberFactory *KyberFactoryCallerSession) AllPoolsLength() (*big.Int, error)

AllPoolsLength is a free data retrieval call binding the contract method 0xefde4e64.

Solidity: function allPoolsLength() view returns(uint256)

func (*KyberFactoryCallerSession) FeeToSetter

func (_KyberFactory *KyberFactoryCallerSession) FeeToSetter() (common.Address, error)

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

Solidity: function feeToSetter() view returns(address)

func (*KyberFactoryCallerSession) GetFeeConfiguration

func (_KyberFactory *KyberFactoryCallerSession) GetFeeConfiguration() (struct {
	FeeTo            common.Address
	GovernmentFeeBps uint16
}, error)

GetFeeConfiguration is a free data retrieval call binding the contract method 0xad5cb2e1.

Solidity: function getFeeConfiguration() view returns(address _feeTo, uint16 _governmentFeeBps)

func (*KyberFactoryCallerSession) GetPoolAtIndex

func (_KyberFactory *KyberFactoryCallerSession) GetPoolAtIndex(token0 common.Address, token1 common.Address, index *big.Int) (common.Address, error)

GetPoolAtIndex is a free data retrieval call binding the contract method 0x65da9289.

Solidity: function getPoolAtIndex(address token0, address token1, uint256 index) view returns(address pool)

func (*KyberFactoryCallerSession) GetPools

func (_KyberFactory *KyberFactoryCallerSession) GetPools(token0 common.Address, token1 common.Address) ([]common.Address, error)

GetPools is a free data retrieval call binding the contract method 0x5b1dc86f.

Solidity: function getPools(address token0, address token1) view returns(address[] _tokenPools)

func (*KyberFactoryCallerSession) GetPoolsLength

func (_KyberFactory *KyberFactoryCallerSession) GetPoolsLength(token0 common.Address, token1 common.Address) (*big.Int, error)

GetPoolsLength is a free data retrieval call binding the contract method 0x538633df.

Solidity: function getPoolsLength(address token0, address token1) view returns(uint256)

func (*KyberFactoryCallerSession) GetUnamplifiedPool

func (_KyberFactory *KyberFactoryCallerSession) GetUnamplifiedPool(arg0 common.Address, arg1 common.Address) (common.Address, error)

GetUnamplifiedPool is a free data retrieval call binding the contract method 0x3d82497e.

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

func (*KyberFactoryCallerSession) IsPool

func (_KyberFactory *KyberFactoryCallerSession) IsPool(token0 common.Address, token1 common.Address, pool common.Address) (bool, error)

IsPool is a free data retrieval call binding the contract method 0xeb787f61.

Solidity: function isPool(address token0, address token1, address pool) view returns(bool)

type KyberFactoryFilterer

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

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

func NewKyberFactoryFilterer

func NewKyberFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*KyberFactoryFilterer, error)

NewKyberFactoryFilterer creates a new log filterer instance of KyberFactory, bound to a specific deployed contract.

type KyberFactoryRaw

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

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

func (*KyberFactoryRaw) Call

func (_KyberFactory *KyberFactoryRaw) 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 (*KyberFactoryRaw) Transact

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

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

func (*KyberFactoryRaw) Transfer

func (_KyberFactory *KyberFactoryRaw) 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 KyberFactorySession

type KyberFactorySession struct {
	Contract     *KyberFactory     // 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
}

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

func (*KyberFactorySession) AllPools

func (_KyberFactory *KyberFactorySession) AllPools(arg0 *big.Int) (common.Address, error)

AllPools is a free data retrieval call binding the contract method 0x41d1de97.

Solidity: function allPools(uint256 ) view returns(address)

func (*KyberFactorySession) AllPoolsLength

func (_KyberFactory *KyberFactorySession) AllPoolsLength() (*big.Int, error)

AllPoolsLength is a free data retrieval call binding the contract method 0xefde4e64.

Solidity: function allPoolsLength() view returns(uint256)

func (*KyberFactorySession) CreatePool

func (_KyberFactory *KyberFactorySession) CreatePool(tokenA common.Address, tokenB common.Address, ampBps uint32) (*types.Transaction, error)

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

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

func (*KyberFactorySession) FeeToSetter

func (_KyberFactory *KyberFactorySession) FeeToSetter() (common.Address, error)

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

Solidity: function feeToSetter() view returns(address)

func (*KyberFactorySession) GetFeeConfiguration

func (_KyberFactory *KyberFactorySession) GetFeeConfiguration() (struct {
	FeeTo            common.Address
	GovernmentFeeBps uint16
}, error)

GetFeeConfiguration is a free data retrieval call binding the contract method 0xad5cb2e1.

Solidity: function getFeeConfiguration() view returns(address _feeTo, uint16 _governmentFeeBps)

func (*KyberFactorySession) GetPoolAtIndex

func (_KyberFactory *KyberFactorySession) GetPoolAtIndex(token0 common.Address, token1 common.Address, index *big.Int) (common.Address, error)

GetPoolAtIndex is a free data retrieval call binding the contract method 0x65da9289.

Solidity: function getPoolAtIndex(address token0, address token1, uint256 index) view returns(address pool)

func (*KyberFactorySession) GetPools

func (_KyberFactory *KyberFactorySession) GetPools(token0 common.Address, token1 common.Address) ([]common.Address, error)

GetPools is a free data retrieval call binding the contract method 0x5b1dc86f.

Solidity: function getPools(address token0, address token1) view returns(address[] _tokenPools)

func (*KyberFactorySession) GetPoolsLength

func (_KyberFactory *KyberFactorySession) GetPoolsLength(token0 common.Address, token1 common.Address) (*big.Int, error)

GetPoolsLength is a free data retrieval call binding the contract method 0x538633df.

Solidity: function getPoolsLength(address token0, address token1) view returns(uint256)

func (*KyberFactorySession) GetUnamplifiedPool

func (_KyberFactory *KyberFactorySession) GetUnamplifiedPool(arg0 common.Address, arg1 common.Address) (common.Address, error)

GetUnamplifiedPool is a free data retrieval call binding the contract method 0x3d82497e.

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

func (*KyberFactorySession) IsPool

func (_KyberFactory *KyberFactorySession) IsPool(token0 common.Address, token1 common.Address, pool common.Address) (bool, error)

IsPool is a free data retrieval call binding the contract method 0xeb787f61.

Solidity: function isPool(address token0, address token1, address pool) view returns(bool)

func (*KyberFactorySession) SetFeeConfiguration

func (_KyberFactory *KyberFactorySession) SetFeeConfiguration(_feeTo common.Address, _governmentFeeBps uint16) (*types.Transaction, error)

SetFeeConfiguration is a paid mutator transaction binding the contract method 0x2900909d.

Solidity: function setFeeConfiguration(address _feeTo, uint16 _governmentFeeBps) returns()

func (*KyberFactorySession) SetFeeToSetter

func (_KyberFactory *KyberFactorySession) 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 KyberFactoryTransactor

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

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

func NewKyberFactoryTransactor

func NewKyberFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*KyberFactoryTransactor, error)

NewKyberFactoryTransactor creates a new write-only instance of KyberFactory, bound to a specific deployed contract.

func (*KyberFactoryTransactor) CreatePool

func (_KyberFactory *KyberFactoryTransactor) CreatePool(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, ampBps uint32) (*types.Transaction, error)

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

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

func (*KyberFactoryTransactor) SetFeeConfiguration

func (_KyberFactory *KyberFactoryTransactor) SetFeeConfiguration(opts *bind.TransactOpts, _feeTo common.Address, _governmentFeeBps uint16) (*types.Transaction, error)

SetFeeConfiguration is a paid mutator transaction binding the contract method 0x2900909d.

Solidity: function setFeeConfiguration(address _feeTo, uint16 _governmentFeeBps) returns()

func (*KyberFactoryTransactor) SetFeeToSetter

func (_KyberFactory *KyberFactoryTransactor) 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 KyberFactoryTransactorRaw

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

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

func (*KyberFactoryTransactorRaw) Transact

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

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

func (*KyberFactoryTransactorRaw) Transfer

func (_KyberFactory *KyberFactoryTransactorRaw) 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 KyberFactoryTransactorSession

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

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

func (*KyberFactoryTransactorSession) CreatePool

func (_KyberFactory *KyberFactoryTransactorSession) CreatePool(tokenA common.Address, tokenB common.Address, ampBps uint32) (*types.Transaction, error)

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

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

func (*KyberFactoryTransactorSession) SetFeeConfiguration

func (_KyberFactory *KyberFactoryTransactorSession) SetFeeConfiguration(_feeTo common.Address, _governmentFeeBps uint16) (*types.Transaction, error)

SetFeeConfiguration is a paid mutator transaction binding the contract method 0x2900909d.

Solidity: function setFeeConfiguration(address _feeTo, uint16 _governmentFeeBps) returns()

func (*KyberFactoryTransactorSession) SetFeeToSetter

func (_KyberFactory *KyberFactoryTransactorSession) 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