convex

package
v0.0.0-...-bd3dd7f Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConvexABI = ConvexMetaData.ABI

ConvexABI is the input ABI used to generate the binding from. Deprecated: Use ConvexMetaData.ABI instead.

View Source
var ConvexMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"poolid\",\"type\":\"uint256\"}],\"name\":\"AddUserVault\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OperatorChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"poolid\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"stakingAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"stakingToken\",\"type\":\"address\"}],\"name\":\"PoolCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"poolid\",\"type\":\"uint256\"}],\"name\":\"PoolDeactivated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"value\",\"type\":\"bool\"}],\"name\":\"RewardActiveOnCreationChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"RewardImplementationChanged\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_implementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_stakingAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_stakingToken\",\"type\":\"address\"}],\"name\":\"addPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"addUserVault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"vault\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stakingAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stakingToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"rewards\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"createNewPoolRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"deactivatePool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"operator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"poolInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stakingAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stakingToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"rewardsAddress\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"active\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"poolVaultLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"poolVaultList\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxyFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardsStartActive\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_op\",\"type\":\"address\"}],\"name\":\"setOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_active\",\"type\":\"bool\"}],\"name\":\"setRewardActiveOnCreation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_imp\",\"type\":\"address\"}],\"name\":\"setRewardImplementation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"vaultMap\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ConvexMetaData contains all meta data concerning the Convex contract.

Functions

This section is empty.

Types

type Convex

type Convex struct {
	ConvexCaller     // Read-only binding to the contract
	ConvexTransactor // Write-only binding to the contract
	ConvexFilterer   // Log filterer for contract events
}

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

func NewConvex

func NewConvex(address common.Address, backend bind.ContractBackend) (*Convex, error)

NewConvex creates a new instance of Convex, bound to a specific deployed contract.

type ConvexAddUserVault

type ConvexAddUserVault struct {
	User   common.Address
	Poolid *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

ConvexAddUserVault represents a AddUserVault event raised by the Convex contract.

type ConvexAddUserVaultIterator

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

ConvexAddUserVaultIterator is returned from FilterAddUserVault and is used to iterate over the raw logs and unpacked data for AddUserVault events raised by the Convex contract.

func (*ConvexAddUserVaultIterator) Close

func (it *ConvexAddUserVaultIterator) Close() error

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

func (*ConvexAddUserVaultIterator) Error

func (it *ConvexAddUserVaultIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConvexAddUserVaultIterator) Next

func (it *ConvexAddUserVaultIterator) 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 ConvexCaller

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

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

func NewConvexCaller

func NewConvexCaller(address common.Address, caller bind.ContractCaller) (*ConvexCaller, error)

NewConvexCaller creates a new read-only instance of Convex, bound to a specific deployed contract.

func (*ConvexCaller) Operator

func (_Convex *ConvexCaller) Operator(opts *bind.CallOpts) (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*ConvexCaller) Owner

func (_Convex *ConvexCaller) 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 (*ConvexCaller) PoolInfo

func (_Convex *ConvexCaller) PoolInfo(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Implementation common.Address
	StakingAddress common.Address
	StakingToken   common.Address
	RewardsAddress common.Address
	Active         uint8
}, error)

PoolInfo is a free data retrieval call binding the contract method 0x1526fe27.

Solidity: function poolInfo(uint256 ) view returns(address implementation, address stakingAddress, address stakingToken, address rewardsAddress, uint8 active)

func (*ConvexCaller) PoolLength

func (_Convex *ConvexCaller) PoolLength(opts *bind.CallOpts) (*big.Int, error)

PoolLength is a free data retrieval call binding the contract method 0x081e3eda.

Solidity: function poolLength() view returns(uint256)

func (*ConvexCaller) PoolVaultLength

func (_Convex *ConvexCaller) PoolVaultLength(opts *bind.CallOpts, _pid *big.Int) (*big.Int, error)

PoolVaultLength is a free data retrieval call binding the contract method 0x8b47168a.

