controller

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerABI = "" /* 19441-byte string literal not displayed */

ControllerABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	ControllerCaller     // Read-only binding to the contract
	ControllerTransactor // Write-only binding to the contract
	ControllerFilterer   // Log filterer for contract events
}

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

func NewController

func NewController(address common.Address, backend bind.ContractBackend) (*Controller, error)

NewController creates a new instance of Controller, bound to a specific deployed contract.

type ControllerCaller

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

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

func NewControllerCaller

func NewControllerCaller(address common.Address, caller bind.ContractCaller) (*ControllerCaller, error)

NewControllerCaller creates a new read-only instance of Controller, bound to a specific deployed contract.

func (*ControllerCaller) CategoryIndex

func (_Controller *ControllerCaller) CategoryIndex(opts *bind.CallOpts) (*big.Int, error)

CategoryIndex is a free data retrieval call binding the contract method 0xea99fc04.

Solidity: function categoryIndex() view returns(uint256)

func (*ControllerCaller) CircuitBreaker

func (_Controller *ControllerCaller) CircuitBreaker(opts *bind.CallOpts) (common.Address, error)

CircuitBreaker is a free data retrieval call binding the contract method 0x16efd941.

Solidity: function circuitBreaker() view returns(address)

func (*ControllerCaller) CirculatingMarketCapOracle

func (_Controller *ControllerCaller) CirculatingMarketCapOracle(opts *bind.CallOpts) (common.Address, error)

CirculatingMarketCapOracle is a free data retrieval call binding the contract method 0xd600751d.

Solidity: function circulatingMarketCapOracle() view returns(address)

func (*ControllerCaller) ComputeInitializerAddress

func (_Controller *ControllerCaller) ComputeInitializerAddress(opts *bind.CallOpts, poolAddress common.Address) (common.Address, error)

ComputeInitializerAddress is a free data retrieval call binding the contract method 0xfa7c0b5e.

Solidity: function computeInitializerAddress(address poolAddress) view returns(address initializerAddress)

func (*ControllerCaller) ComputePoolAddress

func (_Controller *ControllerCaller) ComputePoolAddress(opts *bind.CallOpts, categoryID *big.Int, indexSize *big.Int) (common.Address, error)

ComputePoolAddress is a free data retrieval call binding the contract method 0x9dd19a52.

Solidity: function computePoolAddress(uint256 categoryID, uint256 indexSize) view returns(address poolAddress)

func (*ControllerCaller) ComputeSellerAddress

func (_Controller *ControllerCaller) ComputeSellerAddress(opts *bind.CallOpts, poolAddress common.Address) (common.Address, error)

ComputeSellerAddress is a free data retrieval call binding the contract method 0x582edc9b.

Solidity: function computeSellerAddress(address poolAddress) view returns(address sellerAddress)

func (*ControllerCaller) ComputeWeights

func (_Controller *ControllerCaller) ComputeWeights(opts *bind.CallOpts, formula uint8, marketCaps []*big.Int) ([]FixedPointuq112x112, error)

ComputeWeights is a free data retrieval call binding the contract method 0xa4d09816.

Solidity: function computeWeights(uint8 formula, uint256[] marketCaps) view returns((uint224)[] fractionalWeights)

func (*ControllerCaller) DefaultExitFeeRecipient

func (_Controller *ControllerCaller) DefaultExitFeeRecipient(opts *bind.CallOpts) (common.Address, error)

DefaultExitFeeRecipient is a free data retrieval call binding the contract method 0xa8eb80ab.

Solidity: function defaultExitFeeRecipient() view returns(address)

func (*ControllerCaller) DefaultSellerPremium

func (_Controller *ControllerCaller) DefaultSellerPremium(opts *bind.CallOpts) (uint8, error)

DefaultSellerPremium is a free data retrieval call binding the contract method 0x372accd2.

Solidity: function defaultSellerPremium() view returns(uint8)

func (*ControllerCaller) GetCategoryConfig

func (_Controller *ControllerCaller) GetCategoryConfig(opts *bind.CallOpts, categoryID *big.Int) (struct {
	UseFullyDilutedMarketCaps bool
	MinMarketCap              *big.Int
	MaxMarketCap              *big.Int
}, error)

GetCategoryConfig is a free data retrieval call binding the contract method 0x28b996c1.

Solidity: function getCategoryConfig(uint256 categoryID) view returns(bool useFullyDilutedMarketCaps, uint112 minMarketCap, uint112 maxMarketCap)

func (*ControllerCaller) GetCategoryTokens

func (_Controller *ControllerCaller) GetCategoryTokens(opts *bind.CallOpts, categoryID *big.Int) ([]common.Address, error)

GetCategoryTokens is a free data retrieval call binding the contract method 0xde105dbd.

Solidity: function getCategoryTokens(uint256 categoryID) view returns(address[] tokens)

func (*ControllerCaller) GetCirculatingMarketCaps

func (_Controller *ControllerCaller) GetCirculatingMarketCaps(opts *bind.CallOpts, tokens []common.Address) ([]*big.Int, error)

GetCirculatingMarketCaps is a free data retrieval call binding the contract method 0xbf99568f.

Solidity: function getCirculatingMarketCaps(address[] tokens) view returns(uint256[] marketCaps)

func (*ControllerCaller) GetFullyDilutedMarketCaps

func (_Controller *ControllerCaller) GetFullyDilutedMarketCaps(opts *bind.CallOpts, tokens []common.Address) ([]*big.Int, error)

GetFullyDilutedMarketCaps is a free data retrieval call binding the contract method 0xc0f40a6b.

Solidity: function getFullyDilutedMarketCaps(address[] tokens) view returns(uint256[] marketCaps)

func (*ControllerCaller) GetInitialTokensAndBalances

func (_Controller *ControllerCaller) GetInitialTokensAndBalances(opts *bind.CallOpts, categoryID *big.Int, formula uint8, indexSize *big.Int, wethValue *big.Int) (struct {
	Tokens   []common.Address
	Balances []*big.Int
}, error)

GetInitialTokensAndBalances is a free data retrieval call binding the contract method 0xeef34dfe.

Solidity: function getInitialTokensAndBalances(uint256 categoryID, uint8 formula, uint256 indexSize, uint144 wethValue) view returns(address[] tokens, uint256[] balances)

func (*ControllerCaller) GetMarketCaps

func (_Controller *ControllerCaller) GetMarketCaps(opts *bind.CallOpts, useFullyDilutedMarketCaps bool, tokens []common.Address) ([]*big.Int, error)

GetMarketCaps is a free data retrieval call binding the contract method 0x7645e3f2.

Solidity: function getMarketCaps(bool useFullyDilutedMarketCaps, address[] tokens) view returns(uint256[] marketCaps)

func (*ControllerCaller) GetSortedAndFilteredTokensAndMarketCaps

func (_Controller *ControllerCaller) GetSortedAndFilteredTokensAndMarketCaps(opts *bind.CallOpts, categoryID *big.Int) (struct {
	CategoryTokens []common.Address
	MarketCaps     []*big.Int
}, error)

GetSortedAndFilteredTokensAndMarketCaps is a free data retrieval call binding the contract method 0x7a92d7ce.

Solidity: function getSortedAndFilteredTokensAndMarketCaps(uint256 categoryID) view returns(address[] categoryTokens, uint256[] marketCaps)

func (*ControllerCaller) GetTopCategoryTokensAndMarketCaps

func (_Controller *ControllerCaller) GetTopCategoryTokensAndMarketCaps(opts *bind.CallOpts, categoryID *big.Int, count *big.Int) (struct {
	CategoryTokens []common.Address
	MarketCaps     []*big.Int
}, error)

GetTopCategoryTokensAndMarketCaps is a free data retrieval call binding the contract method 0xb61beade.

Solidity: function getTopCategoryTokensAndMarketCaps(uint256 categoryID, uint256 count) view returns(address[] categoryTokens, uint256[] marketCaps)

func (*ControllerCaller) HasCategory

func (_Controller *ControllerCaller) HasCategory(opts *bind.CallOpts, categoryID *big.Int) (bool, error)

HasCategory is a free data retrieval call binding the contract method 0x1ab66317.

Solidity: function hasCategory(uint256 categoryID) view returns(bool)

func (*ControllerCaller) INITIALIZERIMPLEMENTATIONID

func (_Controller *ControllerCaller) INITIALIZERIMPLEMENTATIONID(opts *bind.CallOpts) ([32]byte, error)

INITIALIZERIMPLEMENTATIONID is a free data retrieval call binding the contract method 0xf52a4f26.

Solidity: function INITIALIZER_IMPLEMENTATION_ID() view returns(bytes32)

func (*ControllerCaller) IndexPoolMetadata

func (_Controller *ControllerCaller) IndexPoolMetadata(opts *bind.CallOpts, arg0 common.Address) (struct {
	Initialized  bool
	CategoryID   uint16
	IndexSize    uint8
	ReweighIndex uint8
	LastReweigh  uint64
	Formula      uint8
}, error)

IndexPoolMetadata is a free data retrieval call binding the contract method 0x9dfab092.

Solidity: function indexPoolMetadata(address ) view returns(bool initialized, uint16 categoryID, uint8 indexSize, uint8 reweighIndex, uint64 lastReweigh, uint8 formula)

func (*ControllerCaller) IsTokenInCategory

func (_Controller *ControllerCaller) IsTokenInCategory(opts *bind.CallOpts, categoryID *big.Int, token common.Address) (bool, error)

IsTokenInCategory is a free data retrieval call binding the contract method 0x1fbaf275.

Solidity: function isTokenInCategory(uint256 categoryID, address token) view returns(bool)

func (*ControllerCaller) LONGTWAPMAXTIMEELAPSED

func (_Controller *ControllerCaller) LONGTWAPMAXTIMEELAPSED(opts *bind.CallOpts) (uint32, error)

LONGTWAPMAXTIMEELAPSED is a free data retrieval call binding the contract method 0x43ec8923.

Solidity: function LONG_TWAP_MAX_TIME_ELAPSED() view returns(uint32)

func (*ControllerCaller) LONGTWAPMINTIMEELAPSED

func (_Controller *ControllerCaller) LONGTWAPMINTIMEELAPSED(opts *bind.CallOpts) (uint32, error)

LONGTWAPMINTIMEELAPSED is a free data retrieval call binding the contract method 0x70ffd3e0.

