Documentation ¶
Index ¶
- Constants
- type Mcapscontroller
- type McapscontrollerCaller
- func (_Mcapscontroller *McapscontrollerCaller) CategoryIndex(opts *bind.CallOpts) (*big.Int, error)
- func (_Mcapscontroller *McapscontrollerCaller) ComputeAverageMarketCap(opts *bind.CallOpts, token common.Address) (*big.Int, error)
- func (_Mcapscontroller *McapscontrollerCaller) ComputeAverageMarketCaps(opts *bind.CallOpts, tokens []common.Address) ([]*big.Int, error)
- func (_Mcapscontroller *McapscontrollerCaller) ComputeInitializerAddress(opts *bind.CallOpts, poolAddress common.Address) (common.Address, error)
- func (_Mcapscontroller *McapscontrollerCaller) ComputePoolAddress(opts *bind.CallOpts, categoryID *big.Int, indexSize *big.Int) (common.Address, error)
- func (_Mcapscontroller *McapscontrollerCaller) ComputeSellerAddress(opts *bind.CallOpts, poolAddress common.Address) (common.Address, error)
- func (_Mcapscontroller *McapscontrollerCaller) DefaultSellerPremium(opts *bind.CallOpts) (uint8, error)
- func (_Mcapscontroller *McapscontrollerCaller) GetCategoryMarketCaps(opts *bind.CallOpts, categoryID *big.Int) ([]*big.Int, error)
- func (_Mcapscontroller *McapscontrollerCaller) GetCategoryTokens(opts *bind.CallOpts, categoryID *big.Int) ([]common.Address, error)
- func (_Mcapscontroller *McapscontrollerCaller) GetInitialTokensAndBalances(opts *bind.CallOpts, categoryID *big.Int, indexSize *big.Int, ...) (struct{ ... }, error)
- func (_Mcapscontroller *McapscontrollerCaller) GetLastCategoryUpdate(opts *bind.CallOpts, categoryID *big.Int) (*big.Int, error)
- func (_Mcapscontroller *McapscontrollerCaller) GetTopCategoryTokens(opts *bind.CallOpts, categoryID *big.Int, num *big.Int) ([]common.Address, error)
- func (_Mcapscontroller *McapscontrollerCaller) HasCategory(opts *bind.CallOpts, categoryID *big.Int) (bool, error)
- func (_Mcapscontroller *McapscontrollerCaller) IsTokenInCategory(opts *bind.CallOpts, categoryID *big.Int, token common.Address) (bool, error)
- func (_Mcapscontroller *McapscontrollerCaller) Oracle(opts *bind.CallOpts) (common.Address, error)
- func (_Mcapscontroller *McapscontrollerCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- type McapscontrollerCallerRaw
- type McapscontrollerCallerSession
- func (_Mcapscontroller *McapscontrollerCallerSession) CategoryIndex() (*big.Int, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) ComputeAverageMarketCap(token common.Address) (*big.Int, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) ComputeAverageMarketCaps(tokens []common.Address) ([]*big.Int, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) ComputeInitializerAddress(poolAddress common.Address) (common.Address, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) ComputePoolAddress(categoryID *big.Int, indexSize *big.Int) (common.Address, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) ComputeSellerAddress(poolAddress common.Address) (common.Address, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) DefaultSellerPremium() (uint8, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) GetCategoryMarketCaps(categoryID *big.Int) ([]*big.Int, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) GetCategoryTokens(categoryID *big.Int) ([]common.Address, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) GetInitialTokensAndBalances(categoryID *big.Int, indexSize *big.Int, wethValue *big.Int) (struct{ ... }, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) GetLastCategoryUpdate(categoryID *big.Int) (*big.Int, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) GetTopCategoryTokens(categoryID *big.Int, num *big.Int) ([]common.Address, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) HasCategory(categoryID *big.Int) (bool, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) IsTokenInCategory(categoryID *big.Int, token common.Address) (bool, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) Oracle() (common.Address, error)
- func (_Mcapscontroller *McapscontrollerCallerSession) Owner() (common.Address, error)
- type McapscontrollerCategoryAdded
- type McapscontrollerCategoryAddedIterator
- type McapscontrollerCategorySorted
- type McapscontrollerCategorySortedIterator
- type McapscontrollerFilterer
- func (_Mcapscontroller *McapscontrollerFilterer) FilterCategoryAdded(opts *bind.FilterOpts) (*McapscontrollerCategoryAddedIterator, error)
- func (_Mcapscontroller *McapscontrollerFilterer) FilterCategorySorted(opts *bind.FilterOpts) (*McapscontrollerCategorySortedIterator, error)
- func (_Mcapscontroller *McapscontrollerFilterer) FilterNewPoolInitializer(opts *bind.FilterOpts) (*McapscontrollerNewPoolInitializerIterator, error)
- func (_Mcapscontroller *McapscontrollerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*McapscontrollerOwnershipTransferredIterator, error)
- func (_Mcapscontroller *McapscontrollerFilterer) FilterPoolInitialized(opts *bind.FilterOpts) (*McapscontrollerPoolInitializedIterator, error)
- func (_Mcapscontroller *McapscontrollerFilterer) FilterTokenAdded(opts *bind.FilterOpts) (*McapscontrollerTokenAddedIterator, error)
- func (_Mcapscontroller *McapscontrollerFilterer) FilterTokenRemoved(opts *bind.FilterOpts) (*McapscontrollerTokenRemovedIterator, error)
- func (_Mcapscontroller *McapscontrollerFilterer) ParseCategoryAdded(log types.Log) (*McapscontrollerCategoryAdded, error)
- func (_Mcapscontroller *McapscontrollerFilterer) ParseCategorySorted(log types.Log) (*McapscontrollerCategorySorted, error)
- func (_Mcapscontroller *McapscontrollerFilterer) ParseNewPoolInitializer(log types.Log) (*McapscontrollerNewPoolInitializer, error)
- func (_Mcapscontroller *McapscontrollerFilterer) ParseOwnershipTransferred(log types.Log) (*McapscontrollerOwnershipTransferred, error)
- func (_Mcapscontroller *McapscontrollerFilterer) ParsePoolInitialized(log types.Log) (*McapscontrollerPoolInitialized, error)
- func (_Mcapscontroller *McapscontrollerFilterer) ParseTokenAdded(log types.Log) (*McapscontrollerTokenAdded, error)
- func (_Mcapscontroller *McapscontrollerFilterer) ParseTokenRemoved(log types.Log) (*McapscontrollerTokenRemoved, error)
- func (_Mcapscontroller *McapscontrollerFilterer) WatchCategoryAdded(opts *bind.WatchOpts, sink chan<- *McapscontrollerCategoryAdded) (event.Subscription, error)
- func (_Mcapscontroller *McapscontrollerFilterer) WatchCategorySorted(opts *bind.WatchOpts, sink chan<- *McapscontrollerCategorySorted) (event.Subscription, error)
- func (_Mcapscontroller *McapscontrollerFilterer) WatchNewPoolInitializer(opts *bind.WatchOpts, sink chan<- *McapscontrollerNewPoolInitializer) (event.Subscription, error)
- func (_Mcapscontroller *McapscontrollerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *McapscontrollerOwnershipTransferred, ...) (event.Subscription, error)
- func (_Mcapscontroller *McapscontrollerFilterer) WatchPoolInitialized(opts *bind.WatchOpts, sink chan<- *McapscontrollerPoolInitialized) (event.Subscription, error)
- func (_Mcapscontroller *McapscontrollerFilterer) WatchTokenAdded(opts *bind.WatchOpts, sink chan<- *McapscontrollerTokenAdded) (event.Subscription, error)
- func (_Mcapscontroller *McapscontrollerFilterer) WatchTokenRemoved(opts *bind.WatchOpts, sink chan<- *McapscontrollerTokenRemoved) (event.Subscription, error)
- type McapscontrollerNewPoolInitializer
- type McapscontrollerNewPoolInitializerIterator
- type McapscontrollerOwnershipTransferred
- type McapscontrollerOwnershipTransferredIterator
- type McapscontrollerPoolInitialized
- type McapscontrollerPoolInitializedIterator
- type McapscontrollerRaw
- func (_Mcapscontroller *McapscontrollerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Mcapscontroller *McapscontrollerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type McapscontrollerSession
- func (_Mcapscontroller *McapscontrollerSession) AddToken(categoryID *big.Int, token common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) AddTokens(categoryID *big.Int, tokens []common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) CategoryIndex() (*big.Int, error)
- func (_Mcapscontroller *McapscontrollerSession) ComputeAverageMarketCap(token common.Address) (*big.Int, error)
- func (_Mcapscontroller *McapscontrollerSession) ComputeAverageMarketCaps(tokens []common.Address) ([]*big.Int, error)
- func (_Mcapscontroller *McapscontrollerSession) ComputeInitializerAddress(poolAddress common.Address) (common.Address, error)
- func (_Mcapscontroller *McapscontrollerSession) ComputePoolAddress(categoryID *big.Int, indexSize *big.Int) (common.Address, error)
- func (_Mcapscontroller *McapscontrollerSession) ComputeSellerAddress(poolAddress common.Address) (common.Address, error)
- func (_Mcapscontroller *McapscontrollerSession) CreateCategory(metadataHash [32]byte) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) DefaultSellerPremium() (uint8, error)
- func (_Mcapscontroller *McapscontrollerSession) FinishPreparedIndexPool(poolAddress common.Address, tokens []common.Address, balances []*big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) GetCategoryMarketCaps(categoryID *big.Int) ([]*big.Int, error)
- func (_Mcapscontroller *McapscontrollerSession) GetCategoryTokens(categoryID *big.Int) ([]common.Address, error)
- func (_Mcapscontroller *McapscontrollerSession) GetInitialTokensAndBalances(categoryID *big.Int, indexSize *big.Int, wethValue *big.Int) (struct{ ... }, error)
- func (_Mcapscontroller *McapscontrollerSession) GetLastCategoryUpdate(categoryID *big.Int) (*big.Int, error)
- func (_Mcapscontroller *McapscontrollerSession) GetTopCategoryTokens(categoryID *big.Int, num *big.Int) ([]common.Address, error)
- func (_Mcapscontroller *McapscontrollerSession) HasCategory(categoryID *big.Int) (bool, error)
- func (_Mcapscontroller *McapscontrollerSession) Initialize() (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) IsTokenInCategory(categoryID *big.Int, token common.Address) (bool, error)
- func (_Mcapscontroller *McapscontrollerSession) Oracle() (common.Address, error)
- func (_Mcapscontroller *McapscontrollerSession) OrderCategoryTokensByMarketCap(categoryID *big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) Owner() (common.Address, error)
- func (_Mcapscontroller *McapscontrollerSession) PrepareIndexPool(categoryID *big.Int, indexSize *big.Int, initialWethValue *big.Int, ...) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) ReindexPool(poolAddress common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) RemoveToken(categoryID *big.Int, token common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) RenounceOwnership() (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) ReweighPool(poolAddress common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) SetDefaultSellerPremium(_defaultSellerPremium uint8) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) SetMaxPoolTokens(poolAddress common.Address, maxPoolTokens *big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) SetSwapFee(poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) UpdateCategoryPrices(categoryID *big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerSession) UpdateSellerPremium(tokenSeller common.Address, premiumPercent uint8) (*types.Transaction, error)
- type McapscontrollerTokenAdded
- type McapscontrollerTokenAddedIterator
- type McapscontrollerTokenRemoved
- type McapscontrollerTokenRemovedIterator
- type McapscontrollerTransactor
- func (_Mcapscontroller *McapscontrollerTransactor) AddToken(opts *bind.TransactOpts, categoryID *big.Int, token common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) AddTokens(opts *bind.TransactOpts, categoryID *big.Int, tokens []common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) CreateCategory(opts *bind.TransactOpts, metadataHash [32]byte) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) FinishPreparedIndexPool(opts *bind.TransactOpts, poolAddress common.Address, tokens []common.Address, ...) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) OrderCategoryTokensByMarketCap(opts *bind.TransactOpts, categoryID *big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) PrepareIndexPool(opts *bind.TransactOpts, categoryID *big.Int, indexSize *big.Int, ...) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) ReindexPool(opts *bind.TransactOpts, poolAddress common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) RemoveToken(opts *bind.TransactOpts, categoryID *big.Int, token common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) ReweighPool(opts *bind.TransactOpts, poolAddress common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) SetDefaultSellerPremium(opts *bind.TransactOpts, _defaultSellerPremium uint8) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) SetMaxPoolTokens(opts *bind.TransactOpts, poolAddress common.Address, maxPoolTokens *big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) SetSwapFee(opts *bind.TransactOpts, poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) UpdateCategoryPrices(opts *bind.TransactOpts, categoryID *big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) UpdateMinimumBalance(opts *bind.TransactOpts, pool common.Address, tokenAddress common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactor) UpdateSellerPremium(opts *bind.TransactOpts, tokenSeller common.Address, premiumPercent uint8) (*types.Transaction, error)
- type McapscontrollerTransactorRaw
- type McapscontrollerTransactorSession
- func (_Mcapscontroller *McapscontrollerTransactorSession) AddToken(categoryID *big.Int, token common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) AddTokens(categoryID *big.Int, tokens []common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) CreateCategory(metadataHash [32]byte) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) FinishPreparedIndexPool(poolAddress common.Address, tokens []common.Address, balances []*big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) Initialize() (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) OrderCategoryTokensByMarketCap(categoryID *big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) PrepareIndexPool(categoryID *big.Int, indexSize *big.Int, initialWethValue *big.Int, ...) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) ReindexPool(poolAddress common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) RemoveToken(categoryID *big.Int, token common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) ReweighPool(poolAddress common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) SetDefaultSellerPremium(_defaultSellerPremium uint8) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) SetMaxPoolTokens(poolAddress common.Address, maxPoolTokens *big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) SetSwapFee(poolAddress common.Address, swapFee *big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) UpdateCategoryPrices(categoryID *big.Int) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) UpdateMinimumBalance(pool common.Address, tokenAddress common.Address) (*types.Transaction, error)
- func (_Mcapscontroller *McapscontrollerTransactorSession) UpdateSellerPremium(tokenSeller common.Address, premiumPercent uint8) (*types.Transaction, error)
Constants ¶
const McapscontrollerABI = "" /* 11384-byte string literal not displayed */
McapscontrollerABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mcapscontroller ¶
type Mcapscontroller struct { McapscontrollerCaller // Read-only binding to the contract McapscontrollerTransactor // Write-only binding to the contract McapscontrollerFilterer // Log filterer for contract events }
Mcapscontroller is an auto generated Go binding around an Ethereum contract.
func NewMcapscontroller ¶
func NewMcapscontroller(address common.Address, backend bind.ContractBackend) (*Mcapscontroller, error)
NewMcapscontroller creates a new instance of Mcapscontroller, bound to a specific deployed contract.
type McapscontrollerCaller ¶
type McapscontrollerCaller struct {
// contains filtered or unexported fields
}
McapscontrollerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewMcapscontrollerCaller ¶
func NewMcapscontrollerCaller(address common.Address, caller bind.ContractCaller) (*McapscontrollerCaller, error)
NewMcapscontrollerCaller creates a new read-only instance of Mcapscontroller, bound to a specific deployed contract.
func (*McapscontrollerCaller) CategoryIndex ¶
CategoryIndex is a free data retrieval call binding the contract method 0xea99fc04.
Solidity: function categoryIndex() view returns(uint256)
func (*McapscontrollerCaller) ComputeAverageMarketCap ¶
func (_Mcapscontroller *McapscontrollerCaller) ComputeAverageMarketCap(opts *bind.CallOpts, token common.Address) (*big.Int, error)
ComputeAverageMarketCap is a free data retrieval call binding the contract method 0xfd371138.
Solidity: function computeAverageMarketCap(address token) view returns(uint144)
func (*McapscontrollerCaller) ComputeAverageMarketCaps ¶
func (_Mcapscontroller *McapscontrollerCaller) ComputeAverageMarketCaps(opts *bind.CallOpts, tokens []common.Address) ([]*big.Int, error)
ComputeAverageMarketCaps is a free data retrieval call binding the contract method 0x6bfc3d40.
Solidity: function computeAverageMarketCaps(address[] tokens) view returns(uint144[] marketCaps)
func (*McapscontrollerCaller) ComputeInitializerAddress ¶
func (_Mcapscontroller *McapscontrollerCaller) 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 (*McapscontrollerCaller) ComputePoolAddress ¶
func (_Mcapscontroller *McapscontrollerCaller) 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 (*McapscontrollerCaller) ComputeSellerAddress ¶
func (_Mcapscontroller *McapscontrollerCaller) 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 (*McapscontrollerCaller) DefaultSellerPremium ¶
func (_Mcapscontroller *McapscontrollerCaller) 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 (*McapscontrollerCaller) GetCategoryMarketCaps ¶
func (_Mcapscontroller *McapscontrollerCaller) GetCategoryMarketCaps(opts *bind.CallOpts, categoryID *big.Int) ([]*big.Int, error)
GetCategoryMarketCaps is a free data retrieval call binding the contract method 0xf3cd354f.
Solidity: function getCategoryMarketCaps(uint256 categoryID) view returns(uint144[] marketCaps)
func (*McapscontrollerCaller) GetCategoryTokens ¶
func (_Mcapscontroller *McapscontrollerCaller) 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 (*McapscontrollerCaller) GetInitialTokensAndBalances ¶
func (_Mcapscontroller *McapscontrollerCaller) GetInitialTokensAndBalances(opts *bind.CallOpts, categoryID *big.Int, 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 0x36176824.
Solidity: function getInitialTokensAndBalances(uint256 categoryID, uint256 indexSize, uint144 wethValue) view returns(address[] tokens, uint256[] balances)
func (*McapscontrollerCaller) GetLastCategoryUpdate ¶
func (_Mcapscontroller *McapscontrollerCaller) GetLastCategoryUpdate(opts *bind.CallOpts, categoryID *big.Int) (*big.Int, error)
GetLastCategoryUpdate is a free data retrieval call binding the contract method 0xf256a9d0.
Solidity: function getLastCategoryUpdate(uint256 categoryID) view returns(uint256)
func (*McapscontrollerCaller) GetTopCategoryTokens ¶
func (_Mcapscontroller *McapscontrollerCaller) GetTopCategoryTokens(opts *bind.CallOpts, categoryID *big.Int, num *big.Int) ([]common.Address, error)
GetTopCategoryTokens is a free data retrieval call binding the contract method 0x030fb7f4.
Solidity: function getTopCategoryTokens(uint256 categoryID, uint256 num) view returns(address[] tokens)
func (*McapscontrollerCaller) HasCategory ¶
func (_Mcapscontroller *McapscontrollerCaller) 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 (*McapscontrollerCaller) IsTokenInCategory ¶
func (_Mcapscontroller *McapscontrollerCaller) 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)
type McapscontrollerCallerRaw ¶
type McapscontrollerCallerRaw struct {
Contract *McapscontrollerCaller // Generic read-only contract binding to access the raw methods on
}
McapscontrollerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*McapscontrollerCallerRaw) Call ¶
func (_Mcapscontroller *McapscontrollerCallerRaw) 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 McapscontrollerCallerSession ¶
type McapscontrollerCallerSession struct { Contract *McapscontrollerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
McapscontrollerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*McapscontrollerCallerSession) CategoryIndex ¶
func (_Mcapscontroller *McapscontrollerCallerSession) CategoryIndex() (*big.Int, error)
CategoryIndex is a free data retrieval call binding the contract method 0xea99fc04.
Solidity: function categoryIndex() view returns(uint256)
func (*McapscontrollerCallerSession) ComputeAverageMarketCap ¶
func (_Mcapscontroller *McapscontrollerCallerSession) ComputeAverageMarketCap(token common.Address) (*big.Int, error)
ComputeAverageMarketCap is a free data retrieval call binding the contract method 0xfd371138.
Solidity: function computeAverageMarketCap(address token) view returns(uint144)
func (*McapscontrollerCallerSession) ComputeAverageMarketCaps ¶
func (_Mcapscontroller *McapscontrollerCallerSession) ComputeAverageMarketCaps(tokens []common.Address) ([]*big.Int, error)
ComputeAverageMarketCaps is a free data retrieval call binding the contract method 0x6bfc3d40.
Solidity: function computeAverageMarketCaps(address[] tokens) view returns(uint144[] marketCaps)
func (*McapscontrollerCallerSession) ComputeInitializerAddress ¶
func (_Mcapscontroller *McapscontrollerCallerSession) 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 (*McapscontrollerCallerSession) ComputePoolAddress ¶
func (_Mcapscontroller *McapscontrollerCallerSession) 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 (*McapscontrollerCallerSession) ComputeSellerAddress ¶
func (_Mcapscontroller *McapscontrollerCallerSession) 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 (*McapscontrollerCallerSession) DefaultSellerPremium ¶
func (_Mcapscontroller *McapscontrollerCallerSession) DefaultSellerPremium() (uint8, error)
DefaultSellerPremium is a free data retrieval call binding the contract method 0x372accd2.
Solidity: function defaultSellerPremium() view returns(uint8)
func (*McapscontrollerCallerSession) GetCategoryMarketCaps ¶
func (_Mcapscontroller *McapscontrollerCallerSession) GetCategoryMarketCaps(categoryID *big.Int) ([]*big.Int, error)
GetCategoryMarketCaps is a free data retrieval call binding the contract method 0xf3cd354f.
Solidity: function getCategoryMarketCaps(uint256 categoryID) view returns(uint144[] marketCaps)
func (*McapscontrollerCallerSession) GetCategoryTokens ¶
func (_Mcapscontroller *McapscontrollerCallerSession) 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 (*McapscontrollerCallerSession) GetInitialTokensAndBalances ¶
func (_Mcapscontroller *McapscontrollerCallerSession) GetInitialTokensAndBalances(categoryID *big.Int, 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 0x36176824.
Solidity: function getInitialTokensAndBalances(uint256 categoryID, uint256 indexSize, uint144 wethValue) view returns(address[] tokens, uint256[] balances)
func (*McapscontrollerCallerSession) GetLastCategoryUpdate ¶
func (_Mcapscontroller *McapscontrollerCallerSession) GetLastCategoryUpdate(categoryID *big.Int) (*big.Int, error)
GetLastCategoryUpdate is a free data retrieval call binding the contract method 0xf256a9d0.
Solidity: function getLastCategoryUpdate(uint256 categoryID) view returns(uint256)
func (*McapscontrollerCallerSession) GetTopCategoryTokens ¶
func (_Mcapscontroller *McapscontrollerCallerSession) GetTopCategoryTokens(categoryID *big.Int, num *big.Int) ([]common.Address, error)
GetTopCategoryTokens is a free data retrieval call binding the contract method 0x030fb7f4.
Solidity: function getTopCategoryTokens(uint256 categoryID, uint256 num) view returns(address[] tokens)
func (*McapscontrollerCallerSession) HasCategory ¶
func (_Mcapscontroller *McapscontrollerCallerSession) 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 (*McapscontrollerCallerSession) IsTokenInCategory ¶
func (_Mcapscontroller *McapscontrollerCallerSession) 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)
type McapscontrollerCategoryAdded ¶
type McapscontrollerCategoryAdded struct { CategoryID *big.Int MetadataHash [32]byte Raw types.Log // Blockchain specific contextual infos }
McapscontrollerCategoryAdded represents a CategoryAdded event raised by the Mcapscontroller contract.
type McapscontrollerCategoryAddedIterator ¶
type McapscontrollerCategoryAddedIterator struct { Event *McapscontrollerCategoryAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
McapscontrollerCategoryAddedIterator is returned from FilterCategoryAdded and is used to iterate over the raw logs and unpacked data for CategoryAdded events raised by the Mcapscontroller contract.
func (*McapscontrollerCategoryAddedIterator) Close ¶
func (it *McapscontrollerCategoryAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*McapscontrollerCategoryAddedIterator) Error ¶
func (it *McapscontrollerCategoryAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*McapscontrollerCategoryAddedIterator) Next ¶
func (it *McapscontrollerCategoryAddedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type McapscontrollerCategorySorted ¶
type McapscontrollerCategorySorted struct { CategoryID *big.Int Raw types.Log // Blockchain specific contextual infos }
McapscontrollerCategorySorted represents a CategorySorted event raised by the Mcapscontroller contract.
type McapscontrollerCategorySortedIterator ¶
type McapscontrollerCategorySortedIterator struct { Event *McapscontrollerCategorySorted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
McapscontrollerCategorySortedIterator is returned from FilterCategorySorted and is used to iterate over the raw logs and unpacked data for CategorySorted events raised by the Mcapscontroller contract.
func (*McapscontrollerCategorySortedIterator) Close ¶
func (it *McapscontrollerCategorySortedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*McapscontrollerCategorySortedIterator) Error ¶
func (it *McapscontrollerCategorySortedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*McapscontrollerCategorySortedIterator) Next ¶
func (it *McapscontrollerCategorySortedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type McapscontrollerFilterer ¶
type McapscontrollerFilterer struct {
// contains filtered or unexported fields
}
McapscontrollerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewMcapscontrollerFilterer ¶
func NewMcapscontrollerFilterer(address common.Address, filterer bind.ContractFilterer) (*McapscontrollerFilterer, error)
NewMcapscontrollerFilterer creates a new log filterer instance of Mcapscontroller, bound to a specific deployed contract.
func (*McapscontrollerFilterer) FilterCategoryAdded ¶
func (_Mcapscontroller *McapscontrollerFilterer) FilterCategoryAdded(opts *bind.FilterOpts) (*McapscontrollerCategoryAddedIterator, error)
FilterCategoryAdded is a free log retrieval operation binding the contract event 0x087cd6515ab9d8ad2d847c4b093743cd73acf162a4260bd0ea2429ec6709a632.
Solidity: event CategoryAdded(uint256 categoryID, bytes32 metadataHash)
func (*McapscontrollerFilterer) FilterCategorySorted ¶
func (_Mcapscontroller *McapscontrollerFilterer) FilterCategorySorted(opts *bind.FilterOpts) (*McapscontrollerCategorySortedIterator, error)
FilterCategorySorted is a free log retrieval operation binding the contract event 0x60d2f5fd1812c906f738651cc42bfcb9c52908b88265a1ec508ce32367af72c3.
Solidity: event CategorySorted(uint256 categoryID)
func (*McapscontrollerFilterer) FilterNewPoolInitializer ¶
func (_Mcapscontroller *McapscontrollerFilterer) FilterNewPoolInitializer(opts *bind.FilterOpts) (*McapscontrollerNewPoolInitializerIterator, error)
FilterNewPoolInitializer is a free log retrieval operation binding the contract event 0x7ad23833dba658b2bdc6f260fb60a3240b3868086ad60b4e42276f5eeba73e6a.
Solidity: event NewPoolInitializer(address pool, address initializer, uint256 categoryID, uint256 indexSize)
func (*McapscontrollerFilterer) FilterOwnershipTransferred ¶
func (_Mcapscontroller *McapscontrollerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*McapscontrollerOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*McapscontrollerFilterer) FilterPoolInitialized ¶
func (_Mcapscontroller *McapscontrollerFilterer) FilterPoolInitialized(opts *bind.FilterOpts) (*McapscontrollerPoolInitializedIterator, 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 (*McapscontrollerFilterer) FilterTokenAdded ¶
func (_Mcapscontroller *McapscontrollerFilterer) FilterTokenAdded(opts *bind.FilterOpts) (*McapscontrollerTokenAddedIterator, error)
FilterTokenAdded is a free log retrieval operation binding the contract event 0xf4c563a3ea86ff1f4275e8c207df0375a51963f2b831b7bf4da8be938d92876c.
Solidity: event TokenAdded(address token, uint256 categoryID)
func (*McapscontrollerFilterer) FilterTokenRemoved ¶
func (_Mcapscontroller *McapscontrollerFilterer) FilterTokenRemoved(opts *bind.FilterOpts) (*McapscontrollerTokenRemovedIterator, error)
FilterTokenRemoved is a free log retrieval operation binding the contract event 0xbe9bb4bdca0a094babd75e3a98b1d2e2390633430d0a2f6e2b9970e2ee03fb2e.
Solidity: event TokenRemoved(address token, uint256 categoryID)
func (*McapscontrollerFilterer) ParseCategoryAdded ¶
func (_Mcapscontroller *McapscontrollerFilterer) ParseCategoryAdded(log types.Log) (*McapscontrollerCategoryAdded, error)
ParseCategoryAdded is a log parse operation binding the contract event 0x087cd6515ab9d8ad2d847c4b093743cd73acf162a4260bd0ea2429ec6709a632.
Solidity: event CategoryAdded(uint256 categoryID, bytes32 metadataHash)
func (*McapscontrollerFilterer) ParseCategorySorted ¶
func (_Mcapscontroller *McapscontrollerFilterer) ParseCategorySorted(log types.Log) (*McapscontrollerCategorySorted, error)
ParseCategorySorted is a log parse operation binding the contract event 0x60d2f5fd1812c906f738651cc42bfcb9c52908b88265a1ec508ce32367af72c3.
Solidity: event CategorySorted(uint256 categoryID)
func (*McapscontrollerFilterer) ParseNewPoolInitializer ¶
func (_Mcapscontroller *McapscontrollerFilterer) ParseNewPoolInitializer(log types.Log) (*McapscontrollerNewPoolInitializer, error)
ParseNewPoolInitializer is a log parse operation binding the contract event 0x7ad23833dba658b2bdc6f260fb60a3240b3868086ad60b4e42276f5eeba73e6a.
Solidity: event NewPoolInitializer(address pool, address initializer, uint256 categoryID, uint256 indexSize)
func (*McapscontrollerFilterer) ParseOwnershipTransferred ¶
func (_Mcapscontroller *McapscontrollerFilterer) ParseOwnershipTransferred(log types.Log) (*McapscontrollerOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*McapscontrollerFilterer) ParsePoolInitialized ¶
func (_Mcapscontroller *McapscontrollerFilterer) ParsePoolInitialized(log types.Log) (*McapscontrollerPoolInitialized, error)
ParsePoolInitialized is a log parse operation binding the contract event 0x9ff2050ac7faae9dc192e1cc9abe73b18a9b849f9b43f509914d80fa104d5903.
Solidity: event PoolInitialized(address pool, address unboundTokenSeller, uint256 categoryID, uint256 indexSize)
func (*McapscontrollerFilterer) ParseTokenAdded ¶
func (_Mcapscontroller *McapscontrollerFilterer) ParseTokenAdded(log types.Log) (*McapscontrollerTokenAdded, error)
ParseTokenAdded is a log parse operation binding the contract event 0xf4c563a3ea86ff1f4275e8c207df0375a51963f2b831b7bf4da8be938d92876c.
Solidity: event TokenAdded(address token, uint256 categoryID)
func (*McapscontrollerFilterer) ParseTokenRemoved ¶
func (_Mcapscontroller *McapscontrollerFilterer) ParseTokenRemoved(log types.Log) (*McapscontrollerTokenRemoved, error)
ParseTokenRemoved is a log parse operation binding the contract event 0xbe9bb4bdca0a094babd75e3a98b1d2e2390633430d0a2f6e2b9970e2ee03fb2e.
Solidity: event TokenRemoved(address token, uint256 categoryID)
func (*McapscontrollerFilterer) WatchCategoryAdded ¶
func (_Mcapscontroller *McapscontrollerFilterer) WatchCategoryAdded(opts *bind.WatchOpts, sink chan<- *McapscontrollerCategoryAdded) (event.Subscription, error)
WatchCategoryAdded is a free log subscription operation binding the contract event 0x087cd6515ab9d8ad2d847c4b093743cd73acf162a4260bd0ea2429ec6709a632.
Solidity: event CategoryAdded(uint256 categoryID, bytes32 metadataHash)
func (*McapscontrollerFilterer) WatchCategorySorted ¶
func (_Mcapscontroller *McapscontrollerFilterer) WatchCategorySorted(opts *bind.WatchOpts, sink chan<- *McapscontrollerCategorySorted) (event.Subscription, error)
WatchCategorySorted is a free log subscription operation binding the contract event 0x60d2f5fd1812c906f738651cc42bfcb9c52908b88265a1ec508ce32367af72c3.
Solidity: event CategorySorted(uint256 categoryID)
func (*McapscontrollerFilterer) WatchNewPoolInitializer ¶
func (_Mcapscontroller *McapscontrollerFilterer) WatchNewPoolInitializer(opts *bind.WatchOpts, sink chan<- *McapscontrollerNewPoolInitializer) (event.Subscription, error)
WatchNewPoolInitializer is a free log subscription operation binding the contract event 0x7ad23833dba658b2bdc6f260fb60a3240b3868086ad60b4e42276f5eeba73e6a.
Solidity: event NewPoolInitializer(address pool, address initializer, uint256 categoryID, uint256 indexSize)
func (*McapscontrollerFilterer) WatchOwnershipTransferred ¶
func (_Mcapscontroller *McapscontrollerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *McapscontrollerOwnershipTransferred, 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 (*McapscontrollerFilterer) WatchPoolInitialized ¶
func (_Mcapscontroller *McapscontrollerFilterer) WatchPoolInitialized(opts *bind.WatchOpts, sink chan<- *McapscontrollerPoolInitialized) (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 (*McapscontrollerFilterer) WatchTokenAdded ¶
func (_Mcapscontroller *McapscontrollerFilterer) WatchTokenAdded(opts *bind.WatchOpts, sink chan<- *McapscontrollerTokenAdded) (event.Subscription, error)
WatchTokenAdded is a free log subscription operation binding the contract event 0xf4c563a3ea86ff1f4275e8c207df0375a51963f2b831b7bf4da8be938d92876c.
Solidity: event TokenAdded(address token, uint256 categoryID)
func (*McapscontrollerFilterer) WatchTokenRemoved ¶
func (_Mcapscontroller *McapscontrollerFilterer) WatchTokenRemoved(opts *bind.WatchOpts, sink chan<- *McapscontrollerTokenRemoved) (event.Subscription, error)
WatchTokenRemoved is a free log subscription operation binding the contract event 0xbe9bb4bdca0a094babd75e3a98b1d2e2390633430d0a2f6e2b9970e2ee03fb2e.
Solidity: event TokenRemoved(address token, uint256 categoryID)
type McapscontrollerNewPoolInitializer ¶
type McapscontrollerNewPoolInitializer struct { Pool common.Address Initializer common.Address CategoryID *big.Int IndexSize *big.Int Raw types.Log // Blockchain specific contextual infos }
McapscontrollerNewPoolInitializer represents a NewPoolInitializer event raised by the Mcapscontroller contract.
type McapscontrollerNewPoolInitializerIterator ¶
type McapscontrollerNewPoolInitializerIterator struct { Event *McapscontrollerNewPoolInitializer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
McapscontrollerNewPoolInitializerIterator is returned from FilterNewPoolInitializer and is used to iterate over the raw logs and unpacked data for NewPoolInitializer events raised by the Mcapscontroller contract.
func (*McapscontrollerNewPoolInitializerIterator) Close ¶
func (it *McapscontrollerNewPoolInitializerIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*McapscontrollerNewPoolInitializerIterator) Error ¶
func (it *McapscontrollerNewPoolInitializerIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*McapscontrollerNewPoolInitializerIterator) Next ¶
func (it *McapscontrollerNewPoolInitializerIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type McapscontrollerOwnershipTransferred ¶
type McapscontrollerOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
McapscontrollerOwnershipTransferred represents a OwnershipTransferred event raised by the Mcapscontroller contract.
type McapscontrollerOwnershipTransferredIterator ¶
type McapscontrollerOwnershipTransferredIterator struct { Event *McapscontrollerOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
McapscontrollerOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Mcapscontroller contract.
func (*McapscontrollerOwnershipTransferredIterator) Close ¶
func (it *McapscontrollerOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*McapscontrollerOwnershipTransferredIterator) Error ¶
func (it *McapscontrollerOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*McapscontrollerOwnershipTransferredIterator) Next ¶
func (it *McapscontrollerOwnershipTransferredIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type McapscontrollerPoolInitialized ¶
type McapscontrollerPoolInitialized struct { Pool common.Address UnboundTokenSeller common.Address CategoryID *big.Int IndexSize *big.Int Raw types.Log // Blockchain specific contextual infos }
McapscontrollerPoolInitialized represents a PoolInitialized event raised by the Mcapscontroller contract.
type McapscontrollerPoolInitializedIterator ¶
type McapscontrollerPoolInitializedIterator struct { Event *McapscontrollerPoolInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
McapscontrollerPoolInitializedIterator is returned from FilterPoolInitialized and is used to iterate over the raw logs and unpacked data for PoolInitialized events raised by the Mcapscontroller contract.
func (*McapscontrollerPoolInitializedIterator) Close ¶
func (it *McapscontrollerPoolInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*McapscontrollerPoolInitializedIterator) Error ¶
func (it *McapscontrollerPoolInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*McapscontrollerPoolInitializedIterator) Next ¶
func (it *McapscontrollerPoolInitializedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type McapscontrollerRaw ¶
type McapscontrollerRaw struct {
Contract *Mcapscontroller // Generic contract binding to access the raw methods on
}
McapscontrollerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*McapscontrollerRaw) Call ¶
func (_Mcapscontroller *McapscontrollerRaw) 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 (*McapscontrollerRaw) Transact ¶
func (_Mcapscontroller *McapscontrollerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*McapscontrollerRaw) Transfer ¶
func (_Mcapscontroller *McapscontrollerRaw) 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 McapscontrollerSession ¶
type McapscontrollerSession struct { Contract *Mcapscontroller // 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 }
McapscontrollerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*McapscontrollerSession) AddToken ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) AddTokens ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) CategoryIndex ¶
func (_Mcapscontroller *McapscontrollerSession) CategoryIndex() (*big.Int, error)
CategoryIndex is a free data retrieval call binding the contract method 0xea99fc04.
Solidity: function categoryIndex() view returns(uint256)
func (*McapscontrollerSession) ComputeAverageMarketCap ¶
func (_Mcapscontroller *McapscontrollerSession) ComputeAverageMarketCap(token common.Address) (*big.Int, error)
ComputeAverageMarketCap is a free data retrieval call binding the contract method 0xfd371138.
Solidity: function computeAverageMarketCap(address token) view returns(uint144)
func (*McapscontrollerSession) ComputeAverageMarketCaps ¶
func (_Mcapscontroller *McapscontrollerSession) ComputeAverageMarketCaps(tokens []common.Address) ([]*big.Int, error)
ComputeAverageMarketCaps is a free data retrieval call binding the contract method 0x6bfc3d40.
Solidity: function computeAverageMarketCaps(address[] tokens) view returns(uint144[] marketCaps)
func (*McapscontrollerSession) ComputeInitializerAddress ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) ComputePoolAddress ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) ComputeSellerAddress ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) CreateCategory ¶
func (_Mcapscontroller *McapscontrollerSession) CreateCategory(metadataHash [32]byte) (*types.Transaction, error)
CreateCategory is a paid mutator transaction binding the contract method 0x6696bf11.
Solidity: function createCategory(bytes32 metadataHash) returns()
func (*McapscontrollerSession) DefaultSellerPremium ¶
func (_Mcapscontroller *McapscontrollerSession) DefaultSellerPremium() (uint8, error)
DefaultSellerPremium is a free data retrieval call binding the contract method 0x372accd2.
Solidity: function defaultSellerPremium() view returns(uint8)
func (*McapscontrollerSession) FinishPreparedIndexPool ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) GetCategoryMarketCaps ¶
func (_Mcapscontroller *McapscontrollerSession) GetCategoryMarketCaps(categoryID *big.Int) ([]*big.Int, error)
GetCategoryMarketCaps is a free data retrieval call binding the contract method 0xf3cd354f.
Solidity: function getCategoryMarketCaps(uint256 categoryID) view returns(uint144[] marketCaps)
func (*McapscontrollerSession) GetCategoryTokens ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) GetInitialTokensAndBalances ¶
func (_Mcapscontroller *McapscontrollerSession) GetInitialTokensAndBalances(categoryID *big.Int, 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 0x36176824.
Solidity: function getInitialTokensAndBalances(uint256 categoryID, uint256 indexSize, uint144 wethValue) view returns(address[] tokens, uint256[] balances)
func (*McapscontrollerSession) GetLastCategoryUpdate ¶
func (_Mcapscontroller *McapscontrollerSession) GetLastCategoryUpdate(categoryID *big.Int) (*big.Int, error)
GetLastCategoryUpdate is a free data retrieval call binding the contract method 0xf256a9d0.
Solidity: function getLastCategoryUpdate(uint256 categoryID) view returns(uint256)
func (*McapscontrollerSession) GetTopCategoryTokens ¶
func (_Mcapscontroller *McapscontrollerSession) GetTopCategoryTokens(categoryID *big.Int, num *big.Int) ([]common.Address, error)
GetTopCategoryTokens is a free data retrieval call binding the contract method 0x030fb7f4.
Solidity: function getTopCategoryTokens(uint256 categoryID, uint256 num) view returns(address[] tokens)
func (*McapscontrollerSession) HasCategory ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) Initialize ¶
func (_Mcapscontroller *McapscontrollerSession) Initialize() (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
Solidity: function initialize() returns()
func (*McapscontrollerSession) IsTokenInCategory ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) Oracle ¶
func (_Mcapscontroller *McapscontrollerSession) Oracle() (common.Address, error)
Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.
Solidity: function oracle() view returns(address)
func (*McapscontrollerSession) OrderCategoryTokensByMarketCap ¶
func (_Mcapscontroller *McapscontrollerSession) OrderCategoryTokensByMarketCap(categoryID *big.Int) (*types.Transaction, error)
OrderCategoryTokensByMarketCap is a paid mutator transaction binding the contract method 0xb25f86f9.
Solidity: function orderCategoryTokensByMarketCap(uint256 categoryID) returns()
func (*McapscontrollerSession) Owner ¶
func (_Mcapscontroller *McapscontrollerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*McapscontrollerSession) PrepareIndexPool ¶
func (_Mcapscontroller *McapscontrollerSession) PrepareIndexPool(categoryID *big.Int, indexSize *big.Int, initialWethValue *big.Int, name string, symbol string) (*types.Transaction, error)
PrepareIndexPool is a paid mutator transaction binding the contract method 0x74a58783.
Solidity: function prepareIndexPool(uint256 categoryID, uint256 indexSize, uint256 initialWethValue, string name, string symbol) returns(address poolAddress, address initializerAddress)
func (*McapscontrollerSession) ReindexPool ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) RemoveToken ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) RenounceOwnership ¶
func (_Mcapscontroller *McapscontrollerSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*McapscontrollerSession) ReweighPool ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) SetDefaultSellerPremium ¶
func (_Mcapscontroller *McapscontrollerSession) SetDefaultSellerPremium(_defaultSellerPremium uint8) (*types.Transaction, error)
SetDefaultSellerPremium is a paid mutator transaction binding the contract method 0xdf8e238a.
Solidity: function setDefaultSellerPremium(uint8 _defaultSellerPremium) returns()
func (*McapscontrollerSession) SetMaxPoolTokens ¶
func (_Mcapscontroller *McapscontrollerSession) SetMaxPoolTokens(poolAddress common.Address, maxPoolTokens *big.Int) (*types.Transaction, error)
SetMaxPoolTokens is a paid mutator transaction binding the contract method 0x51531cce.
Solidity: function setMaxPoolTokens(address poolAddress, uint256 maxPoolTokens) returns()
func (*McapscontrollerSession) SetSwapFee ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) TransferOwnership ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) UpdateCategoryPrices ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) UpdateMinimumBalance ¶
func (_Mcapscontroller *McapscontrollerSession) 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 (*McapscontrollerSession) UpdateSellerPremium ¶
func (_Mcapscontroller *McapscontrollerSession) 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 McapscontrollerTokenAdded ¶
type McapscontrollerTokenAdded struct { Token common.Address CategoryID *big.Int Raw types.Log // Blockchain specific contextual infos }
McapscontrollerTokenAdded represents a TokenAdded event raised by the Mcapscontroller contract.
type McapscontrollerTokenAddedIterator ¶
type McapscontrollerTokenAddedIterator struct { Event *McapscontrollerTokenAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
McapscontrollerTokenAddedIterator is returned from FilterTokenAdded and is used to iterate over the raw logs and unpacked data for TokenAdded events raised by the Mcapscontroller contract.
func (*McapscontrollerTokenAddedIterator) Close ¶
func (it *McapscontrollerTokenAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*McapscontrollerTokenAddedIterator) Error ¶
func (it *McapscontrollerTokenAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*McapscontrollerTokenAddedIterator) Next ¶
func (it *McapscontrollerTokenAddedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type McapscontrollerTokenRemoved ¶
type McapscontrollerTokenRemoved struct { Token common.Address CategoryID *big.Int Raw types.Log // Blockchain specific contextual infos }
McapscontrollerTokenRemoved represents a TokenRemoved event raised by the Mcapscontroller contract.
type McapscontrollerTokenRemovedIterator ¶
type McapscontrollerTokenRemovedIterator struct { Event *McapscontrollerTokenRemoved // Event containing the contract specifics and raw log // contains filtered or unexported fields }
McapscontrollerTokenRemovedIterator is returned from FilterTokenRemoved and is used to iterate over the raw logs and unpacked data for TokenRemoved events raised by the Mcapscontroller contract.
func (*McapscontrollerTokenRemovedIterator) Close ¶
func (it *McapscontrollerTokenRemovedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*McapscontrollerTokenRemovedIterator) Error ¶
func (it *McapscontrollerTokenRemovedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*McapscontrollerTokenRemovedIterator) Next ¶
func (it *McapscontrollerTokenRemovedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type McapscontrollerTransactor ¶
type McapscontrollerTransactor struct {
// contains filtered or unexported fields
}
McapscontrollerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewMcapscontrollerTransactor ¶
func NewMcapscontrollerTransactor(address common.Address, transactor bind.ContractTransactor) (*McapscontrollerTransactor, error)
NewMcapscontrollerTransactor creates a new write-only instance of Mcapscontroller, bound to a specific deployed contract.
func (*McapscontrollerTransactor) AddToken ¶
func (_Mcapscontroller *McapscontrollerTransactor) 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 (*McapscontrollerTransactor) AddTokens ¶
func (_Mcapscontroller *McapscontrollerTransactor) 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 (*McapscontrollerTransactor) CreateCategory ¶
func (_Mcapscontroller *McapscontrollerTransactor) CreateCategory(opts *bind.TransactOpts, metadataHash [32]byte) (*types.Transaction, error)
CreateCategory is a paid mutator transaction binding the contract method 0x6696bf11.
Solidity: function createCategory(bytes32 metadataHash) returns()
func (*McapscontrollerTransactor) FinishPreparedIndexPool ¶
func (_Mcapscontroller *McapscontrollerTransactor) 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 (*McapscontrollerTransactor) Initialize ¶
func (_Mcapscontroller *McapscontrollerTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
Solidity: function initialize() returns()
func (*McapscontrollerTransactor) OrderCategoryTokensByMarketCap ¶
func (_Mcapscontroller *McapscontrollerTransactor) OrderCategoryTokensByMarketCap(opts *bind.TransactOpts, categoryID *big.Int) (*types.Transaction, error)
OrderCategoryTokensByMarketCap is a paid mutator transaction binding the contract method 0xb25f86f9.
Solidity: function orderCategoryTokensByMarketCap(uint256 categoryID) returns()
func (*McapscontrollerTransactor) PrepareIndexPool ¶
func (_Mcapscontroller *McapscontrollerTransactor) PrepareIndexPool(opts *bind.TransactOpts, categoryID *big.Int, indexSize *big.Int, initialWethValue *big.Int, name string, symbol string) (*types.Transaction, error)
PrepareIndexPool is a paid mutator transaction binding the contract method 0x74a58783.
Solidity: function prepareIndexPool(uint256 categoryID, uint256 indexSize, uint256 initialWethValue, string name, string symbol) returns(address poolAddress, address initializerAddress)
func (*McapscontrollerTransactor) ReindexPool ¶
func (_Mcapscontroller *McapscontrollerTransactor) 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 (*McapscontrollerTransactor) RemoveToken ¶
func (_Mcapscontroller *McapscontrollerTransactor) 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 (*McapscontrollerTransactor) RenounceOwnership ¶
func (_Mcapscontroller *McapscontrollerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*McapscontrollerTransactor) ReweighPool ¶
func (_Mcapscontroller *McapscontrollerTransactor) 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 (*McapscontrollerTransactor) SetDefaultSellerPremium ¶
func (_Mcapscontroller *McapscontrollerTransactor) 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 (*McapscontrollerTransactor) SetMaxPoolTokens ¶
func (_Mcapscontroller *McapscontrollerTransactor) SetMaxPoolTokens(opts *bind.TransactOpts, poolAddress common.Address, maxPoolTokens *big.Int) (*types.Transaction, error)
SetMaxPoolTokens is a paid mutator transaction binding the contract method 0x51531cce.
Solidity: function setMaxPoolTokens(address poolAddress, uint256 maxPoolTokens) returns()
func (*McapscontrollerTransactor) SetSwapFee ¶
func (_Mcapscontroller *McapscontrollerTransactor) 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 (*McapscontrollerTransactor) TransferOwnership ¶
func (_Mcapscontroller *McapscontrollerTransactor) 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 (*McapscontrollerTransactor) UpdateCategoryPrices ¶
func (_Mcapscontroller *McapscontrollerTransactor) 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 (*McapscontrollerTransactor) UpdateMinimumBalance ¶
func (_Mcapscontroller *McapscontrollerTransactor) 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 (*McapscontrollerTransactor) UpdateSellerPremium ¶
func (_Mcapscontroller *McapscontrollerTransactor) 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 McapscontrollerTransactorRaw ¶
type McapscontrollerTransactorRaw struct {
Contract *McapscontrollerTransactor // Generic write-only contract binding to access the raw methods on
}
McapscontrollerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*McapscontrollerTransactorRaw) Transact ¶
func (_Mcapscontroller *McapscontrollerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*McapscontrollerTransactorRaw) Transfer ¶
func (_Mcapscontroller *McapscontrollerTransactorRaw) 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 McapscontrollerTransactorSession ¶
type McapscontrollerTransactorSession struct { Contract *McapscontrollerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
McapscontrollerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*McapscontrollerTransactorSession) AddToken ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) 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 (*McapscontrollerTransactorSession) AddTokens ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) 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 (*McapscontrollerTransactorSession) CreateCategory ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) CreateCategory(metadataHash [32]byte) (*types.Transaction, error)
CreateCategory is a paid mutator transaction binding the contract method 0x6696bf11.
Solidity: function createCategory(bytes32 metadataHash) returns()
func (*McapscontrollerTransactorSession) FinishPreparedIndexPool ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) 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 (*McapscontrollerTransactorSession) Initialize ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) Initialize() (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
Solidity: function initialize() returns()
func (*McapscontrollerTransactorSession) OrderCategoryTokensByMarketCap ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) OrderCategoryTokensByMarketCap(categoryID *big.Int) (*types.Transaction, error)
OrderCategoryTokensByMarketCap is a paid mutator transaction binding the contract method 0xb25f86f9.
Solidity: function orderCategoryTokensByMarketCap(uint256 categoryID) returns()
func (*McapscontrollerTransactorSession) PrepareIndexPool ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) PrepareIndexPool(categoryID *big.Int, indexSize *big.Int, initialWethValue *big.Int, name string, symbol string) (*types.Transaction, error)
PrepareIndexPool is a paid mutator transaction binding the contract method 0x74a58783.
Solidity: function prepareIndexPool(uint256 categoryID, uint256 indexSize, uint256 initialWethValue, string name, string symbol) returns(address poolAddress, address initializerAddress)
func (*McapscontrollerTransactorSession) ReindexPool ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) 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 (*McapscontrollerTransactorSession) RemoveToken ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) 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 (*McapscontrollerTransactorSession) RenounceOwnership ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*McapscontrollerTransactorSession) ReweighPool ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) 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 (*McapscontrollerTransactorSession) SetDefaultSellerPremium ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) SetDefaultSellerPremium(_defaultSellerPremium uint8) (*types.Transaction, error)
SetDefaultSellerPremium is a paid mutator transaction binding the contract method 0xdf8e238a.
Solidity: function setDefaultSellerPremium(uint8 _defaultSellerPremium) returns()
func (*McapscontrollerTransactorSession) SetMaxPoolTokens ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) SetMaxPoolTokens(poolAddress common.Address, maxPoolTokens *big.Int) (*types.Transaction, error)
SetMaxPoolTokens is a paid mutator transaction binding the contract method 0x51531cce.
Solidity: function setMaxPoolTokens(address poolAddress, uint256 maxPoolTokens) returns()
func (*McapscontrollerTransactorSession) SetSwapFee ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) 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 (*McapscontrollerTransactorSession) TransferOwnership ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) 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 (*McapscontrollerTransactorSession) UpdateCategoryPrices ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) 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 (*McapscontrollerTransactorSession) UpdateMinimumBalance ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) 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 (*McapscontrollerTransactorSession) UpdateSellerPremium ¶
func (_Mcapscontroller *McapscontrollerTransactorSession) 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()