Solidity: function poolVaultLength(uint256 _pid) view returns(uint256)

func (*ConvexCaller) PoolVaultList

func (_Convex *ConvexCaller) PoolVaultList(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (common.Address, error)

PoolVaultList is a free data retrieval call binding the contract method 0xafe2b66d.

Solidity: function poolVaultList(uint256 , uint256 ) view returns(address)

func (*ConvexCaller) ProxyFactory

func (_Convex *ConvexCaller) ProxyFactory(opts *bind.CallOpts) (common.Address, error)

ProxyFactory is a free data retrieval call binding the contract method 0xc10f1a75.

Solidity: function proxyFactory() view returns(address)

func (*ConvexCaller) RewardImplementation

func (_Convex *ConvexCaller) RewardImplementation(opts *bind.CallOpts) (common.Address, error)

RewardImplementation is a free data retrieval call binding the contract method 0xddc72f94.

Solidity: function rewardImplementation() view returns(address)

func (*ConvexCaller) RewardsStartActive

func (_Convex *ConvexCaller) RewardsStartActive(opts *bind.CallOpts) (bool, error)

RewardsStartActive is a free data retrieval call binding the contract method 0x51cecf77.

Solidity: function rewardsStartActive() view returns(bool)

func (*ConvexCaller) VaultMap

func (_Convex *ConvexCaller) VaultMap(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (common.Address, error)

VaultMap is a free data retrieval call binding the contract method 0xbfff576f.

Solidity: function vaultMap(uint256 , address ) view returns(address)

type ConvexCallerRaw

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

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

func (*ConvexCallerRaw) Call

func (_Convex *ConvexCallerRaw) 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 ConvexCallerSession

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

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

func (*ConvexCallerSession) Operator

func (_Convex *ConvexCallerSession) Operator() (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*ConvexCallerSession) Owner

func (_Convex *ConvexCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ConvexCallerSession) PoolInfo

func (_Convex *ConvexCallerSession) PoolInfo(arg0 *big.Int) (struct {
	Implementation common.Address
	StakingAddress common.Address
	StakingToken   common.Address
	RewardsAddress common.Address
	Active         uint8
}, error)

PoolInfo is a free data retrieval call binding the contract method 0x1526fe27.

Solidity: function poolInfo(uint256 ) view returns(address implementation, address stakingAddress, address stakingToken, address rewardsAddress, uint8 active)

func (*ConvexCallerSession) PoolLength

func (_Convex *ConvexCallerSession) PoolLength() (*big.Int, error)

PoolLength is a free data retrieval call binding the contract method 0x081e3eda.

Solidity: function poolLength() view returns(uint256)

func (*ConvexCallerSession) PoolVaultLength

func (_Convex *ConvexCallerSession) PoolVaultLength(_pid *big.Int) (*big.Int, error)

PoolVaultLength is a free data retrieval call binding the contract method 0x8b47168a.

Solidity: function poolVaultLength(uint256 _pid) view returns(uint256)

func (*ConvexCallerSession) PoolVaultList

func (_Convex *ConvexCallerSession) PoolVaultList(arg0 *big.Int, arg1 *big.Int) (common.Address, error)

PoolVaultList is a free data retrieval call binding the contract method 0xafe2b66d.

Solidity: function poolVaultList(uint256 , uint256 ) view returns(address)

func (*ConvexCallerSession) ProxyFactory

func (_Convex *ConvexCallerSession) ProxyFactory() (common.Address, error)

ProxyFactory is a free data retrieval call binding the contract method 0xc10f1a75.

Solidity: function proxyFactory() view returns(address)

func (*ConvexCallerSession) RewardImplementation

func (_Convex *ConvexCallerSession) RewardImplementation() (common.Address, error)

RewardImplementation is a free data retrieval call binding the contract method 0xddc72f94.

Solidity: function rewardImplementation() view returns(address)

func (*ConvexCallerSession) RewardsStartActive

func (_Convex *ConvexCallerSession) RewardsStartActive() (bool, error)

RewardsStartActive is a free data retrieval call binding the contract method 0x51cecf77.

Solidity: function rewardsStartActive() view returns(bool)

func (*ConvexCallerSession) VaultMap

func (_Convex *ConvexCallerSession) VaultMap(arg0 *big.Int, arg1 common.Address) (common.Address, error)

VaultMap is a free data retrieval call binding the contract method 0xbfff576f.

Solidity: function vaultMap(uint256 , address ) view returns(address)

type ConvexFilterer

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

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

func NewConvexFilterer

func NewConvexFilterer(address common.Address, filterer bind.ContractFilterer) (*ConvexFilterer, error)

NewConvexFilterer creates a new log filterer instance of Convex, bound to a specific deployed contract.

func (*ConvexFilterer) FilterAddUserVault

func (_Convex *ConvexFilterer) FilterAddUserVault(opts *bind.FilterOpts, user []common.Address, poolid []*big.Int) (*ConvexAddUserVaultIterator, error)

FilterAddUserVault is a free log retrieval operation binding the contract event 0xc3a719ac2c66bb292413ff9bb5cc91f486266e1b70bf1b394f666fc761ec64a3.

Solidity: event AddUserVault(address indexed user, uint256 indexed poolid)

func (*ConvexFilterer) FilterOperatorChanged

func (_Convex *ConvexFilterer) FilterOperatorChanged(opts *bind.FilterOpts, account []common.Address) (*ConvexOperatorChangedIterator, error)

FilterOperatorChanged is a free log retrieval operation binding the contract event 0x4721129e0e676ed6a92909bb24e853ccdd63ad72280cc2e974e38e480e0e6e54.

Solidity: event OperatorChanged(address indexed account)

func (*ConvexFilterer) FilterPoolCreated

func (_Convex *ConvexFilterer) FilterPoolCreated(opts *bind.FilterOpts, poolid []*big.Int, implementation []common.Address) (*ConvexPoolCreatedIterator, error)

FilterPoolCreated is a free log retrieval operation binding the contract event 0x070da9921e58d11c5e49283ff7930c3c05239838f04b056bb98b767be6955879.

Solidity: event PoolCreated(uint256 indexed poolid, address indexed implementation, address stakingAddress, address stakingToken)

func (*ConvexFilterer) FilterPoolDeactivated

func (_Convex *ConvexFilterer) FilterPoolDeactivated(opts *bind.FilterOpts, poolid []*big.Int) (*ConvexPoolDeactivatedIterator, error)

FilterPoolDeactivated is a free log retrieval operation binding the contract event 0xf924dd04accfc1837d0eeddb10bc7732e2057f5d916c0b5a21e8372393b244a2.

Solidity: event PoolDeactivated(uint256 indexed poolid)

func (*ConvexFilterer) FilterRewardActiveOnCreationChanged

func (_Convex *ConvexFilterer) FilterRewardActiveOnCreationChanged(opts *bind.FilterOpts) (*ConvexRewardActiveOnCreationChangedIterator, error)

FilterRewardActiveOnCreationChanged is a free log retrieval operation binding the contract event 0x7466d7918c00b6a6e62641ace256dadfc65e824de0a0d0740eda888901c2b63b.

Solidity: event RewardActiveOnCreationChanged(bool value)

func (*ConvexFilterer) FilterRewardImplementationChanged

func (_Convex *ConvexFilterer) FilterRewardImplementationChanged(opts *bind.FilterOpts, implementation []common.Address) (*ConvexRewardImplementationChangedIterator, error)

FilterRewardImplementationChanged is a free log retrieval operation binding the contract event 0xfbeb0fbc478d221bbef0241e46aa78721db7379c47cc2dddf9fc562ac071486c.

Solidity: event RewardImplementationChanged(address indexed implementation)

func (*ConvexFilterer) ParseAddUserVault

func (_Convex *ConvexFilterer) ParseAddUserVault(log types.Log) (*ConvexAddUserVault, error)

ParseAddUserVault is a log parse operation binding the contract event 0xc3a719ac2c66bb292413ff9bb5cc91f486266e1b70bf1b394f666fc761ec64a3.

Solidity: event AddUserVault(address indexed user, uint256 indexed poolid)

func (*ConvexFilterer) ParseOperatorChanged

func (_Convex *ConvexFilterer) ParseOperatorChanged(log types.Log) (*ConvexOperatorChanged, error)

ParseOperatorChanged is a log parse operation binding the contract event 0x4721129e0e676ed6a92909bb24e853ccdd63ad72280cc2e974e38e480e0e6e54.

Solidity: event OperatorChanged(address indexed account)

func (*ConvexFilterer) ParsePoolCreated

func (_Convex *ConvexFilterer) ParsePoolCreated(log types.Log) (*ConvexPoolCreated, error)

ParsePoolCreated is a log parse operation binding the contract event 0x070da9921e58d11c5e49283ff7930c3c05239838f04b056bb98b767be6955879.

Solidity: event PoolCreated(uint256 indexed poolid, address indexed implementation, address stakingAddress, address stakingToken)

func (*ConvexFilterer) ParsePoolDeactivated

func (_Convex *ConvexFilterer) ParsePoolDeactivated(log types.Log) (*ConvexPoolDeactivated, error)

ParsePoolDeactivated is a log parse operation binding the contract event 0xf924dd04accfc1837d0eeddb10bc7732e2057f5d916c0b5a21e8372393b244a2.

Solidity: event PoolDeactivated(uint256 indexed poolid)

func (*ConvexFilterer) ParseRewardActiveOnCreationChanged

func (_Convex *ConvexFilterer) ParseRewardActiveOnCreationChanged(log types.Log) (*ConvexRewardActiveOnCreationChanged, error)

ParseRewardActiveOnCreationChanged is a log parse operation binding the contract event 0x7466d7918c00b6a6e62641ace256dadfc65e824de0a0d0740eda888901c2b63b.

Solidity: event RewardActiveOnCreationChanged(bool value)

func (*ConvexFilterer) ParseRewardImplementationChanged

func (_Convex *ConvexFilterer) ParseRewardImplementationChanged(log types.Log) (*ConvexRewardImplementationChanged, error)

ParseRewardImplementationChanged is a log parse operation binding the contract event 0xfbeb0fbc478d221bbef0241e46aa78721db7379c47cc2dddf9fc562ac071486c.

Solidity: event RewardImplementationChanged(address indexed implementation)

func (*ConvexFilterer) WatchAddUserVault

func (_Convex *ConvexFilterer) WatchAddUserVault(opts *bind.WatchOpts, sink chan<- *ConvexAddUserVault, user []common.Address, poolid []*big.Int) (event.Subscription, error)

WatchAddUserVault is a free log subscription operation binding the contract event 0xc3a719ac2c66bb292413ff9bb5cc91f486266e1b70bf1b394f666fc761ec64a3.

Solidity: event AddUserVault(address indexed user, uint256 indexed poolid)

func (*ConvexFilterer) WatchOperatorChanged

func (_Convex *ConvexFilterer) WatchOperatorChanged(opts *bind.WatchOpts, sink chan<- *ConvexOperatorChanged, account []common.Address) (event.Subscription, error)

WatchOperatorChanged is a free log subscription operation binding the contract event 0x4721129e0e676ed6a92909bb24e853ccdd63ad72280cc2e974e38e480e0e6e54.

Solidity: event OperatorChanged(address indexed account)

func (*ConvexFilterer) WatchPoolCreated

func (_Convex *ConvexFilterer) WatchPoolCreated(opts *bind.WatchOpts, sink chan<- *ConvexPoolCreated, poolid []*big.Int, implementation []common.Address) (event.Subscription, error)

WatchPoolCreated is a free log subscription operation binding the contract event 0x070da9921e58d11c5e49283ff7930c3c05239838f04b056bb98b767be6955879.

Solidity: event PoolCreated(uint256 indexed poolid, address indexed implementation, address stakingAddress, address stakingToken)

func (*ConvexFilterer) WatchPoolDeactivated

func (_Convex *ConvexFilterer) WatchPoolDeactivated(opts *bind.WatchOpts, sink chan<- *ConvexPoolDeactivated, poolid []*big.Int) (event.Subscription, error)

WatchPoolDeactivated is a free log subscription operation binding the contract event 0xf924dd04accfc1837d0eeddb10bc7732e2057f5d916c0b5a21e8372393b244a2.

Solidity: event PoolDeactivated(uint256 indexed poolid)

func (*ConvexFilterer) WatchRewardActiveOnCreationChanged

func (_Convex *ConvexFilterer) WatchRewardActiveOnCreationChanged(opts *bind.WatchOpts, sink chan<- *ConvexRewardActiveOnCreationChanged) (event.Subscription, error)

WatchRewardActiveOnCreationChanged is a free log subscription operation binding the contract event 0x7466d7918c00b6a6e62641ace256dadfc65e824de0a0d0740eda888901c2b63b.

Solidity: event RewardActiveOnCreationChanged(bool value)

func (*ConvexFilterer) WatchRewardImplementationChanged

func (_Convex *ConvexFilterer) WatchRewardImplementationChanged(opts *bind.WatchOpts, sink chan<- *ConvexRewardImplementationChanged, implementation []common.Address) (event.Subscription, error)

WatchRewardImplementationChanged is a free log subscription operation binding the contract event 0xfbeb0fbc478d221bbef0241e46aa78721db7379c47cc2dddf9fc562ac071486c.

Solidity: event RewardImplementationChanged(address indexed implementation)

type ConvexOperatorChanged

type ConvexOperatorChanged struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

ConvexOperatorChanged represents a OperatorChanged event raised by the Convex contract.

type ConvexOperatorChangedIterator

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

ConvexOperatorChangedIterator is returned from FilterOperatorChanged and is used to iterate over the raw logs and unpacked data for OperatorChanged events raised by the Convex contract.

func (*ConvexOperatorChangedIterator) Close

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

func (*ConvexOperatorChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConvexOperatorChangedIterator) 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 ConvexPoolCreated

type ConvexPoolCreated struct {
	Poolid         *big.Int
	Implementation common.Address
	StakingAddress common.Address
	StakingToken   common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

ConvexPoolCreated represents a PoolCreated event raised by the Convex contract.

type ConvexPoolCreatedIterator

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

ConvexPoolCreatedIterator is returned from FilterPoolCreated and is used to iterate over the raw logs and unpacked data for PoolCreated events raised by the Convex contract.

func (*ConvexPoolCreatedIterator) Close

func (it *ConvexPoolCreatedIterator) Close() error

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

func (*ConvexPoolCreatedIterator) Error

func (it *ConvexPoolCreatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConvexPoolCreatedIterator) Next

func (it *ConvexPoolCreatedIterator) 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 ConvexPoolDeactivated

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

ConvexPoolDeactivated represents a PoolDeactivated event raised by the Convex contract.

type ConvexPoolDeactivatedIterator

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

ConvexPoolDeactivatedIterator is returned from FilterPoolDeactivated and is used to iterate over the raw logs and unpacked data for PoolDeactivated events raised by the Convex contract.

func (*ConvexPoolDeactivatedIterator) Close

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

func (*ConvexPoolDeactivatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConvexPoolDeactivatedIterator) 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 ConvexRaw

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

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

func (*ConvexRaw) Call

func (_Convex *ConvexRaw) 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 (*ConvexRaw) Transact

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

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

func (*ConvexRaw) Transfer

func (_Convex *ConvexRaw) 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 ConvexRewardActiveOnCreationChanged

type ConvexRewardActiveOnCreationChanged struct {
	Value bool
	Raw   types.Log // Blockchain specific contextual infos
}

ConvexRewardActiveOnCreationChanged represents a RewardActiveOnCreationChanged event raised by the Convex contract.

type ConvexRewardActiveOnCreationChangedIterator

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

ConvexRewardActiveOnCreationChangedIterator is returned from FilterRewardActiveOnCreationChanged and is used to iterate over the raw logs and unpacked data for RewardActiveOnCreationChanged events raised by the Convex contract.

func (*ConvexRewardActiveOnCreationChangedIterator) Close

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

func (*ConvexRewardActiveOnCreationChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConvexRewardActiveOnCreationChangedIterator) 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 ConvexRewardImplementationChanged

type ConvexRewardImplementationChanged struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

ConvexRewardImplementationChanged represents a RewardImplementationChanged event raised by the Convex contract.

type ConvexRewardImplementationChangedIterator

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

ConvexRewardImplementationChangedIterator is returned from FilterRewardImplementationChanged and is used to iterate over the raw logs and unpacked data for RewardImplementationChanged events raised by the Convex contract.

func (*ConvexRewardImplementationChangedIterator) Close

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

func (*ConvexRewardImplementationChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConvexRewardImplementationChangedIterator) 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 ConvexSession

type ConvexSession struct {
	Contract     *Convex           // 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
}

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

func (*ConvexSession) AddPool

func (_Convex *ConvexSession) AddPool(_implementation common.Address, _stakingAddress common.Address, _stakingToken common.Address) (*types.Transaction, error)

AddPool is a paid mutator transaction binding the contract method 0xaba65098.

Solidity: function addPool(address _implementation, address _stakingAddress, address _stakingToken) returns()

func (*ConvexSession) AddUserVault

func (_Convex *ConvexSession) AddUserVault(_pid *big.Int, _user common.Address) (*types.Transaction, error)

AddUserVault is a paid mutator transaction binding the contract method 0xf2bc788b.

Solidity: function addUserVault(uint256 _pid, address _user) returns(address vault, address stakingAddress, address stakingToken, address rewards)

func (*ConvexSession) CreateNewPoolRewards

func (_Convex *ConvexSession) CreateNewPoolRewards(_pid *big.Int) (*types.Transaction, error)

CreateNewPoolRewards is a paid mutator transaction binding the contract method 0xe57197cf.

Solidity: function createNewPoolRewards(uint256 _pid) returns()

func (*ConvexSession) DeactivatePool

func (_Convex *ConvexSession) DeactivatePool(_pid *big.Int) (*types.Transaction, error)

DeactivatePool is a paid mutator transaction binding the contract method 0x9abd9b05.

Solidity: function deactivatePool(uint256 _pid) returns()

func (*ConvexSession) Operator

func (_Convex *ConvexSession) Operator() (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*ConvexSession) Owner

func (_Convex *ConvexSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ConvexSession) PoolInfo

func (_Convex *ConvexSession) PoolInfo(arg0 *big.Int) (struct {
	Implementation common.Address
	StakingAddress common.Address
	StakingToken   common.Address
	RewardsAddress common.Address
	Active         uint8
}, error)

PoolInfo is a free data retrieval call binding the contract method 0x1526fe27.

Solidity: function poolInfo(uint256 ) view returns(address implementation, address stakingAddress, address stakingToken, address rewardsAddress, uint8 active)

func (*ConvexSession) PoolLength

func (_Convex *ConvexSession) PoolLength() (*big.Int, error)

PoolLength is a free data retrieval call binding the contract method 0x081e3eda.

Solidity: function poolLength() view returns(uint256)

func (*ConvexSession) PoolVaultLength

func (_Convex *ConvexSession) PoolVaultLength(_pid *big.Int) (*big.Int, error)

PoolVaultLength is a free data retrieval call binding the contract method 0x8b47168a.

Solidity: function poolVaultLength(uint256 _pid) view returns(uint256)

func (*ConvexSession) PoolVaultList

func (_Convex *ConvexSession) PoolVaultList(arg0 *big.Int, arg1 *big.Int) (common.Address, error)

PoolVaultList is a free data retrieval call binding the contract method 0xafe2b66d.

Solidity: function poolVaultList(uint256 , uint256 ) view returns(address)

func (*ConvexSession) ProxyFactory

func (_Convex *ConvexSession) ProxyFactory() (common.Address, error)

ProxyFactory is a free data retrieval call binding the contract method 0xc10f1a75.

Solidity: function proxyFactory() view returns(address)

func (*ConvexSession) RewardImplementation

func (_Convex *ConvexSession) RewardImplementation() (common.Address, error)

RewardImplementation is a free data retrieval call binding the contract method 0xddc72f94.

Solidity: function rewardImplementation() view returns(address)

func (*ConvexSession) RewardsStartActive

func (_Convex *ConvexSession) RewardsStartActive() (bool, error)

RewardsStartActive is a free data retrieval call binding the contract method 0x51cecf77.

Solidity: function rewardsStartActive() view returns(bool)

func (*ConvexSession) SetOperator

func (_Convex *ConvexSession) SetOperator(_op common.Address) (*types.Transaction, error)

SetOperator is a paid mutator transaction binding the contract method 0xb3ab15fb.

Solidity: function setOperator(address _op) returns()

func (*ConvexSession) SetRewardActiveOnCreation

func (_Convex *ConvexSession) SetRewardActiveOnCreation(_active bool) (*types.Transaction, error)

SetRewardActiveOnCreation is a paid mutator transaction binding the contract method 0x3fd46786.

Solidity: function setRewardActiveOnCreation(bool _active) returns()

func (*ConvexSession) SetRewardImplementation

func (_Convex *ConvexSession) SetRewardImplementation(_imp common.Address) (*types.Transaction, error)

SetRewardImplementation is a paid mutator transaction binding the contract method 0xfa58ee02.

Solidity: function setRewardImplementation(address _imp) returns()

func (*ConvexSession) VaultMap

func (_Convex *ConvexSession) VaultMap(arg0 *big.Int, arg1 common.Address) (common.Address, error)

VaultMap is a free data retrieval call binding the contract method 0xbfff576f.

Solidity: function vaultMap(uint256 , address ) view returns(address)

type ConvexTransactor

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

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

func NewConvexTransactor

func NewConvexTransactor(address common.Address, transactor bind.ContractTransactor) (*ConvexTransactor, error)

NewConvexTransactor creates a new write-only instance of Convex, bound to a specific deployed contract.

func (*ConvexTransactor) AddPool

func (_Convex *ConvexTransactor) AddPool(opts *bind.TransactOpts, _implementation common.Address, _stakingAddress common.Address, _stakingToken common.Address) (*types.Transaction, error)

AddPool is a paid mutator transaction binding the contract method 0xaba65098.

Solidity: function addPool(address _implementation, address _stakingAddress, address _stakingToken) returns()

func (*ConvexTransactor) AddUserVault

func (_Convex *ConvexTransactor) AddUserVault(opts *bind.TransactOpts, _pid *big.Int, _user common.Address) (*types.Transaction, error)

AddUserVault is a paid mutator transaction binding the contract method 0xf2bc788b.

Solidity: function addUserVault(uint256 _pid, address _user) returns(address vault, address stakingAddress, address stakingToken, address rewards)

func (*ConvexTransactor) CreateNewPoolRewards

func (_Convex *ConvexTransactor) CreateNewPoolRewards(opts *bind.TransactOpts, _pid *big.Int) (*types.Transaction, error)

CreateNewPoolRewards is a paid mutator transaction binding the contract method 0xe57197cf.

Solidity: function createNewPoolRewards(uint256 _pid) returns()

func (*ConvexTransactor) DeactivatePool

func (_Convex *ConvexTransactor) DeactivatePool(opts *bind.TransactOpts, _pid *big.Int) (*types.Transaction, error)

DeactivatePool is a paid mutator transaction binding the contract method 0x9abd9b05.

Solidity: function deactivatePool(uint256 _pid) returns()

func (*ConvexTransactor) SetOperator

func (_Convex *ConvexTransactor) SetOperator(opts *bind.TransactOpts, _op common.Address) (*types.Transaction, error)

SetOperator is a paid mutator transaction binding the contract method 0xb3ab15fb.

Solidity: function setOperator(address _op) returns()

func (*ConvexTransactor) SetRewardActiveOnCreation

func (_Convex *ConvexTransactor) SetRewardActiveOnCreation(opts *bind.TransactOpts, _active bool) (*types.Transaction, error)

SetRewardActiveOnCreation is a paid mutator transaction binding the contract method 0x3fd46786.

Solidity: function setRewardActiveOnCreation(bool _active) returns()

func (*ConvexTransactor) SetRewardImplementation

func (_Convex *ConvexTransactor) SetRewardImplementation(opts *bind.TransactOpts, _imp common.Address) (*types.Transaction, error)

SetRewardImplementation is a paid mutator transaction binding the contract method 0xfa58ee02.

Solidity: function setRewardImplementation(address _imp) returns()

type ConvexTransactorRaw

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

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

func (*ConvexTransactorRaw) Transact

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

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

func (*ConvexTransactorRaw) Transfer

func (_Convex *ConvexTransactorRaw) 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 ConvexTransactorSession

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

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

func (*ConvexTransactorSession) AddPool

func (_Convex *ConvexTransactorSession) AddPool(_implementation common.Address, _stakingAddress common.Address, _stakingToken common.Address) (*types.Transaction, error)

AddPool is a paid mutator transaction binding the contract method 0xaba65098.

Solidity: function addPool(address _implementation, address _stakingAddress, address _stakingToken) returns()

func (*ConvexTransactorSession) AddUserVault

func (_Convex *ConvexTransactorSession) AddUserVault(_pid *big.Int, _user common.Address) (*types.Transaction, error)

AddUserVault is a paid mutator transaction binding the contract method 0xf2bc788b.

Solidity: function addUserVault(uint256 _pid, address _user) returns(address vault, address stakingAddress, address stakingToken, address rewards)

func (*ConvexTransactorSession) CreateNewPoolRewards

func (_Convex *ConvexTransactorSession) CreateNewPoolRewards(_pid *big.Int) (*types.Transaction, error)

CreateNewPoolRewards is a paid mutator transaction binding the contract method 0xe57197cf.

Solidity: function createNewPoolRewards(uint256 _pid) returns()

func (*ConvexTransactorSession) DeactivatePool

func (_Convex *ConvexTransactorSession) DeactivatePool(_pid *big.Int) (*types.Transaction, error)

DeactivatePool is a paid mutator transaction binding the contract method 0x9abd9b05.

Solidity: function deactivatePool(uint256 _pid) returns()

func (*ConvexTransactorSession) SetOperator

func (_Convex *ConvexTransactorSession) SetOperator(_op common.Address) (*types.Transaction, error)

SetOperator is a paid mutator transaction binding the contract method 0xb3ab15fb.

Solidity: function setOperator(address _op) returns()

func (*ConvexTransactorSession) SetRewardActiveOnCreation

func (_Convex *ConvexTransactorSession) SetRewardActiveOnCreation(_active bool) (*types.Transaction, error)

SetRewardActiveOnCreation is a paid mutator transaction binding the contract method 0x3fd46786.

Solidity: function setRewardActiveOnCreation(bool _active) returns()

func (*ConvexTransactorSession) SetRewardImplementation

func (_Convex *ConvexTransactorSession) SetRewardImplementation(_imp common.Address) (*types.Transaction, error)

SetRewardImplementation is a paid mutator transaction binding the contract method 0xfa58ee02.

Solidity: function setRewardImplementation(address _imp) returns()

Jump to

Keyboard shortcuts

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