Solidity: function LONG_TWAP_MIN_TIME_ELAPSED() view returns(uint32)

func (*ControllerCaller) MAXCATEGORYTOKENS

func (_Controller *ControllerCaller) MAXCATEGORYTOKENS(opts *bind.CallOpts) (*big.Int, error)

MAXCATEGORYTOKENS is a free data retrieval call binding the contract method 0x84fca9cd.

Solidity: function MAX_CATEGORY_TOKENS() view returns(uint256)

func (*ControllerCaller) MAXINDEXSIZE

func (_Controller *ControllerCaller) MAXINDEXSIZE(opts *bind.CallOpts) (*big.Int, error)

MAXINDEXSIZE is a free data retrieval call binding the contract method 0xacbfc96d.

Solidity: function MAX_INDEX_SIZE() view returns(uint256)

func (*ControllerCaller) MAXSORTDELAY

func (_Controller *ControllerCaller) MAXSORTDELAY(opts *bind.CallOpts) (*big.Int, error)

MAXSORTDELAY is a free data retrieval call binding the contract method 0xfdcfa2ec.

Solidity: function MAX_SORT_DELAY() view returns(uint256)

func (*ControllerCaller) MINBALANCE

func (_Controller *ControllerCaller) MINBALANCE(opts *bind.CallOpts) (*big.Int, error)

MINBALANCE is a free data retrieval call binding the contract method 0x867378c5.

Solidity: function MIN_BALANCE() view returns(uint256)

func (*ControllerCaller) MININDEXSIZE

func (_Controller *ControllerCaller) MININDEXSIZE(opts *bind.CallOpts) (*big.Int, error)

MININDEXSIZE is a free data retrieval call binding the contract method 0xb3ec862e.

Solidity: function MIN_INDEX_SIZE() view returns(uint256)

func (*ControllerCaller) Owner

func (_Controller *ControllerCaller) 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 (*ControllerCaller) POOLIMPLEMENTATIONID

func (_Controller *ControllerCaller) POOLIMPLEMENTATIONID(opts *bind.CallOpts) ([32]byte, error)

POOLIMPLEMENTATIONID is a free data retrieval call binding the contract method 0x250436fd.

Solidity: function POOL_IMPLEMENTATION_ID() view returns(bytes32)

func (*ControllerCaller) POOLREWEIGHDELAY

func (_Controller *ControllerCaller) POOLREWEIGHDELAY(opts *bind.CallOpts) (*big.Int, error)

POOLREWEIGHDELAY is a free data retrieval call binding the contract method 0x830b6b0b.

Solidity: function POOL_REWEIGH_DELAY() view returns(uint256)

func (*ControllerCaller) PoolFactory

func (_Controller *ControllerCaller) PoolFactory(opts *bind.CallOpts) (common.Address, error)

PoolFactory is a free data retrieval call binding the contract method 0x4219dc40.

Solidity: function poolFactory() view returns(address)

func (*ControllerCaller) ProxyManager

func (_Controller *ControllerCaller) ProxyManager(opts *bind.CallOpts) (common.Address, error)

ProxyManager is a free data retrieval call binding the contract method 0x96b4ca70.

Solidity: function proxyManager() view returns(address)

func (*ControllerCaller) REWEIGHSBEFOREREINDEX

func (_Controller *ControllerCaller) REWEIGHSBEFOREREINDEX(opts *bind.CallOpts) (uint8, error)

REWEIGHSBEFOREREINDEX is a free data retrieval call binding the contract method 0x3d89da25.

Solidity: function REWEIGHS_BEFORE_REINDEX() view returns(uint8)

func (*ControllerCaller) SELLERIMPLEMENTATIONID

func (_Controller *ControllerCaller) SELLERIMPLEMENTATIONID(opts *bind.CallOpts) ([32]byte, error)

SELLERIMPLEMENTATIONID is a free data retrieval call binding the contract method 0xc5ea91e1.

Solidity: function SELLER_IMPLEMENTATION_ID() view returns(bytes32)

func (*ControllerCaller) SHORTTWAPMAXTIMEELAPSED

func (_Controller *ControllerCaller) SHORTTWAPMAXTIMEELAPSED(opts *bind.CallOpts) (uint32, error)

SHORTTWAPMAXTIMEELAPSED is a free data retrieval call binding the contract method 0xa34fefdd.

Solidity: function SHORT_TWAP_MAX_TIME_ELAPSED() view returns(uint32)

func (*ControllerCaller) SHORTTWAPMINTIMEELAPSED

func (_Controller *ControllerCaller) SHORTTWAPMINTIMEELAPSED(opts *bind.CallOpts) (uint32, error)

SHORTTWAPMINTIMEELAPSED is a free data retrieval call binding the contract method 0x53304eb9.

Solidity: function SHORT_TWAP_MIN_TIME_ELAPSED() view returns(uint32)

func (*ControllerCaller) UniswapOracle

func (_Controller *ControllerCaller) UniswapOracle(opts *bind.CallOpts) (common.Address, error)

UniswapOracle is a free data retrieval call binding the contract method 0x120c6c5b.

Solidity: function uniswapOracle() view returns(address)

func (*ControllerCaller) WEIGHTMULTIPLIER

func (_Controller *ControllerCaller) WEIGHTMULTIPLIER(opts *bind.CallOpts) (*big.Int, error)

WEIGHTMULTIPLIER is a free data retrieval call binding the contract method 0xc290d8bd.

Solidity: function WEIGHT_MULTIPLIER() view returns(uint256)

type ControllerCallerRaw

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

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

func (*ControllerCallerRaw) Call

func (_Controller *ControllerCallerRaw) 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 ControllerCallerSession

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

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

func (*ControllerCallerSession) CategoryIndex

func (_Controller *ControllerCallerSession) CategoryIndex() (*big.Int, error)

CategoryIndex is a free data retrieval call binding the contract method 0xea99fc04.

Solidity: function categoryIndex() view returns(uint256)

func (*ControllerCallerSession) CircuitBreaker

func (_Controller *ControllerCallerSession) CircuitBreaker() (common.Address, error)

CircuitBreaker is a free data retrieval call binding the contract method 0x16efd941.

Solidity: function circuitBreaker() view returns(address)

func (*ControllerCallerSession) CirculatingMarketCapOracle

func (_Controller *ControllerCallerSession) CirculatingMarketCapOracle() (common.Address, error)

CirculatingMarketCapOracle is a free data retrieval call binding the contract method 0xd600751d.

Solidity: function circulatingMarketCapOracle() view returns(address)

func (*ControllerCallerSession) ComputeInitializerAddress

func (_Controller *ControllerCallerSession) ComputeInitializerAddress(poolAddress common.Address) (common.Address, error)

ComputeInitializerAddress is a free data retrieval call binding the contract method 0xfa7c0b5e.

Solidity: function computeInitializerAddress(address poolAddress) view returns(address initializerAddress)

func (*ControllerCallerSession) ComputePoolAddress

func (_Controller *ControllerCallerSession) ComputePoolAddress(categoryID *big.Int, indexSize *big.Int) (common.Address, error)

ComputePoolAddress is a free data retrieval call binding the contract method 0x9dd19a52.

Solidity: function computePoolAddress(uint256 categoryID, uint256 indexSize) view returns(address poolAddress)

func (*ControllerCallerSession) ComputeSellerAddress

func (_Controller *ControllerCallerSession) ComputeSellerAddress(poolAddress common.Address) (common.Address, error)

ComputeSellerAddress is a free data retrieval call binding the contract method 0x582edc9b.

Solidity: function computeSellerAddress(address poolAddress) view returns(address sellerAddress)

func (*ControllerCallerSession) ComputeWeights

func (_Controller *ControllerCallerSession) ComputeWeights(formula uint8, marketCaps []*big.Int) ([]FixedPointuq112x112, error)

ComputeWeights is a free data retrieval call binding the contract method 0xa4d09816.

Solidity: function computeWeights(uint8 formula, uint256[] marketCaps) view returns((uint224)[] fractionalWeights)

func (*ControllerCallerSession) DefaultExitFeeRecipient

func (_Controller *ControllerCallerSession) DefaultExitFeeRecipient() (common.Address, error)

DefaultExitFeeRecipient is a free data retrieval call binding the contract method 0xa8eb80ab.

Solidity: function defaultExitFeeRecipient() view returns(address)

func (*ControllerCallerSession) DefaultSellerPremium

func (_Controller *ControllerCallerSession) DefaultSellerPremium() (uint8, error)

DefaultSellerPremium is a free data retrieval call binding the contract method 0x372accd2.

Solidity: function defaultSellerPremium() view returns(uint8)

func (*ControllerCallerSession) GetCategoryConfig

func (_Controller *ControllerCallerSession) GetCategoryConfig(categoryID *big.Int) (struct {
	UseFullyDilutedMarketCaps bool
	MinMarketCap              *big.Int
	MaxMarketCap              *big.Int
}, error)

GetCategoryConfig is a free data retrieval call binding the contract method 0x28b996c1.

Solidity: function getCategoryConfig(uint256 categoryID) view returns(bool useFullyDilutedMarketCaps, uint112 minMarketCap, uint112 maxMarketCap)

func (*ControllerCallerSession) GetCategoryTokens

func (_Controller *ControllerCallerSession) GetCategoryTokens(categoryID *big.Int) ([]common.Address, error)

GetCategoryTokens is a free data retrieval call binding the contract method 0xde105dbd.

Solidity: function getCategoryTokens(uint256 categoryID) view returns(address[] tokens)

func (*ControllerCallerSession) GetCirculatingMarketCaps

func (_Controller *ControllerCallerSession) GetCirculatingMarketCaps(tokens []common.Address) ([]*big.Int, error)

GetCirculatingMarketCaps is a free data retrieval call binding the contract method 0xbf99568f.

Solidity: function getCirculatingMarketCaps(address[] tokens) view returns(uint256[] marketCaps)

func (*ControllerCallerSession) GetFullyDilutedMarketCaps

func (_Controller *ControllerCallerSession) GetFullyDilutedMarketCaps(tokens []common.Address) ([]*big.Int, error)

GetFullyDilutedMarketCaps is a free data retrieval call binding the contract method 0xc0f40a6b.

Solidity: function getFullyDilutedMarketCaps(address[] tokens) view returns(uint256[] marketCaps)

func (*ControllerCallerSession) GetInitialTokensAndBalances

func (_Controller *ControllerCallerSession) GetInitialTokensAndBalances(categoryID *big.Int, formula uint8, indexSize *big.Int, wethValue *big.Int) (struct {
	Tokens   []common.Address
	Balances []*big.Int
}, error)

GetInitialTokensAndBalances is a free data retrieval call binding the contract method 0xeef34dfe.

Solidity: function getInitialTokensAndBalances(uint256 categoryID, uint8 formula, uint256 indexSize, uint144 wethValue) view returns(address[] tokens, uint256[] balances)

func (*ControllerCallerSession) GetMarketCaps

func (_Controller *ControllerCallerSession) GetMarketCaps(useFullyDilutedMarketCaps bool, tokens []common.Address) ([]*big.Int, error)

GetMarketCaps is a free data retrieval call binding the contract method 0x7645e3f2.

Solidity: function getMarketCaps(bool useFullyDilutedMarketCaps, address[] tokens) view returns(uint256[] marketCaps)

func (*ControllerCallerSession) GetSortedAndFilteredTokensAndMarketCaps

func (_Controller *ControllerCallerSession) GetSortedAndFilteredTokensAndMarketCaps(categoryID *big.Int) (struct {
	CategoryTokens []common.Address
	MarketCaps     []*big.Int
}, error)

GetSortedAndFilteredTokensAndMarketCaps is a free data retrieval call binding the contract method 0x7a92d7ce.

Solidity: function getSortedAndFilteredTokensAndMarketCaps(uint256 categoryID) view returns(address[] categoryTokens, uint256[] marketCaps)

func (*ControllerCallerSession) GetTopCategoryTokensAndMarketCaps

func (_Controller *ControllerCallerSession) GetTopCategoryTokensAndMarketCaps(categoryID *big.Int, count *big.Int) (struct {
	CategoryTokens []common.Address
	MarketCaps     []*big.Int
}, error)

GetTopCategoryTokensAndMarketCaps is a free data retrieval call binding the contract method 0xb61beade.

Solidity: function getTopCategoryTokensAndMarketCaps(uint256 categoryID, uint256 count) view returns(address[] categoryTokens, uint256[] marketCaps)

func (*ControllerCallerSession) HasCategory

func (_Controller *ControllerCallerSession) HasCategory(categoryID *big.Int) (bool, error)

HasCategory is a free data retrieval call binding the contract method 0x1ab66317.

Solidity: function hasCategory(uint256 categoryID) view returns(bool)

func (*ControllerCallerSession) INITIALIZERIMPLEMENTATIONID

func (_Controller *ControllerCallerSession) INITIALIZERIMPLEMENTATIONID() ([32]byte, error)

INITIALIZERIMPLEMENTATIONID is a free data retrieval call binding the contract method 0xf52a4f26.

Solidity: function INITIALIZER_IMPLEMENTATION_ID() view returns(bytes32)

func (*ControllerCallerSession) IndexPoolMetadata

func (_Controller *ControllerCallerSession) IndexPoolMetadata(arg0 common.Address) (struct {
	Initialized  bool
	CategoryID   uint16
	IndexSize    uint8
	ReweighIndex uint8
	LastReweigh  uint64
	Formula      uint8
}, error)

IndexPoolMetadata is a free data retrieval call binding the contract method 0x9dfab092.

Solidity: function indexPoolMetadata(address ) view returns(bool initialized, uint16 categoryID, uint8 indexSize, uint8 reweighIndex, uint64 lastReweigh, uint8 formula)

func (*ControllerCallerSession) IsTokenInCategory

func (_Controller *ControllerCallerSession) IsTokenInCategory(categoryID *big.Int, token common.Address) (bool, error)

IsTokenInCategory is a free data retrieval call binding the contract method 0x1fbaf275.

Solidity: function isTokenInCategory(uint256 categoryID, address token) view returns(bool)

func (*ControllerCallerSession) LONGTWAPMAXTIMEELAPSED

func (_Controller *ControllerCallerSession) LONGTWAPMAXTIMEELAPSED() (uint32, error)

LONGTWAPMAXTIMEELAPSED is a free data retrieval call binding the contract method 0x43ec8923.

Solidity: function LONG_TWAP_MAX_TIME_ELAPSED() view returns(uint32)

func (*ControllerCallerSession) LONGTWAPMINTIMEELAPSED

func (_Controller *ControllerCallerSession) LONGTWAPMINTIMEELAPSED() (uint32, error)

LONGTWAPMINTIMEELAPSED is a free data retrieval call binding the contract method 0x70ffd3e0.

Solidity: function LONG_TWAP_MIN_TIME_ELAPSED() view returns(uint32)

func (*ControllerCallerSession) MAXCATEGORYTOKENS

func (_Controller *ControllerCallerSession) MAXCATEGORYTOKENS() (*big.Int, error)

MAXCATEGORYTOKENS is a free data retrieval call binding the contract method 0x84fca9cd.

Solidity: function MAX_CATEGORY_TOKENS() view returns(uint256)

func (*ControllerCallerSession) MAXINDEXSIZE

func (_Controller *ControllerCallerSession) MAXINDEXSIZE() (*big.Int, error)

MAXINDEXSIZE is a free data retrieval call binding the contract method 0xacbfc96d.

Solidity: function MAX_INDEX_SIZE() view returns(uint256)

func (*ControllerCallerSession) MAXSORTDELAY

func (_Controller *ControllerCallerSession) MAXSORTDELAY() (*big.Int, error)

MAXSORTDELAY is a free data retrieval call binding the contract method 0xfdcfa2ec.

Solidity: function MAX_SORT_DELAY() view returns(uint256)

func (*ControllerCallerSession) MINBALANCE

func (_Controller *ControllerCallerSession) MINBALANCE() (*big.Int, error)

MINBALANCE is a free data retrieval call binding the contract method 0x867378c5.

Solidity: function MIN_BALANCE() view returns(uint256)

func (*ControllerCallerSession) MININDEXSIZE

func (_Controller *ControllerCallerSession) MININDEXSIZE() (*big.Int, error)

MININDEXSIZE is a free data retrieval call binding the contract method 0xb3ec862e.

Solidity: function MIN_INDEX_SIZE() view returns(uint256)

func (*ControllerCallerSession) Owner

func (_Controller *ControllerCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ControllerCallerSession) POOLIMPLEMENTATIONID

func (_Controller *ControllerCallerSession) POOLIMPLEMENTATIONID() ([32]byte, error)

POOLIMPLEMENTATIONID is a free data retrieval call binding the contract method 0x250436fd.

Solidity: function POOL_IMPLEMENTATION_ID() view returns(bytes32)

func (*ControllerCallerSession) POOLREWEIGHDELAY

func (_Controller *ControllerCallerSession) POOLREWEIGHDELAY() (*big.Int, error)

POOLREWEIGHDELAY is a free data retrieval call binding the contract method 0x830b6b0b.

Solidity: function POOL_REWEIGH_DELAY() view returns(uint256)

func (*ControllerCallerSession) PoolFactory

func (_Controller *ControllerCallerSession) PoolFactory() (common.Address, error)

PoolFactory is a free data retrieval call binding the contract method 0x4219dc40.

Solidity: function poolFactory() view returns(address)

func (*ControllerCallerSession) ProxyManager

func (_Controller *ControllerCallerSession) ProxyManager() (common.Address, error)

ProxyManager is a free data retrieval call binding the contract method 0x96b4ca70.

Solidity: function proxyManager() view returns(address)

func (*ControllerCallerSession) REWEIGHSBEFOREREINDEX

func (_Controller *ControllerCallerSession) REWEIGHSBEFOREREINDEX() (uint8, error)

REWEIGHSBEFOREREINDEX is a free data retrieval call binding the contract method 0x3d89da25.

Solidity: function REWEIGHS_BEFORE_REINDEX() view returns(uint8)

func (*ControllerCallerSession) SELLERIMPLEMENTATIONID

func (_Controller *ControllerCallerSession) SELLERIMPLEMENTATIONID() ([32]byte, error)

SELLERIMPLEMENTATIONID is a free data retrieval call binding the contract method 0xc5ea91e1.

Solidity: function SELLER_IMPLEMENTATION_ID() view returns(bytes32)

func (*ControllerCallerSession) SHORTTWAPMAXTIMEELAPSED

func (_Controller *ControllerCallerSession) SHORTTWAPMAXTIMEELAPSED() (uint32, error)

SHORTTWAPMAXTIMEELAPSED is a free data retrieval call binding the contract method 0xa34fefdd.

Solidity: function SHORT_TWAP_MAX_TIME_ELAPSED() view returns(uint32)

func (*ControllerCallerSession) SHORTTWAPMINTIMEELAPSED

func (_Controller *ControllerCallerSession) SHORTTWAPMINTIMEELAPSED() (uint32, error)

SHORTTWAPMINTIMEELAPSED is a free data retrieval call binding the contract method 0x53304eb9.

Solidity: function SHORT_TWAP_MIN_TIME_ELAPSED() view returns(uint32)

func (*ControllerCallerSession) UniswapOracle

func (_Controller *ControllerCallerSession) UniswapOracle() (common.Address, error)

UniswapOracle is a free data retrieval call binding the contract method 0x120c6c5b.

Solidity: function uniswapOracle() view returns(address)

func (*ControllerCallerSession) WEIGHTMULTIPLIER

func (_Controller *ControllerCallerSession) WEIGHTMULTIPLIER() (*big.Int, error)

WEIGHTMULTIPLIER is a free data retrieval call binding the contract method 0xc290d8bd.

Solidity: function WEIGHT_MULTIPLIER() view returns(uint256)

type ControllerCategoryAdded

type ControllerCategoryAdded struct {
	CategoryID                *big.Int
	MetadataHash              [32]byte
	UseFullyDilutedMarketCaps bool
	MinMarketCap              *big.Int
	MaxMarketCap              *big.Int
	Raw                       types.Log // Blockchain specific contextual infos
}

ControllerCategoryAdded represents a CategoryAdded event raised by the Controller contract.

type ControllerCategoryAddedIterator

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

ControllerCategoryAddedIterator is returned from FilterCategoryAdded and is used to iterate over the raw logs and unpacked data for CategoryAdded events raised by the Controller contract.

func (*ControllerCategoryAddedIterator) Close

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

func (*ControllerCategoryAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerCategoryAddedIterator) 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 ControllerCategorySorted

type ControllerCategorySorted struct {
	CategoryID *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

ControllerCategorySorted represents a CategorySorted event raised by the Controller contract.

type ControllerCategorySortedIterator

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

ControllerCategorySortedIterator is returned from FilterCategorySorted and is used to iterate over the raw logs and unpacked data for CategorySorted events raised by the Controller contract.

func (*ControllerCategorySortedIterator) Close

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

func (*ControllerCategorySortedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerCategorySortedIterator) 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 ControllerFilterer

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

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

func NewControllerFilterer

func NewControllerFilterer(address common.Address, filterer bind.ContractFilterer) (*ControllerFilterer, error)

NewControllerFilterer creates a new log filterer instance of Controller, bound to a specific deployed contract.

func (*ControllerFilterer) FilterCategoryAdded

func (_Controller *ControllerFilterer) FilterCategoryAdded(opts *bind.FilterOpts) (*ControllerCategoryAddedIterator, error)

FilterCategoryAdded is a free log retrieval operation binding the contract event 0x204e69e7c4d704d675be18559b3a36c31d58c335c1e1027f9a98c65d762441d3.

Solidity: event CategoryAdded(uint256 categoryID, bytes32 metadataHash, bool useFullyDilutedMarketCaps, uint128 minMarketCap, uint128 maxMarketCap)

func (*ControllerFilterer) FilterCategorySorted

func (_Controller *ControllerFilterer) FilterCategorySorted(opts *bind.FilterOpts) (*ControllerCategorySortedIterator, error)

FilterCategorySorted is a free log retrieval operation binding the contract event 0x60d2f5fd1812c906f738651cc42bfcb9c52908b88265a1ec508ce32367af72c3.

Solidity: event CategorySorted(uint256 categoryID)

func (*ControllerFilterer) FilterNewPoolInitializer

func (_Controller *ControllerFilterer) FilterNewPoolInitializer(opts *bind.FilterOpts) (*ControllerNewPoolInitializerIterator, error)

FilterNewPoolInitializer is a free log retrieval operation binding the contract event 0x290721d63c4f9911fe368948944f0df2c9ebce49e6a204da0d0886a758733115.

Solidity: event NewPoolInitializer(address pool, address initializer, uint256 categoryID, uint256 indexSize, uint8 formula)

func (*ControllerFilterer) FilterOwnershipTransferred

func (_Controller *ControllerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ControllerOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ControllerFilterer) FilterPoolInitialized

func (_Controller *ControllerFilterer) FilterPoolInitialized(opts *bind.FilterOpts) (*ControllerPoolInitializedIterator, error)

FilterPoolInitialized is a free log retrieval operation binding the contract event 0x9ff2050ac7faae9dc192e1cc9abe73b18a9b849f9b43f509914d80fa104d5903.

Solidity: event PoolInitialized(address pool, address unboundTokenSeller, uint256 categoryID, uint256 indexSize)

func (*ControllerFilterer) FilterTokenAdded

func (_Controller *ControllerFilterer) FilterTokenAdded(opts *bind.FilterOpts) (*ControllerTokenAddedIterator, error)

FilterTokenAdded is a free log retrieval operation binding the contract event 0xf4c563a3ea86ff1f4275e8c207df0375a51963f2b831b7bf4da8be938d92876c.

Solidity: event TokenAdded(address token, uint256 categoryID)

func (*ControllerFilterer) FilterTokenRemoved

func (_Controller *ControllerFilterer) FilterTokenRemoved(opts *bind.FilterOpts) (*ControllerTokenRemovedIterator, error)

FilterTokenRemoved is a free log retrieval operation binding the contract event 0xbe9bb4bdca0a094babd75e3a98b1d2e2390633430d0a2f6e2b9970e2ee03fb2e.

Solidity: event TokenRemoved(address token, uint256 categoryID)

func (*ControllerFilterer) ParseCategoryAdded

func (_Controller *ControllerFilterer) ParseCategoryAdded(log types.Log) (*ControllerCategoryAdded, error)

ParseCategoryAdded is a log parse operation binding the contract event 0x204e69e7c4d704d675be18559b3a36c31d58c335c1e1027f9a98c65d762441d3.

Solidity: event CategoryAdded(uint256 categoryID, bytes32 metadataHash, bool useFullyDilutedMarketCaps, uint128 minMarketCap, uint128 maxMarketCap)

func (*ControllerFilterer) ParseCategorySorted

func (_Controller *ControllerFilterer) ParseCategorySorted(log types.Log) (*ControllerCategorySorted, error)

ParseCategorySorted is a log parse operation binding the contract event 0x60d2f5fd1812c906f738651cc42bfcb9c52908b88265a1ec508ce32367af72c3.

Solidity: event CategorySorted(uint256 categoryID)

func (*ControllerFilterer) ParseNewPoolInitializer

func (_Controller *ControllerFilterer) ParseNewPoolInitializer(log types.Log) (*ControllerNewPoolInitializer, error)

ParseNewPoolInitializer is a log parse operation binding the contract event 0x290721d63c4f9911fe368948944f0df2c9ebce49e6a204da0d0886a758733115.

Solidity: event NewPoolInitializer(address pool, address initializer, uint256 categoryID, uint256 indexSize, uint8 formula)

func (*ControllerFilterer) ParseOwnershipTransferred

func (_Controller *ControllerFilterer) ParseOwnershipTransferred(log types.Log) (*ControllerOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ControllerFilterer) ParsePoolInitialized

func (_Controller *ControllerFilterer) ParsePoolInitialized(log types.Log) (*ControllerPoolInitialized, error)

ParsePoolInitialized is a log parse operation binding the contract event 0x9ff2050ac7faae9dc192e1cc9abe73b18a9b849f9b43f509914d80fa104d5903.

Solidity: event PoolInitialized(address pool, address unboundTokenSeller, uint256 categoryID, uint256 indexSize)

func (*ControllerFilterer) ParseTokenAdded

func (_Controller *ControllerFilterer) ParseTokenAdded(log types.Log) (*ControllerTokenAdded, error)

ParseTokenAdded is a log parse operation binding the contract event 0xf4c563a3ea86ff1f4275e8c207df0375a51963f2b831b7bf4da8be938d92876c.

Solidity: event TokenAdded(address token, uint256 categoryID)

func (*ControllerFilterer) ParseTokenRemoved

func (_Controller *ControllerFilterer) ParseTokenRemoved(log types.Log) (*ControllerTokenRemoved, error)

ParseTokenRemoved is a log parse operation binding the contract event 0xbe9bb4bdca0a094babd75e3a98b1d2e2390633430d0a2f6e2b9970e2ee03fb2e.

Solidity: event TokenRemoved(address token, uint256 categoryID)

func (*ControllerFilterer) WatchCategoryAdded

func (_Controller *ControllerFilterer) WatchCategoryAdded(opts *bind.WatchOpts, sink chan<- *ControllerCategoryAdded) (event.Subscription, error)

WatchCategoryAdded is a free log subscription operation binding the contract event 0x204e69e7c4d704d675be18559b3a36c31d58c335c1e1027f9a98c65d762441d3.

Solidity: event CategoryAdded(uint256 categoryID, bytes32 metadataHash, bool useFullyDilutedMarketCaps, uint128 minMarketCap, uint128 maxMarketCap)

func (*ControllerFilterer) WatchCategorySorted

func (_Controller *ControllerFilterer) WatchCategorySorted(opts *bind.WatchOpts, sink chan<- *ControllerCategorySorted) (event.Subscription, error)

WatchCategorySorted is a free log subscription operation binding the contract event 0x60d2f5fd1812c906f738651cc42bfcb9c52908b88265a1ec508ce32367af72c3.

Solidity: event CategorySorted(uint256 categoryID)

func (*ControllerFilterer) WatchNewPoolInitializer

func (_Controller *ControllerFilterer) WatchNewPoolInitializer(opts *bind.WatchOpts, sink chan<- *ControllerNewPoolInitializer) (event.Subscription, error)

WatchNewPoolInitializer is a free log subscription operation binding the contract event 0x290721d63c4f9911fe368948944f0df2c9ebce49e6a204da0d0886a758733115.

Solidity: event NewPoolInitializer(address pool, address initializer, uint256 categoryID, uint256 indexSize, uint8 formula)

func (*ControllerFilterer) WatchOwnershipTransferred

func (_Controller *ControllerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ControllerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ControllerFilterer) WatchPoolInitialized

func (_Controller *ControllerFilterer) WatchPoolInitialized(opts *bind.WatchOpts, sink chan<- *ControllerPoolInitialized) (event.Subscription, error)

WatchPoolInitialized is a free log subscription operation binding the contract event 0x9ff2050ac7faae9dc192e1cc9abe73b18a9b849f9b43f509914d80fa104d5903.

Solidity: event PoolInitialized(address pool, address unboundTokenSeller, uint256 categoryID, uint256 indexSize)

func (*ControllerFilterer) WatchTokenAdded

func (_Controller *ControllerFilterer) WatchTokenAdded(opts *bind.WatchOpts, sink chan<- *ControllerTokenAdded) (event.Subscription, error)

WatchTokenAdded is a free log subscription operation binding the contract event 0xf4c563a3ea86ff1f4275e8c207df0375a51963f2b831b7bf4da8be938d92876c.

Solidity: event TokenAdded(address token, uint256 categoryID)

func (*ControllerFilterer) WatchTokenRemoved

func (_Controller *ControllerFilterer) WatchTokenRemoved(opts *bind.WatchOpts, sink chan<- *ControllerTokenRemoved) (event.Subscription, error)

WatchTokenRemoved is a free log subscription operation binding the contract event 0xbe9bb4bdca0a094babd75e3a98b1d2e2390633430d0a2f6e2b9970e2ee03fb2e.

Solidity: event TokenRemoved(address token, uint256 categoryID)

type ControllerNewPoolInitializer

type ControllerNewPoolInitializer struct {
	Pool        common.Address
	Initializer common.Address
	CategoryID  *big.Int
	IndexSize   *big.Int
	Formula     uint8
	Raw         types.Log // Blockchain specific contextual infos
}

ControllerNewPoolInitializer represents a NewPoolInitializer event raised by the Controller contract.

type ControllerNewPoolInitializerIterator

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

ControllerNewPoolInitializerIterator is returned from FilterNewPoolInitializer and is used to iterate over the raw logs and unpacked data for NewPoolInitializer events raised by the Controller contract.

func (*ControllerNewPoolInitializerIterator) Close

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

func (*ControllerNewPoolInitializerIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerNewPoolInitializerIterator) 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 ControllerOwnershipTransferred

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

ControllerOwnershipTransferred represents a OwnershipTransferred event raised by the Controller contract.

type ControllerOwnershipTransferredIterator

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

ControllerOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Controller contract.

func (*ControllerOwnershipTransferredIterator) Close

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

func (*ControllerOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerOwnershipTransferredIterator) 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 ControllerPoolInitialized

type ControllerPoolInitialized struct {
	Pool               common.Address
	UnboundTokenSeller common.Address
	CategoryID         *big.Int
	IndexSize          *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

ControllerPoolInitialized represents a PoolInitialized event raised by the Controller contract.

type ControllerPoolInitializedIterator

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

ControllerPoolInitializedIterator is returned from FilterPoolInitialized and is used to iterate over the raw logs and unpacked data for PoolInitialized events raised by the Controller contract.

func (*ControllerPoolInitializedIterator) Close

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

func (*ControllerPoolInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerPoolInitializedIterator) 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 ControllerRaw

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

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

func (*ControllerRaw) Call

func (_Controller *ControllerRaw) 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 (*ControllerRaw) Transact

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

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

func (*ControllerRaw) Transfer

func (_Controller *ControllerRaw) 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 ControllerSession

type ControllerSession struct {
	Contract     *Controller       // 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
}

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

func (*ControllerSession) AddToken

func (_Controller *ControllerSession) AddToken(categoryID *big.Int, token common.Address) (*types.Transaction, error)

AddToken is a paid mutator transaction binding the contract method 0x57016b0a.

Solidity: function addToken(uint256 categoryID, address token) returns()

func (*ControllerSession) AddTokens

func (_Controller *ControllerSession) AddTokens(categoryID *big.Int, tokens []common.Address) (*types.Transaction, error)

AddTokens is a paid mutator transaction binding the contract method 0x6b5b8808.

Solidity: function addTokens(uint256 categoryID, address[] tokens) returns()

func (*ControllerSession) CategoryIndex

func (_Controller *ControllerSession) CategoryIndex() (*big.Int, error)

CategoryIndex is a free data retrieval call binding the contract method 0xea99fc04.

Solidity: function categoryIndex() view returns(uint256)

func (*ControllerSession) CircuitBreaker

func (_Controller *ControllerSession) CircuitBreaker() (common.Address, error)

CircuitBreaker is a free data retrieval call binding the contract method 0x16efd941.

Solidity: function circuitBreaker() view returns(address)

func (*ControllerSession) CirculatingMarketCapOracle

func (_Controller *ControllerSession) CirculatingMarketCapOracle() (common.Address, error)

CirculatingMarketCapOracle is a free data retrieval call binding the contract method 0xd600751d.

Solidity: function circulatingMarketCapOracle() view returns(address)

func (*ControllerSession) ComputeInitializerAddress

func (_Controller *ControllerSession) ComputeInitializerAddress(poolAddress common.Address) (common.Address, error)

ComputeInitializerAddress is a free data retrieval call binding the contract method 0xfa7c0b5e.

Solidity: function computeInitializerAddress(address poolAddress) view returns(address initializerAddress)

func (*ControllerSession) ComputePoolAddress

func (_Controller *ControllerSession) ComputePoolAddress(categoryID *big.Int, indexSize *big.Int) (common.Address, error)

ComputePoolAddress is a free data retrieval call binding the contract method 0x9dd19a52.

Solidity: function computePoolAddress(uint256 categoryID, uint256 indexSize) view returns(address poolAddress)

func (*ControllerSession) ComputeSellerAddress

func (_Controller *ControllerSession) ComputeSellerAddress(poolAddress common.Address) (common.Address, error)

ComputeSellerAddress is a free data retrieval call binding the contract method 0x582edc9b.

Solidity: function computeSellerAddress(address poolAddress) view returns(address sellerAddress)

func (*ControllerSession) ComputeWeights

func (_Controller *ControllerSession) ComputeWeights(formula uint8, marketCaps []*big.Int) ([]FixedPointuq112x112, error)

ComputeWeights is a free data retrieval call binding the contract method 0xa4d09816.

Solidity: function computeWeights(uint8 formula, uint256[] marketCaps) view returns((uint224)[] fractionalWeights)

func (*ControllerSession) CreateCategory

func (_Controller *ControllerSession) CreateCategory(metadataHash [32]byte, useFullyDilutedMarketCaps bool, minMarketCap *big.Int, maxMarketCap *big.Int) (*types.Transaction, error)

CreateCategory is a paid mutator transaction binding the contract method 0xa151e0f4.

Solidity: function createCategory(bytes32 metadataHash, bool useFullyDilutedMarketCaps, uint112 minMarketCap, uint112 maxMarketCap) returns()

func (*ControllerSession) DefaultExitFeeRecipient

func (_Controller *ControllerSession) DefaultExitFeeRecipient() (common.Address, error)

DefaultExitFeeRecipient is a free data retrieval call binding the contract method 0xa8eb80ab.

Solidity: function defaultExitFeeRecipient() view returns(address)

func (*ControllerSession) DefaultSellerPremium

func (_Controller *ControllerSession) DefaultSellerPremium() (uint8, error)

DefaultSellerPremium is a free data retrieval call binding the contract method 0x372accd2.

Solidity: function defaultSellerPremium() view returns(uint8)

func (*ControllerSession) DelegateCompLikeTokenFromPool

func (_Controller *ControllerSession) DelegateCompLikeTokenFromPool(pool common.Address, token common.Address, delegatee common.Address) (*types.Transaction, error)

DelegateCompLikeTokenFromPool is a paid mutator transaction binding the contract method 0xc6acb34f.

Solidity: function delegateCompLikeTokenFromPool(address pool, address token, address delegatee) returns()

func (*ControllerSession) FinishPreparedIndexPool

func (_Controller *ControllerSession) FinishPreparedIndexPool(poolAddress common.Address, tokens []common.Address, balances []*big.Int) (*types.Transaction, error)

FinishPreparedIndexPool is a paid mutator transaction binding the contract method 0x6a7a93ed.

Solidity: function finishPreparedIndexPool(address poolAddress, address[] tokens, uint256[] balances) returns()

func (*ControllerSession) ForceReindexPool

func (_Controller *ControllerSession) ForceReindexPool(poolAddress common.Address) (*types.Transaction, error)

ForceReindexPool is a paid mutator transaction binding the contract method 0x0fae3828.

Solidity: function forceReindexPool(address poolAddress) returns()

func (*ControllerSession) GetCategoryConfig

func (_Controller *ControllerSession) GetCategoryConfig(categoryID *big.Int) (struct {
	UseFullyDilutedMarketCaps bool
	MinMarketCap              *big.Int
	MaxMarketCap              *big.Int
}, error)

GetCategoryConfig is a free data retrieval call binding the contract method 0x28b996c1.

Solidity: function getCategoryConfig(uint256 categoryID) view returns(bool useFullyDilutedMarketCaps, uint112 minMarketCap, uint112 maxMarketCap)

func (*ControllerSession) GetCategoryTokens

func (_Controller *ControllerSession) GetCategoryTokens(categoryID *big.Int) ([]common.Address, error)

GetCategoryTokens is a free data retrieval call binding the contract method 0xde105dbd.

Solidity: function getCategoryTokens(uint256 categoryID) view returns(address[] tokens)

func (*ControllerSession) GetCirculatingMarketCaps

func (_Controller *ControllerSession) GetCirculatingMarketCaps(tokens []common.Address) ([]*big.Int, error)

GetCirculatingMarketCaps is a free data retrieval call binding the contract method 0xbf99568f.

Solidity: function getCirculatingMarketCaps(address[] tokens) view returns(uint256[] marketCaps)

func (*ControllerSession) GetFullyDilutedMarketCaps

func (_Controller *ControllerSession) GetFullyDilutedMarketCaps(tokens []common.Address) ([]*big.Int, error)

GetFullyDilutedMarketCaps is a free data retrieval call binding the contract method 0xc0f40a6b.

Solidity: function getFullyDilutedMarketCaps(address[] tokens) view returns(uint256[] marketCaps)

func (*ControllerSession) GetInitialTokensAndBalances

func (_Controller *ControllerSession) GetInitialTokensAndBalances(categoryID *big.Int, formula uint8, indexSize *big.Int, wethValue *big.Int) (struct {
	Tokens   []common.Address
	Balances []*big.Int
}, error)

GetInitialTokensAndBalances is a free data retrieval call binding the contract method 0xeef34dfe.

Solidity: function getInitialTokensAndBalances(uint256 categoryID, uint8 formula, uint256 indexSize, uint144 wethValue) view returns(address[] tokens, uint256[] balances)

func (*ControllerSession) GetMarketCaps

func (_Controller *ControllerSession) GetMarketCaps(useFullyDilutedMarketCaps bool, tokens []common.Address) ([]*big.Int, error)

GetMarketCaps is a free data retrieval call binding the contract method 0x7645e3f2.

Solidity: function getMarketCaps(bool useFullyDilutedMarketCaps, address[] tokens) view returns(uint256[] marketCaps)

func (*ControllerSession) GetSortedAndFilteredTokensAndMarketCaps

func (_Controller *ControllerSession) GetSortedAndFilteredTokensAndMarketCaps(categoryID *big.Int) (struct {
	CategoryTokens []common.Address
	MarketCaps     []*big.Int
}, error)

GetSortedAndFilteredTokensAndMarketCaps is a free data retrieval call binding the contract method 0x7a92d7ce.

Solidity: function getSortedAndFilteredTokensAndMarketCaps(uint256 categoryID) view returns(address[] categoryTokens, uint256[] marketCaps)

func (*ControllerSession) GetTopCategoryTokensAndMarketCaps

func (_Controller *ControllerSession) GetTopCategoryTokensAndMarketCaps(categoryID *big.Int, count *big.Int) (struct {
	CategoryTokens []common.Address
	MarketCaps     []*big.Int
}, error)

GetTopCategoryTokensAndMarketCaps is a free data retrieval call binding the contract method 0xb61beade.

Solidity: function getTopCategoryTokensAndMarketCaps(uint256 categoryID, uint256 count) view returns(address[] categoryTokens, uint256[] marketCaps)

func (*ControllerSession) HasCategory

func (_Controller *ControllerSession) HasCategory(categoryID *big.Int) (bool, error)

HasCategory is a free data retrieval call binding the contract method 0x1ab66317.

Solidity: function hasCategory(uint256 categoryID) view returns(bool)

func (*ControllerSession) INITIALIZERIMPLEMENTATIONID

func (_Controller *ControllerSession) INITIALIZERIMPLEMENTATIONID() ([32]byte, error)

INITIALIZERIMPLEMENTATIONID is a free data retrieval call binding the contract method 0xf52a4f26.

Solidity: function INITIALIZER_IMPLEMENTATION_ID() view returns(bytes32)

func (*ControllerSession) IndexPoolMetadata

func (_Controller *ControllerSession) IndexPoolMetadata(arg0 common.Address) (struct {
	Initialized  bool
	CategoryID   uint16
	IndexSize    uint8
	ReweighIndex uint8
	LastReweigh  uint64
	Formula      uint8
}, error)

IndexPoolMetadata is a free data retrieval call binding the contract method 0x9dfab092.

Solidity: function indexPoolMetadata(address ) view returns(bool initialized, uint16 categoryID, uint8 indexSize, uint8 reweighIndex, uint64 lastReweigh, uint8 formula)

func (*ControllerSession) Initialize

func (_Controller *ControllerSession) Initialize(circulatingMarketCapOracle_ common.Address, circuitBreaker_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address circulatingMarketCapOracle_, address circuitBreaker_) returns()

func (*ControllerSession) Initialize0

func (_Controller *ControllerSession) Initialize0(circulatingMarketCapOracle_ common.Address) (*types.Transaction, error)

Initialize0 is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address circulatingMarketCapOracle_) returns()

func (*ControllerSession) IsTokenInCategory

func (_Controller *ControllerSession) IsTokenInCategory(categoryID *big.Int, token common.Address) (bool, error)

IsTokenInCategory is a free data retrieval call binding the contract method 0x1fbaf275.

Solidity: function isTokenInCategory(uint256 categoryID, address token) view returns(bool)

func (*ControllerSession) LONGTWAPMAXTIMEELAPSED

func (_Controller *ControllerSession) LONGTWAPMAXTIMEELAPSED() (uint32, error)

LONGTWAPMAXTIMEELAPSED is a free data retrieval call binding the contract method 0x43ec8923.

Solidity: function LONG_TWAP_MAX_TIME_ELAPSED() view returns(uint32)

func (*ControllerSession) LONGTWAPMINTIMEELAPSED

func (_Controller *ControllerSession) LONGTWAPMINTIMEELAPSED() (uint32, error)

LONGTWAPMINTIMEELAPSED is a free data retrieval call binding the contract method 0x70ffd3e0.

Solidity: function LONG_TWAP_MIN_TIME_ELAPSED() view returns(uint32)

func (*ControllerSession) MAXCATEGORYTOKENS

func (_Controller *ControllerSession) MAXCATEGORYTOKENS() (*big.Int, error)

MAXCATEGORYTOKENS is a free data retrieval call binding the contract method 0x84fca9cd.

Solidity: function MAX_CATEGORY_TOKENS() view returns(uint256)

func (*ControllerSession) MAXINDEXSIZE

func (_Controller *ControllerSession) MAXINDEXSIZE() (*big.Int, error)

MAXINDEXSIZE is a free data retrieval call binding the contract method 0xacbfc96d.

Solidity: function MAX_INDEX_SIZE() view returns(uint256)

func (*ControllerSession) MAXSORTDELAY

func (_Controller *ControllerSession) MAXSORTDELAY() (*big.Int, error)

MAXSORTDELAY is a free data retrieval call binding the contract method 0xfdcfa2ec.

Solidity: function MAX_SORT_DELAY() view returns(uint256)

func (*ControllerSession) MINBALANCE

func (_Controller *ControllerSession) MINBALANCE() (*big.Int, error)

MINBALANCE is a free data retrieval call binding the contract method 0x867378c5.

Solidity: function MIN_BALANCE() view returns(uint256)

func (*ControllerSession) MININDEXSIZE

func (_Controller *ControllerSession) MININDEXSIZE() (*big.Int, error)

MININDEXSIZE is a free data retrieval call binding the contract method 0xb3ec862e.

Solidity: function MIN_INDEX_SIZE() view returns(uint256)

func (*ControllerSession) Owner

func (_Controller *ControllerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ControllerSession) POOLIMPLEMENTATIONID

func (_Controller *ControllerSession) POOLIMPLEMENTATIONID() ([32]byte, error)

POOLIMPLEMENTATIONID is a free data retrieval call binding the contract method 0x250436fd.

Solidity: function POOL_IMPLEMENTATION_ID() view returns(bytes32)

func (*ControllerSession) POOLREWEIGHDELAY

func (_Controller *ControllerSession) POOLREWEIGHDELAY() (*big.Int, error)

POOLREWEIGHDELAY is a free data retrieval call binding the contract method 0x830b6b0b.

Solidity: function POOL_REWEIGH_DELAY() view returns(uint256)

func (*ControllerSession) PoolFactory

func (_Controller *ControllerSession) PoolFactory() (common.Address, error)

PoolFactory is a free data retrieval call binding the contract method 0x4219dc40.

Solidity: function poolFactory() view returns(address)

func (*ControllerSession) PrepareIndexPool

func (_Controller *ControllerSession) PrepareIndexPool(categoryID *big.Int, indexSize *big.Int, initialWethValue *big.Int, formula uint8, name string, symbol string) (*types.Transaction, error)

PrepareIndexPool is a paid mutator transaction binding the contract method 0xf5bde611.

Solidity: function prepareIndexPool(uint256 categoryID, uint256 indexSize, uint256 initialWethValue, uint8 formula, string name, string symbol) returns(address poolAddress, address initializerAddress)

func (*ControllerSession) ProxyManager

func (_Controller *ControllerSession) ProxyManager() (common.Address, error)

ProxyManager is a free data retrieval call binding the contract method 0x96b4ca70.

Solidity: function proxyManager() view returns(address)

func (*ControllerSession) REWEIGHSBEFOREREINDEX

func (_Controller *ControllerSession) REWEIGHSBEFOREREINDEX() (uint8, error)

REWEIGHSBEFOREREINDEX is a free data retrieval call binding the contract method 0x3d89da25.

Solidity: function REWEIGHS_BEFORE_REINDEX() view returns(uint8)

func (*ControllerSession) ReindexPool

func (_Controller *ControllerSession) ReindexPool(poolAddress common.Address) (*types.Transaction, error)

ReindexPool is a paid mutator transaction binding the contract method 0x50b1e342.

Solidity: function reindexPool(address poolAddress) returns()

func (*ControllerSession) RemoveToken

func (_Controller *ControllerSession) RemoveToken(categoryID *big.Int, token common.Address) (*types.Transaction, error)

RemoveToken is a paid mutator transaction binding the contract method 0x33fe5676.

Solidity: function removeToken(uint256 categoryID, address token) returns()

func (*ControllerSession) RenounceOwnership

func (_Controller *ControllerSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ControllerSession) ReweighPool

func (_Controller *ControllerSession) ReweighPool(poolAddress common.Address) (*types.Transaction, error)

ReweighPool is a paid mutator transaction binding the contract method 0xe9819daf.

Solidity: function reweighPool(address poolAddress) returns()

func (*ControllerSession) SELLERIMPLEMENTATIONID

func (_Controller *ControllerSession) SELLERIMPLEMENTATIONID() ([32]byte, error)

SELLERIMPLEMENTATIONID is a free data retrieval call binding the contract method 0xc5ea91e1.

Solidity: function SELLER_IMPLEMENTATION_ID() view returns(bytes32)

func (*ControllerSession) SHORTTWAPMAXTIMEELAPSED

func (_Controller *ControllerSession) SHORTTWAPMAXTIMEELAPSED() (uint32, error)

SHORTTWAPMAXTIMEELAPSED is a free data retrieval call binding the contract method 0xa34fefdd.

Solidity: function SHORT_TWAP_MAX_TIME_ELAPSED() view returns(uint32)

func (*ControllerSession) SHORTTWAPMINTIMEELAPSED

func (_Controller *ControllerSession) SHORTTWAPMINTIMEELAPSED() (uint32, error)

SHORTTWAPMINTIMEELAPSED is a free data retrieval call binding the contract method 0x53304eb9.

Solidity: function SHORT_TWAP_MIN_TIME_ELAPSED() view returns(uint32)

func (*ControllerSession) SetCircuitBreaker

func (_Controller *ControllerSession) SetCircuitBreaker(circuitBreaker_ common.Address) (*types.Transaction, error)

SetCircuitBreaker is a paid mutator transaction binding the contract method 0x82beee89.

Solidity: function setCircuitBreaker(address circuitBreaker_) returns()

func (*ControllerSession) SetCirculatingMarketCapOracle

func (_Controller *ControllerSession) SetCirculatingMarketCapOracle(circulatingMarketCapOracle_ common.Address) (*types.Transaction, error)

SetCirculatingMarketCapOracle is a paid mutator transaction binding the contract method 0x4ee6411e.

Solidity: function setCirculatingMarketCapOracle(address circulatingMarketCapOracle_) returns()

func (*ControllerSession) SetDefaultSellerPremium

func (_Controller *ControllerSession) SetDefaultSellerPremium(_defaultSellerPremium uint8) (*types.Transaction, error)

SetDefaultSellerPremium is a paid mutator transaction binding the contract method 0xdf8e238a.

Solidity: function setDefaultSellerPremium(uint8 _defaultSellerPremium) returns()

func (*ControllerSession) SetPublicSwap

func (_Controller *ControllerSession) SetPublicSwap(indexPool_ common.Address, publicSwap bool) (*types.Transaction, error)

SetPublicSwap is a paid mutator transaction binding the contract method 0x1eccc185.

Solidity: function setPublicSwap(address indexPool_, bool publicSwap) returns()

func (*ControllerSession) SetSwapFee

func (_Controller *ControllerSession) SetSwapFee(poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error)

SetSwapFee is a paid mutator transaction binding the contract method 0x991991c7.

Solidity: function setSwapFee(address poolAddress, uint256 swapFee) returns()

func (*ControllerSession) SortAndFilterTokens

func (_Controller *ControllerSession) SortAndFilterTokens(categoryID *big.Int) (*types.Transaction, error)

SortAndFilterTokens is a paid mutator transaction binding the contract method 0x88b9813a.

Solidity: function sortAndFilterTokens(uint256 categoryID) returns()

func (*ControllerSession) TransferOwnership

func (_Controller *ControllerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*ControllerSession) UniswapOracle

func (_Controller *ControllerSession) UniswapOracle() (common.Address, error)

UniswapOracle is a free data retrieval call binding the contract method 0x120c6c5b.

Solidity: function uniswapOracle() view returns(address)

func (*ControllerSession) UpdateCategoryMarketCaps

func (_Controller *ControllerSession) UpdateCategoryMarketCaps(categoryID *big.Int) (*types.Transaction, error)

UpdateCategoryMarketCaps is a paid mutator transaction binding the contract method 0x90bec8ac.

Solidity: function updateCategoryMarketCaps(uint256 categoryID) returns()

func (*ControllerSession) UpdateCategoryPrices

func (_Controller *ControllerSession) UpdateCategoryPrices(categoryID *big.Int) (*types.Transaction, error)

UpdateCategoryPrices is a paid mutator transaction binding the contract method 0x6866ada8.

Solidity: function updateCategoryPrices(uint256 categoryID) returns(bool[] pricesUpdated)

func (*ControllerSession) UpdateMinimumBalance

func (_Controller *ControllerSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error)

UpdateMinimumBalance is a paid mutator transaction binding the contract method 0x034b904e.

Solidity: function updateMinimumBalance(address pool, address tokenAddress) returns()

func (*ControllerSession) UpdateSellerPremium

func (_Controller *ControllerSession) UpdateSellerPremium(tokenSeller common.Address, premiumPercent uint8) (*types.Transaction, error)

UpdateSellerPremium is a paid mutator transaction binding the contract method 0xdcdf7e16.

Solidity: function updateSellerPremium(address tokenSeller, uint8 premiumPercent) returns()

func (*ControllerSession) WEIGHTMULTIPLIER

func (_Controller *ControllerSession) WEIGHTMULTIPLIER() (*big.Int, error)

WEIGHTMULTIPLIER is a free data retrieval call binding the contract method 0xc290d8bd.

Solidity: function WEIGHT_MULTIPLIER() view returns(uint256)

type ControllerTokenAdded

type ControllerTokenAdded struct {
	Token      common.Address
	CategoryID *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

ControllerTokenAdded represents a TokenAdded event raised by the Controller contract.

type ControllerTokenAddedIterator

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

ControllerTokenAddedIterator is returned from FilterTokenAdded and is used to iterate over the raw logs and unpacked data for TokenAdded events raised by the Controller contract.

func (*ControllerTokenAddedIterator) Close

func (it *ControllerTokenAddedIterator) Close() error

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

func (*ControllerTokenAddedIterator) Error

func (it *ControllerTokenAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerTokenAddedIterator) 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 ControllerTokenRemoved

type ControllerTokenRemoved struct {
	Token      common.Address
	CategoryID *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

ControllerTokenRemoved represents a TokenRemoved event raised by the Controller contract.

type ControllerTokenRemovedIterator

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

ControllerTokenRemovedIterator is returned from FilterTokenRemoved and is used to iterate over the raw logs and unpacked data for TokenRemoved events raised by the Controller contract.

func (*ControllerTokenRemovedIterator) Close

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

func (*ControllerTokenRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ControllerTokenRemovedIterator) 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 ControllerTransactor

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

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

func NewControllerTransactor

func NewControllerTransactor(address common.Address, transactor bind.ContractTransactor) (*ControllerTransactor, error)

NewControllerTransactor creates a new write-only instance of Controller, bound to a specific deployed contract.

func (*ControllerTransactor) AddToken

func (_Controller *ControllerTransactor) AddToken(opts *bind.TransactOpts, categoryID *big.Int, token common.Address) (*types.Transaction, error)

AddToken is a paid mutator transaction binding the contract method 0x57016b0a.

Solidity: function addToken(uint256 categoryID, address token) returns()

func (*ControllerTransactor) AddTokens

func (_Controller *ControllerTransactor) AddTokens(opts *bind.TransactOpts, categoryID *big.Int, tokens []common.Address) (*types.Transaction, error)

AddTokens is a paid mutator transaction binding the contract method 0x6b5b8808.

Solidity: function addTokens(uint256 categoryID, address[] tokens) returns()

func (*ControllerTransactor) CreateCategory

func (_Controller *ControllerTransactor) CreateCategory(opts *bind.TransactOpts, metadataHash [32]byte, useFullyDilutedMarketCaps bool, minMarketCap *big.Int, maxMarketCap *big.Int) (*types.Transaction, error)

CreateCategory is a paid mutator transaction binding the contract method 0xa151e0f4.

Solidity: function createCategory(bytes32 metadataHash, bool useFullyDilutedMarketCaps, uint112 minMarketCap, uint112 maxMarketCap) returns()

func (*ControllerTransactor) DelegateCompLikeTokenFromPool

func (_Controller *ControllerTransactor) DelegateCompLikeTokenFromPool(opts *bind.TransactOpts, pool common.Address, token common.Address, delegatee common.Address) (*types.Transaction, error)

DelegateCompLikeTokenFromPool is a paid mutator transaction binding the contract method 0xc6acb34f.

Solidity: function delegateCompLikeTokenFromPool(address pool, address token, address delegatee) returns()

func (*ControllerTransactor) FinishPreparedIndexPool

func (_Controller *ControllerTransactor) FinishPreparedIndexPool(opts *bind.TransactOpts, poolAddress common.Address, tokens []common.Address, balances []*big.Int) (*types.Transaction, error)

FinishPreparedIndexPool is a paid mutator transaction binding the contract method 0x6a7a93ed.

Solidity: function finishPreparedIndexPool(address poolAddress, address[] tokens, uint256[] balances) returns()

func (*ControllerTransactor) ForceReindexPool

func (_Controller *ControllerTransactor) ForceReindexPool(opts *bind.TransactOpts, poolAddress common.Address) (*types.Transaction, error)

ForceReindexPool is a paid mutator transaction binding the contract method 0x0fae3828.

Solidity: function forceReindexPool(address poolAddress) returns()

func (*ControllerTransactor) Initialize

func (_Controller *ControllerTransactor) Initialize(opts *bind.TransactOpts, circulatingMarketCapOracle_ common.Address, circuitBreaker_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address circulatingMarketCapOracle_, address circuitBreaker_) returns()

func (*ControllerTransactor) Initialize0

func (_Controller *ControllerTransactor) Initialize0(opts *bind.TransactOpts, circulatingMarketCapOracle_ common.Address) (*types.Transaction, error)

Initialize0 is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address circulatingMarketCapOracle_) returns()

func (*ControllerTransactor) PrepareIndexPool

func (_Controller *ControllerTransactor) PrepareIndexPool(opts *bind.TransactOpts, categoryID *big.Int, indexSize *big.Int, initialWethValue *big.Int, formula uint8, name string, symbol string) (*types.Transaction, error)

PrepareIndexPool is a paid mutator transaction binding the contract method 0xf5bde611.

Solidity: function prepareIndexPool(uint256 categoryID, uint256 indexSize, uint256 initialWethValue, uint8 formula, string name, string symbol) returns(address poolAddress, address initializerAddress)

func (*ControllerTransactor) ReindexPool

func (_Controller *ControllerTransactor) ReindexPool(opts *bind.TransactOpts, poolAddress common.Address) (*types.Transaction, error)

ReindexPool is a paid mutator transaction binding the contract method 0x50b1e342.

Solidity: function reindexPool(address poolAddress) returns()

func (*ControllerTransactor) RemoveToken

func (_Controller *ControllerTransactor) RemoveToken(opts *bind.TransactOpts, categoryID *big.Int, token common.Address) (*types.Transaction, error)

RemoveToken is a paid mutator transaction binding the contract method 0x33fe5676.

Solidity: function removeToken(uint256 categoryID, address token) returns()

func (*ControllerTransactor) RenounceOwnership

func (_Controller *ControllerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ControllerTransactor) ReweighPool

func (_Controller *ControllerTransactor) ReweighPool(opts *bind.TransactOpts, poolAddress common.Address) (*types.Transaction, error)

ReweighPool is a paid mutator transaction binding the contract method 0xe9819daf.

Solidity: function reweighPool(address poolAddress) returns()

func (*ControllerTransactor) SetCircuitBreaker

func (_Controller *ControllerTransactor) SetCircuitBreaker(opts *bind.TransactOpts, circuitBreaker_ common.Address) (*types.Transaction, error)

SetCircuitBreaker is a paid mutator transaction binding the contract method 0x82beee89.

Solidity: function setCircuitBreaker(address circuitBreaker_) returns()

func (*ControllerTransactor) SetCirculatingMarketCapOracle

func (_Controller *ControllerTransactor) SetCirculatingMarketCapOracle(opts *bind.TransactOpts, circulatingMarketCapOracle_ common.Address) (*types.Transaction, error)

SetCirculatingMarketCapOracle is a paid mutator transaction binding the contract method 0x4ee6411e.

Solidity: function setCirculatingMarketCapOracle(address circulatingMarketCapOracle_) returns()

func (*ControllerTransactor) SetDefaultSellerPremium

func (_Controller *ControllerTransactor) SetDefaultSellerPremium(opts *bind.TransactOpts, _defaultSellerPremium uint8) (*types.Transaction, error)

SetDefaultSellerPremium is a paid mutator transaction binding the contract method 0xdf8e238a.

Solidity: function setDefaultSellerPremium(uint8 _defaultSellerPremium) returns()

func (*ControllerTransactor) SetPublicSwap

func (_Controller *ControllerTransactor) SetPublicSwap(opts *bind.TransactOpts, indexPool_ common.Address, publicSwap bool) (*types.Transaction, error)

SetPublicSwap is a paid mutator transaction binding the contract method 0x1eccc185.

Solidity: function setPublicSwap(address indexPool_, bool publicSwap) returns()

func (*ControllerTransactor) SetSwapFee

func (_Controller *ControllerTransactor) SetSwapFee(opts *bind.TransactOpts, poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error)

SetSwapFee is a paid mutator transaction binding the contract method 0x991991c7.

Solidity: function setSwapFee(address poolAddress, uint256 swapFee) returns()

func (*ControllerTransactor) SortAndFilterTokens

func (_Controller *ControllerTransactor) SortAndFilterTokens(opts *bind.TransactOpts, categoryID *big.Int) (*types.Transaction, error)

SortAndFilterTokens is a paid mutator transaction binding the contract method 0x88b9813a.

Solidity: function sortAndFilterTokens(uint256 categoryID) returns()

func (*ControllerTransactor) TransferOwnership

func (_Controller *ControllerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*ControllerTransactor) UpdateCategoryMarketCaps

func (_Controller *ControllerTransactor) UpdateCategoryMarketCaps(opts *bind.TransactOpts, categoryID *big.Int) (*types.Transaction, error)

UpdateCategoryMarketCaps is a paid mutator transaction binding the contract method 0x90bec8ac.

Solidity: function updateCategoryMarketCaps(uint256 categoryID) returns()

func (*ControllerTransactor) UpdateCategoryPrices

func (_Controller *ControllerTransactor) UpdateCategoryPrices(opts *bind.TransactOpts, categoryID *big.Int) (*types.Transaction, error)

UpdateCategoryPrices is a paid mutator transaction binding the contract method 0x6866ada8.

Solidity: function updateCategoryPrices(uint256 categoryID) returns(bool[] pricesUpdated)

func (*ControllerTransactor) UpdateMinimumBalance

func (_Controller *ControllerTransactor) UpdateMinimumBalance(opts *bind.TransactOpts, pool common.Address, tokenAddress common.Address) (*types.Transaction, error)

UpdateMinimumBalance is a paid mutator transaction binding the contract method 0x034b904e.

Solidity: function updateMinimumBalance(address pool, address tokenAddress) returns()

func (*ControllerTransactor) UpdateSellerPremium

func (_Controller *ControllerTransactor) UpdateSellerPremium(opts *bind.TransactOpts, tokenSeller common.Address, premiumPercent uint8) (*types.Transaction, error)

UpdateSellerPremium is a paid mutator transaction binding the contract method 0xdcdf7e16.

Solidity: function updateSellerPremium(address tokenSeller, uint8 premiumPercent) returns()

type ControllerTransactorRaw

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

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

func (*ControllerTransactorRaw) Transact

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

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

func (*ControllerTransactorRaw) Transfer

func (_Controller *ControllerTransactorRaw) 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 ControllerTransactorSession

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

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

func (*ControllerTransactorSession) AddToken

func (_Controller *ControllerTransactorSession) AddToken(categoryID *big.Int, token common.Address) (*types.Transaction, error)

AddToken is a paid mutator transaction binding the contract method 0x57016b0a.

Solidity: function addToken(uint256 categoryID, address token) returns()

func (*ControllerTransactorSession) AddTokens

func (_Controller *ControllerTransactorSession) AddTokens(categoryID *big.Int, tokens []common.Address) (*types.Transaction, error)

AddTokens is a paid mutator transaction binding the contract method 0x6b5b8808.

Solidity: function addTokens(uint256 categoryID, address[] tokens) returns()

func (*ControllerTransactorSession) CreateCategory

func (_Controller *ControllerTransactorSession) CreateCategory(metadataHash [32]byte, useFullyDilutedMarketCaps bool, minMarketCap *big.Int, maxMarketCap *big.Int) (*types.Transaction, error)

CreateCategory is a paid mutator transaction binding the contract method 0xa151e0f4.

Solidity: function createCategory(bytes32 metadataHash, bool useFullyDilutedMarketCaps, uint112 minMarketCap, uint112 maxMarketCap) returns()

func (*ControllerTransactorSession) DelegateCompLikeTokenFromPool

func (_Controller *ControllerTransactorSession) DelegateCompLikeTokenFromPool(pool common.Address, token common.Address, delegatee common.Address) (*types.Transaction, error)

DelegateCompLikeTokenFromPool is a paid mutator transaction binding the contract method 0xc6acb34f.

Solidity: function delegateCompLikeTokenFromPool(address pool, address token, address delegatee) returns()

func (*ControllerTransactorSession) FinishPreparedIndexPool

func (_Controller *ControllerTransactorSession) FinishPreparedIndexPool(poolAddress common.Address, tokens []common.Address, balances []*big.Int) (*types.Transaction, error)

FinishPreparedIndexPool is a paid mutator transaction binding the contract method 0x6a7a93ed.

Solidity: function finishPreparedIndexPool(address poolAddress, address[] tokens, uint256[] balances) returns()

func (*ControllerTransactorSession) ForceReindexPool

func (_Controller *ControllerTransactorSession) ForceReindexPool(poolAddress common.Address) (*types.Transaction, error)

ForceReindexPool is a paid mutator transaction binding the contract method 0x0fae3828.

Solidity: function forceReindexPool(address poolAddress) returns()

func (*ControllerTransactorSession) Initialize

func (_Controller *ControllerTransactorSession) Initialize(circulatingMarketCapOracle_ common.Address, circuitBreaker_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address circulatingMarketCapOracle_, address circuitBreaker_) returns()

func (*ControllerTransactorSession) Initialize0

func (_Controller *ControllerTransactorSession) Initialize0(circulatingMarketCapOracle_ common.Address) (*types.Transaction, error)

Initialize0 is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address circulatingMarketCapOracle_) returns()

func (*ControllerTransactorSession) PrepareIndexPool

func (_Controller *ControllerTransactorSession) PrepareIndexPool(categoryID *big.Int, indexSize *big.Int, initialWethValue *big.Int, formula uint8, name string, symbol string) (*types.Transaction, error)

PrepareIndexPool is a paid mutator transaction binding the contract method 0xf5bde611.

Solidity: function prepareIndexPool(uint256 categoryID, uint256 indexSize, uint256 initialWethValue, uint8 formula, string name, string symbol) returns(address poolAddress, address initializerAddress)

func (*ControllerTransactorSession) ReindexPool

func (_Controller *ControllerTransactorSession) ReindexPool(poolAddress common.Address) (*types.Transaction, error)

ReindexPool is a paid mutator transaction binding the contract method 0x50b1e342.

Solidity: function reindexPool(address poolAddress) returns()

func (*ControllerTransactorSession) RemoveToken

func (_Controller *ControllerTransactorSession) RemoveToken(categoryID *big.Int, token common.Address) (*types.Transaction, error)

RemoveToken is a paid mutator transaction binding the contract method 0x33fe5676.

Solidity: function removeToken(uint256 categoryID, address token) returns()

func (*ControllerTransactorSession) RenounceOwnership

func (_Controller *ControllerTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ControllerTransactorSession) ReweighPool

func (_Controller *ControllerTransactorSession) ReweighPool(poolAddress common.Address) (*types.Transaction, error)

ReweighPool is a paid mutator transaction binding the contract method 0xe9819daf.

Solidity: function reweighPool(address poolAddress) returns()

func (*ControllerTransactorSession) SetCircuitBreaker

func (_Controller *ControllerTransactorSession) SetCircuitBreaker(circuitBreaker_ common.Address) (*types.Transaction, error)

SetCircuitBreaker is a paid mutator transaction binding the contract method 0x82beee89.

Solidity: function setCircuitBreaker(address circuitBreaker_) returns()

func (*ControllerTransactorSession) SetCirculatingMarketCapOracle

func (_Controller *ControllerTransactorSession) SetCirculatingMarketCapOracle(circulatingMarketCapOracle_ common.Address) (*types.Transaction, error)

SetCirculatingMarketCapOracle is a paid mutator transaction binding the contract method 0x4ee6411e.

Solidity: function setCirculatingMarketCapOracle(address circulatingMarketCapOracle_) returns()

func (*ControllerTransactorSession) SetDefaultSellerPremium

func (_Controller *ControllerTransactorSession) SetDefaultSellerPremium(_defaultSellerPremium uint8) (*types.Transaction, error)

SetDefaultSellerPremium is a paid mutator transaction binding the contract method 0xdf8e238a.

Solidity: function setDefaultSellerPremium(uint8 _defaultSellerPremium) returns()

func (*ControllerTransactorSession) SetPublicSwap

func (_Controller *ControllerTransactorSession) SetPublicSwap(indexPool_ common.Address, publicSwap bool) (*types.Transaction, error)

SetPublicSwap is a paid mutator transaction binding the contract method 0x1eccc185.

Solidity: function setPublicSwap(address indexPool_, bool publicSwap) returns()

func (*ControllerTransactorSession) SetSwapFee

func (_Controller *ControllerTransactorSession) SetSwapFee(poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error)

SetSwapFee is a paid mutator transaction binding the contract method 0x991991c7.

Solidity: function setSwapFee(address poolAddress, uint256 swapFee) returns()

func (*ControllerTransactorSession) SortAndFilterTokens

func (_Controller *ControllerTransactorSession) SortAndFilterTokens(categoryID *big.Int) (*types.Transaction, error)

SortAndFilterTokens is a paid mutator transaction binding the contract method 0x88b9813a.

Solidity: function sortAndFilterTokens(uint256 categoryID) returns()

func (*ControllerTransactorSession) TransferOwnership

func (_Controller *ControllerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*ControllerTransactorSession) UpdateCategoryMarketCaps

func (_Controller *ControllerTransactorSession) UpdateCategoryMarketCaps(categoryID *big.Int) (*types.Transaction, error)

UpdateCategoryMarketCaps is a paid mutator transaction binding the contract method 0x90bec8ac.

Solidity: function updateCategoryMarketCaps(uint256 categoryID) returns()

func (*ControllerTransactorSession) UpdateCategoryPrices

func (_Controller *ControllerTransactorSession) UpdateCategoryPrices(categoryID *big.Int) (*types.Transaction, error)

UpdateCategoryPrices is a paid mutator transaction binding the contract method 0x6866ada8.

Solidity: function updateCategoryPrices(uint256 categoryID) returns(bool[] pricesUpdated)

func (*ControllerTransactorSession) UpdateMinimumBalance

func (_Controller *ControllerTransactorSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error)

UpdateMinimumBalance is a paid mutator transaction binding the contract method 0x034b904e.

Solidity: function updateMinimumBalance(address pool, address tokenAddress) returns()

func (*ControllerTransactorSession) UpdateSellerPremium

func (_Controller *ControllerTransactorSession) UpdateSellerPremium(tokenSeller common.Address, premiumPercent uint8) (*types.Transaction, error)

UpdateSellerPremium is a paid mutator transaction binding the contract method 0xdcdf7e16.

Solidity: function updateSellerPremium(address tokenSeller, uint8 premiumPercent) returns()

type FixedPointuq112x112

type FixedPointuq112x112 struct {
	X *big.Int
}

FixedPointuq112x112 is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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