Documentation ¶
Index ¶
- Variables
- type YieldFarm
- type YieldFarmApproval
- type YieldFarmApprovalIterator
- type YieldFarmCaller
- func (_YieldFarm *YieldFarmCaller) Admins(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_YieldFarm *YieldFarmCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmCaller) Allowances(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmCaller) BalanceOf(opts *bind.CallOpts, _account common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmCaller) Balances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_YieldFarm *YieldFarmCaller) Gov(opts *bind.CallOpts) (common.Address, error)
- func (_YieldFarm *YieldFarmCaller) InWhitelistMode(opts *bind.CallOpts) (bool, error)
- func (_YieldFarm *YieldFarmCaller) Name(opts *bind.CallOpts) (string, error)
- func (_YieldFarm *YieldFarmCaller) NonStakingAccounts(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_YieldFarm *YieldFarmCaller) NonStakingSupply(opts *bind.CallOpts) (*big.Int, error)
- func (_YieldFarm *YieldFarmCaller) StakedBalance(opts *bind.CallOpts, _account common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmCaller) StakingToken(opts *bind.CallOpts) (common.Address, error)
- func (_YieldFarm *YieldFarmCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_YieldFarm *YieldFarmCaller) TotalStaked(opts *bind.CallOpts) (*big.Int, error)
- func (_YieldFarm *YieldFarmCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- func (_YieldFarm *YieldFarmCaller) WhitelistedHandlers(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_YieldFarm *YieldFarmCaller) YieldTrackers(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- type YieldFarmCallerRaw
- type YieldFarmCallerSession
- func (_YieldFarm *YieldFarmCallerSession) Admins(arg0 common.Address) (bool, error)
- func (_YieldFarm *YieldFarmCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmCallerSession) Allowances(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmCallerSession) BalanceOf(_account common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmCallerSession) Balances(arg0 common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmCallerSession) Decimals() (uint8, error)
- func (_YieldFarm *YieldFarmCallerSession) Gov() (common.Address, error)
- func (_YieldFarm *YieldFarmCallerSession) InWhitelistMode() (bool, error)
- func (_YieldFarm *YieldFarmCallerSession) Name() (string, error)
- func (_YieldFarm *YieldFarmCallerSession) NonStakingAccounts(arg0 common.Address) (bool, error)
- func (_YieldFarm *YieldFarmCallerSession) NonStakingSupply() (*big.Int, error)
- func (_YieldFarm *YieldFarmCallerSession) StakedBalance(_account common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmCallerSession) StakingToken() (common.Address, error)
- func (_YieldFarm *YieldFarmCallerSession) Symbol() (string, error)
- func (_YieldFarm *YieldFarmCallerSession) TotalStaked() (*big.Int, error)
- func (_YieldFarm *YieldFarmCallerSession) TotalSupply() (*big.Int, error)
- func (_YieldFarm *YieldFarmCallerSession) WhitelistedHandlers(arg0 common.Address) (bool, error)
- func (_YieldFarm *YieldFarmCallerSession) YieldTrackers(arg0 *big.Int) (common.Address, error)
- type YieldFarmFilterer
- func (_YieldFarm *YieldFarmFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*YieldFarmApprovalIterator, error)
- func (_YieldFarm *YieldFarmFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*YieldFarmTransferIterator, error)
- func (_YieldFarm *YieldFarmFilterer) ParseApproval(log types.Log) (*YieldFarmApproval, error)
- func (_YieldFarm *YieldFarmFilterer) ParseTransfer(log types.Log) (*YieldFarmTransfer, error)
- func (_YieldFarm *YieldFarmFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *YieldFarmApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_YieldFarm *YieldFarmFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *YieldFarmTransfer, from []common.Address, ...) (event.Subscription, error)
- type YieldFarmRaw
- func (_YieldFarm *YieldFarmRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_YieldFarm *YieldFarmRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type YieldFarmSession
- func (_YieldFarm *YieldFarmSession) AddAdmin(_account common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) AddNonStakingAccount(_account common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) Admins(arg0 common.Address) (bool, error)
- func (_YieldFarm *YieldFarmSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmSession) Allowances(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmSession) Approve(_spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) BalanceOf(_account common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmSession) Balances(arg0 common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmSession) Claim(_receiver common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) Decimals() (uint8, error)
- func (_YieldFarm *YieldFarmSession) Gov() (common.Address, error)
- func (_YieldFarm *YieldFarmSession) InWhitelistMode() (bool, error)
- func (_YieldFarm *YieldFarmSession) Name() (string, error)
- func (_YieldFarm *YieldFarmSession) NonStakingAccounts(arg0 common.Address) (bool, error)
- func (_YieldFarm *YieldFarmSession) NonStakingSupply() (*big.Int, error)
- func (_YieldFarm *YieldFarmSession) RecoverClaim(_account common.Address, _receiver common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) RemoveAdmin(_account common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) RemoveNonStakingAccount(_account common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) SetGov(_gov common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) SetInWhitelistMode(_inWhitelistMode bool) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) SetInfo(_name string, _symbol string) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) SetWhitelistedHandler(_handler common.Address, _isWhitelisted bool) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) SetYieldTrackers(_yieldTrackers []common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) Stake(_amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) StakedBalance(_account common.Address) (*big.Int, error)
- func (_YieldFarm *YieldFarmSession) StakingToken() (common.Address, error)
- func (_YieldFarm *YieldFarmSession) Symbol() (string, error)
- func (_YieldFarm *YieldFarmSession) TotalStaked() (*big.Int, error)
- func (_YieldFarm *YieldFarmSession) TotalSupply() (*big.Int, error)
- func (_YieldFarm *YieldFarmSession) Transfer(_recipient common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) TransferFrom(_sender common.Address, _recipient common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) Unstake(_amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) WhitelistedHandlers(arg0 common.Address) (bool, error)
- func (_YieldFarm *YieldFarmSession) WithdrawToken(_token common.Address, _account common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmSession) YieldTrackers(arg0 *big.Int) (common.Address, error)
- type YieldFarmTransactor
- func (_YieldFarm *YieldFarmTransactor) AddAdmin(opts *bind.TransactOpts, _account common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) AddNonStakingAccount(opts *bind.TransactOpts, _account common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) Claim(opts *bind.TransactOpts, _receiver common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) RecoverClaim(opts *bind.TransactOpts, _account common.Address, _receiver common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) RemoveAdmin(opts *bind.TransactOpts, _account common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) RemoveNonStakingAccount(opts *bind.TransactOpts, _account common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) SetInWhitelistMode(opts *bind.TransactOpts, _inWhitelistMode bool) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) SetInfo(opts *bind.TransactOpts, _name string, _symbol string) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) SetWhitelistedHandler(opts *bind.TransactOpts, _handler common.Address, _isWhitelisted bool) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) SetYieldTrackers(opts *bind.TransactOpts, _yieldTrackers []common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) Stake(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) Transfer(opts *bind.TransactOpts, _recipient common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) TransferFrom(opts *bind.TransactOpts, _sender common.Address, _recipient common.Address, ...) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) Unstake(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactor) WithdrawToken(opts *bind.TransactOpts, _token common.Address, _account common.Address, ...) (*types.Transaction, error)
- type YieldFarmTransactorRaw
- type YieldFarmTransactorSession
- func (_YieldFarm *YieldFarmTransactorSession) AddAdmin(_account common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) AddNonStakingAccount(_account common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) Approve(_spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) Claim(_receiver common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) RecoverClaim(_account common.Address, _receiver common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) RemoveAdmin(_account common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) RemoveNonStakingAccount(_account common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) SetGov(_gov common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) SetInWhitelistMode(_inWhitelistMode bool) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) SetInfo(_name string, _symbol string) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) SetWhitelistedHandler(_handler common.Address, _isWhitelisted bool) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) SetYieldTrackers(_yieldTrackers []common.Address) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) Stake(_amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) Transfer(_recipient common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) TransferFrom(_sender common.Address, _recipient common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) Unstake(_amount *big.Int) (*types.Transaction, error)
- func (_YieldFarm *YieldFarmTransactorSession) WithdrawToken(_token common.Address, _account common.Address, _amount *big.Int) (*types.Transaction, error)
- type YieldFarmTransfer
- type YieldFarmTransferIterator
Constants ¶
This section is empty.
Variables ¶
var YieldFarmABI = YieldFarmMetaData.ABI
YieldFarmABI is the input ABI used to generate the binding from. Deprecated: Use YieldFarmMetaData.ABI instead.
var YieldFarmMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_name\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_symbol\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_stakingToken\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"addAdmin\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"addNonStakingAccount\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"admins\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"allowance\",\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_spender\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"allowances\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"name\":\"_spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"balances\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"claim\",\"inputs\":[{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"decimals\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"gov\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"inWhitelistMode\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"name\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"nonStakingAccounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"nonStakingSupply\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"recoverClaim\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"removeAdmin\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"removeNonStakingAccount\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setGov\",\"inputs\":[{\"name\":\"_gov\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setInWhitelistMode\",\"inputs\":[{\"name\":\"_inWhitelistMode\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setInfo\",\"inputs\":[{\"name\":\"_name\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"_symbol\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setWhitelistedHandler\",\"inputs\":[{\"name\":\"_handler\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isWhitelisted\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setYieldTrackers\",\"inputs\":[{\"name\":\"_yieldTrackers\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"stake\",\"inputs\":[{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"stakedBalance\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stakingToken\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"symbol\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalStaked\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalSupply\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transfer\",\"inputs\":[{\"name\":\"_recipient\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferFrom\",\"inputs\":[{\"name\":\"_sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_recipient\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"unstake\",\"inputs\":[{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"whitelistedHandlers\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"withdrawToken\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"yieldTrackers\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"Approval\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Transfer\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false}]",
}
YieldFarmMetaData contains all meta data concerning the YieldFarm contract.
Functions ¶
This section is empty.
Types ¶
type YieldFarm ¶
type YieldFarm struct { YieldFarmCaller // Read-only binding to the contract YieldFarmTransactor // Write-only binding to the contract YieldFarmFilterer // Log filterer for contract events }
YieldFarm is an auto generated Go binding around an Ethereum contract.
func NewYieldFarm ¶
NewYieldFarm creates a new instance of YieldFarm, bound to a specific deployed contract.
type YieldFarmApproval ¶
type YieldFarmApproval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
YieldFarmApproval represents a Approval event raised by the YieldFarm contract.
type YieldFarmApprovalIterator ¶
type YieldFarmApprovalIterator struct { Event *YieldFarmApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
YieldFarmApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the YieldFarm contract.
func (*YieldFarmApprovalIterator) Close ¶
func (it *YieldFarmApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*YieldFarmApprovalIterator) Error ¶
func (it *YieldFarmApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*YieldFarmApprovalIterator) Next ¶
func (it *YieldFarmApprovalIterator) 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 YieldFarmCaller ¶
type YieldFarmCaller struct {
// contains filtered or unexported fields
}
YieldFarmCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewYieldFarmCaller ¶
func NewYieldFarmCaller(address common.Address, caller bind.ContractCaller) (*YieldFarmCaller, error)
NewYieldFarmCaller creates a new read-only instance of YieldFarm, bound to a specific deployed contract.
func (*YieldFarmCaller) Admins ¶
Admins is a free data retrieval call binding the contract method 0x429b62e5.
Solidity: function admins(address ) view returns(bool)
func (*YieldFarmCaller) Allowance ¶
func (_YieldFarm *YieldFarmCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) view returns(uint256)
func (*YieldFarmCaller) Allowances ¶
func (_YieldFarm *YieldFarmCaller) Allowances(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowances is a free data retrieval call binding the contract method 0x55b6ed5c.
Solidity: function allowances(address , address ) view returns(uint256)
func (*YieldFarmCaller) BalanceOf ¶
func (_YieldFarm *YieldFarmCaller) BalanceOf(opts *bind.CallOpts, _account common.Address) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _account) view returns(uint256)
func (*YieldFarmCaller) Balances ¶
func (_YieldFarm *YieldFarmCaller) Balances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
Balances is a free data retrieval call binding the contract method 0x27e235e3.
Solidity: function balances(address ) view returns(uint256)
func (*YieldFarmCaller) Decimals ¶
func (_YieldFarm *YieldFarmCaller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*YieldFarmCaller) Gov ¶
Gov is a free data retrieval call binding the contract method 0x12d43a51.
Solidity: function gov() view returns(address)
func (*YieldFarmCaller) InWhitelistMode ¶
func (_YieldFarm *YieldFarmCaller) InWhitelistMode(opts *bind.CallOpts) (bool, error)
InWhitelistMode is a free data retrieval call binding the contract method 0x293d6987.
Solidity: function inWhitelistMode() view returns(bool)
func (*YieldFarmCaller) Name ¶
func (_YieldFarm *YieldFarmCaller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*YieldFarmCaller) NonStakingAccounts ¶
func (_YieldFarm *YieldFarmCaller) NonStakingAccounts(opts *bind.CallOpts, arg0 common.Address) (bool, error)
NonStakingAccounts is a free data retrieval call binding the contract method 0x9554381a.
Solidity: function nonStakingAccounts(address ) view returns(bool)
func (*YieldFarmCaller) NonStakingSupply ¶
NonStakingSupply is a free data retrieval call binding the contract method 0xc93be636.
Solidity: function nonStakingSupply() view returns(uint256)
func (*YieldFarmCaller) StakedBalance ¶
func (_YieldFarm *YieldFarmCaller) StakedBalance(opts *bind.CallOpts, _account common.Address) (*big.Int, error)
StakedBalance is a free data retrieval call binding the contract method 0x60217267.
Solidity: function stakedBalance(address _account) view returns(uint256)
func (*YieldFarmCaller) StakingToken ¶
StakingToken is a free data retrieval call binding the contract method 0x72f702f3.
Solidity: function stakingToken() view returns(address)
func (*YieldFarmCaller) Symbol ¶
func (_YieldFarm *YieldFarmCaller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*YieldFarmCaller) TotalStaked ¶
TotalStaked is a free data retrieval call binding the contract method 0x817b1cd2.
Solidity: function totalStaked() view returns(uint256)
func (*YieldFarmCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*YieldFarmCaller) WhitelistedHandlers ¶
func (_YieldFarm *YieldFarmCaller) WhitelistedHandlers(opts *bind.CallOpts, arg0 common.Address) (bool, error)
WhitelistedHandlers is a free data retrieval call binding the contract method 0x36300051.
Solidity: function whitelistedHandlers(address ) view returns(bool)
func (*YieldFarmCaller) YieldTrackers ¶
func (_YieldFarm *YieldFarmCaller) YieldTrackers(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
YieldTrackers is a free data retrieval call binding the contract method 0x52cd38d9.
Solidity: function yieldTrackers(uint256 ) view returns(address)
type YieldFarmCallerRaw ¶
type YieldFarmCallerRaw struct {
Contract *YieldFarmCaller // Generic read-only contract binding to access the raw methods on
}
YieldFarmCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*YieldFarmCallerRaw) Call ¶
func (_YieldFarm *YieldFarmCallerRaw) 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 YieldFarmCallerSession ¶
type YieldFarmCallerSession struct { Contract *YieldFarmCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
YieldFarmCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*YieldFarmCallerSession) Admins ¶
func (_YieldFarm *YieldFarmCallerSession) Admins(arg0 common.Address) (bool, error)
Admins is a free data retrieval call binding the contract method 0x429b62e5.
Solidity: function admins(address ) view returns(bool)
func (*YieldFarmCallerSession) Allowance ¶
func (_YieldFarm *YieldFarmCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) view returns(uint256)
func (*YieldFarmCallerSession) Allowances ¶
func (_YieldFarm *YieldFarmCallerSession) Allowances(arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowances is a free data retrieval call binding the contract method 0x55b6ed5c.
Solidity: function allowances(address , address ) view returns(uint256)
func (*YieldFarmCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _account) view returns(uint256)
func (*YieldFarmCallerSession) Balances ¶
Balances is a free data retrieval call binding the contract method 0x27e235e3.
Solidity: function balances(address ) view returns(uint256)
func (*YieldFarmCallerSession) Decimals ¶
func (_YieldFarm *YieldFarmCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*YieldFarmCallerSession) Gov ¶
func (_YieldFarm *YieldFarmCallerSession) Gov() (common.Address, error)
Gov is a free data retrieval call binding the contract method 0x12d43a51.
Solidity: function gov() view returns(address)
func (*YieldFarmCallerSession) InWhitelistMode ¶
func (_YieldFarm *YieldFarmCallerSession) InWhitelistMode() (bool, error)
InWhitelistMode is a free data retrieval call binding the contract method 0x293d6987.
Solidity: function inWhitelistMode() view returns(bool)
func (*YieldFarmCallerSession) Name ¶
func (_YieldFarm *YieldFarmCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*YieldFarmCallerSession) NonStakingAccounts ¶
func (_YieldFarm *YieldFarmCallerSession) NonStakingAccounts(arg0 common.Address) (bool, error)
NonStakingAccounts is a free data retrieval call binding the contract method 0x9554381a.
Solidity: function nonStakingAccounts(address ) view returns(bool)
func (*YieldFarmCallerSession) NonStakingSupply ¶
func (_YieldFarm *YieldFarmCallerSession) NonStakingSupply() (*big.Int, error)
NonStakingSupply is a free data retrieval call binding the contract method 0xc93be636.
Solidity: function nonStakingSupply() view returns(uint256)
func (*YieldFarmCallerSession) StakedBalance ¶
StakedBalance is a free data retrieval call binding the contract method 0x60217267.
Solidity: function stakedBalance(address _account) view returns(uint256)
func (*YieldFarmCallerSession) StakingToken ¶
func (_YieldFarm *YieldFarmCallerSession) StakingToken() (common.Address, error)
StakingToken is a free data retrieval call binding the contract method 0x72f702f3.
Solidity: function stakingToken() view returns(address)
func (*YieldFarmCallerSession) Symbol ¶
func (_YieldFarm *YieldFarmCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*YieldFarmCallerSession) TotalStaked ¶
func (_YieldFarm *YieldFarmCallerSession) TotalStaked() (*big.Int, error)
TotalStaked is a free data retrieval call binding the contract method 0x817b1cd2.
Solidity: function totalStaked() view returns(uint256)
func (*YieldFarmCallerSession) TotalSupply ¶
func (_YieldFarm *YieldFarmCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*YieldFarmCallerSession) WhitelistedHandlers ¶
func (_YieldFarm *YieldFarmCallerSession) WhitelistedHandlers(arg0 common.Address) (bool, error)
WhitelistedHandlers is a free data retrieval call binding the contract method 0x36300051.
Solidity: function whitelistedHandlers(address ) view returns(bool)
func (*YieldFarmCallerSession) YieldTrackers ¶
YieldTrackers is a free data retrieval call binding the contract method 0x52cd38d9.
Solidity: function yieldTrackers(uint256 ) view returns(address)
type YieldFarmFilterer ¶
type YieldFarmFilterer struct {
// contains filtered or unexported fields
}
YieldFarmFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewYieldFarmFilterer ¶
func NewYieldFarmFilterer(address common.Address, filterer bind.ContractFilterer) (*YieldFarmFilterer, error)
NewYieldFarmFilterer creates a new log filterer instance of YieldFarm, bound to a specific deployed contract.
func (*YieldFarmFilterer) FilterApproval ¶
func (_YieldFarm *YieldFarmFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*YieldFarmApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*YieldFarmFilterer) FilterTransfer ¶
func (_YieldFarm *YieldFarmFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*YieldFarmTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*YieldFarmFilterer) ParseApproval ¶
func (_YieldFarm *YieldFarmFilterer) ParseApproval(log types.Log) (*YieldFarmApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*YieldFarmFilterer) ParseTransfer ¶
func (_YieldFarm *YieldFarmFilterer) ParseTransfer(log types.Log) (*YieldFarmTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*YieldFarmFilterer) WatchApproval ¶
func (_YieldFarm *YieldFarmFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *YieldFarmApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*YieldFarmFilterer) WatchTransfer ¶
func (_YieldFarm *YieldFarmFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *YieldFarmTransfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
type YieldFarmRaw ¶
type YieldFarmRaw struct {
Contract *YieldFarm // Generic contract binding to access the raw methods on
}
YieldFarmRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*YieldFarmRaw) Call ¶
func (_YieldFarm *YieldFarmRaw) 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 (*YieldFarmRaw) Transact ¶
func (_YieldFarm *YieldFarmRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*YieldFarmRaw) Transfer ¶
func (_YieldFarm *YieldFarmRaw) 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 YieldFarmSession ¶
type YieldFarmSession struct { Contract *YieldFarm // 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 }
YieldFarmSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*YieldFarmSession) AddAdmin ¶
func (_YieldFarm *YieldFarmSession) AddAdmin(_account common.Address) (*types.Transaction, error)
AddAdmin is a paid mutator transaction binding the contract method 0x70480275.
Solidity: function addAdmin(address _account) returns()
func (*YieldFarmSession) AddNonStakingAccount ¶
func (_YieldFarm *YieldFarmSession) AddNonStakingAccount(_account common.Address) (*types.Transaction, error)
AddNonStakingAccount is a paid mutator transaction binding the contract method 0x62289077.
Solidity: function addNonStakingAccount(address _account) returns()
func (*YieldFarmSession) Admins ¶
func (_YieldFarm *YieldFarmSession) Admins(arg0 common.Address) (bool, error)
Admins is a free data retrieval call binding the contract method 0x429b62e5.
Solidity: function admins(address ) view returns(bool)
func (*YieldFarmSession) Allowance ¶
func (_YieldFarm *YieldFarmSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) view returns(uint256)
func (*YieldFarmSession) Allowances ¶
func (_YieldFarm *YieldFarmSession) Allowances(arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowances is a free data retrieval call binding the contract method 0x55b6ed5c.
Solidity: function allowances(address , address ) view returns(uint256)
func (*YieldFarmSession) Approve ¶
func (_YieldFarm *YieldFarmSession) Approve(_spender common.Address, _amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _amount) returns(bool)
func (*YieldFarmSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _account) view returns(uint256)
func (*YieldFarmSession) Balances ¶
Balances is a free data retrieval call binding the contract method 0x27e235e3.
Solidity: function balances(address ) view returns(uint256)
func (*YieldFarmSession) Claim ¶
func (_YieldFarm *YieldFarmSession) Claim(_receiver common.Address) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x1e83409a.
Solidity: function claim(address _receiver) returns()
func (*YieldFarmSession) Decimals ¶
func (_YieldFarm *YieldFarmSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*YieldFarmSession) Gov ¶
func (_YieldFarm *YieldFarmSession) Gov() (common.Address, error)
Gov is a free data retrieval call binding the contract method 0x12d43a51.
Solidity: function gov() view returns(address)
func (*YieldFarmSession) InWhitelistMode ¶
func (_YieldFarm *YieldFarmSession) InWhitelistMode() (bool, error)
InWhitelistMode is a free data retrieval call binding the contract method 0x293d6987.
Solidity: function inWhitelistMode() view returns(bool)
func (*YieldFarmSession) Name ¶
func (_YieldFarm *YieldFarmSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*YieldFarmSession) NonStakingAccounts ¶
func (_YieldFarm *YieldFarmSession) NonStakingAccounts(arg0 common.Address) (bool, error)
NonStakingAccounts is a free data retrieval call binding the contract method 0x9554381a.
Solidity: function nonStakingAccounts(address ) view returns(bool)
func (*YieldFarmSession) NonStakingSupply ¶
func (_YieldFarm *YieldFarmSession) NonStakingSupply() (*big.Int, error)
NonStakingSupply is a free data retrieval call binding the contract method 0xc93be636.
Solidity: function nonStakingSupply() view returns(uint256)
func (*YieldFarmSession) RecoverClaim ¶
func (_YieldFarm *YieldFarmSession) RecoverClaim(_account common.Address, _receiver common.Address) (*types.Transaction, error)
RecoverClaim is a paid mutator transaction binding the contract method 0x996f11ee.
Solidity: function recoverClaim(address _account, address _receiver) returns()
func (*YieldFarmSession) RemoveAdmin ¶
func (_YieldFarm *YieldFarmSession) RemoveAdmin(_account common.Address) (*types.Transaction, error)
RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.
Solidity: function removeAdmin(address _account) returns()
func (*YieldFarmSession) RemoveNonStakingAccount ¶
func (_YieldFarm *YieldFarmSession) RemoveNonStakingAccount(_account common.Address) (*types.Transaction, error)
RemoveNonStakingAccount is a paid mutator transaction binding the contract method 0xfb30d916.
Solidity: function removeNonStakingAccount(address _account) returns()
func (*YieldFarmSession) SetGov ¶
func (_YieldFarm *YieldFarmSession) SetGov(_gov common.Address) (*types.Transaction, error)
SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.
Solidity: function setGov(address _gov) returns()
func (*YieldFarmSession) SetInWhitelistMode ¶
func (_YieldFarm *YieldFarmSession) SetInWhitelistMode(_inWhitelistMode bool) (*types.Transaction, error)
SetInWhitelistMode is a paid mutator transaction binding the contract method 0x4cb5bbe3.
Solidity: function setInWhitelistMode(bool _inWhitelistMode) returns()
func (*YieldFarmSession) SetInfo ¶
func (_YieldFarm *YieldFarmSession) SetInfo(_name string, _symbol string) (*types.Transaction, error)
SetInfo is a paid mutator transaction binding the contract method 0xa923fc40.
Solidity: function setInfo(string _name, string _symbol) returns()
func (*YieldFarmSession) SetWhitelistedHandler ¶
func (_YieldFarm *YieldFarmSession) SetWhitelistedHandler(_handler common.Address, _isWhitelisted bool) (*types.Transaction, error)
SetWhitelistedHandler is a paid mutator transaction binding the contract method 0xd92fc87e.
Solidity: function setWhitelistedHandler(address _handler, bool _isWhitelisted) returns()
func (*YieldFarmSession) SetYieldTrackers ¶
func (_YieldFarm *YieldFarmSession) SetYieldTrackers(_yieldTrackers []common.Address) (*types.Transaction, error)
SetYieldTrackers is a paid mutator transaction binding the contract method 0x276eab4e.
Solidity: function setYieldTrackers(address[] _yieldTrackers) returns()
func (*YieldFarmSession) Stake ¶
func (_YieldFarm *YieldFarmSession) Stake(_amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 _amount) returns()
func (*YieldFarmSession) StakedBalance ¶
StakedBalance is a free data retrieval call binding the contract method 0x60217267.
Solidity: function stakedBalance(address _account) view returns(uint256)
func (*YieldFarmSession) StakingToken ¶
func (_YieldFarm *YieldFarmSession) StakingToken() (common.Address, error)
StakingToken is a free data retrieval call binding the contract method 0x72f702f3.
Solidity: function stakingToken() view returns(address)
func (*YieldFarmSession) Symbol ¶
func (_YieldFarm *YieldFarmSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*YieldFarmSession) TotalStaked ¶
func (_YieldFarm *YieldFarmSession) TotalStaked() (*big.Int, error)
TotalStaked is a free data retrieval call binding the contract method 0x817b1cd2.
Solidity: function totalStaked() view returns(uint256)
func (*YieldFarmSession) TotalSupply ¶
func (_YieldFarm *YieldFarmSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*YieldFarmSession) Transfer ¶
func (_YieldFarm *YieldFarmSession) Transfer(_recipient common.Address, _amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _recipient, uint256 _amount) returns(bool)
func (*YieldFarmSession) TransferFrom ¶
func (_YieldFarm *YieldFarmSession) TransferFrom(_sender common.Address, _recipient common.Address, _amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _sender, address _recipient, uint256 _amount) returns(bool)
func (*YieldFarmSession) Unstake ¶
func (_YieldFarm *YieldFarmSession) Unstake(_amount *big.Int) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
Solidity: function unstake(uint256 _amount) returns()
func (*YieldFarmSession) WhitelistedHandlers ¶
func (_YieldFarm *YieldFarmSession) WhitelistedHandlers(arg0 common.Address) (bool, error)
WhitelistedHandlers is a free data retrieval call binding the contract method 0x36300051.
Solidity: function whitelistedHandlers(address ) view returns(bool)
func (*YieldFarmSession) WithdrawToken ¶
func (_YieldFarm *YieldFarmSession) WithdrawToken(_token common.Address, _account common.Address, _amount *big.Int) (*types.Transaction, error)
WithdrawToken is a paid mutator transaction binding the contract method 0x01e33667.
Solidity: function withdrawToken(address _token, address _account, uint256 _amount) returns()
func (*YieldFarmSession) YieldTrackers ¶
YieldTrackers is a free data retrieval call binding the contract method 0x52cd38d9.
Solidity: function yieldTrackers(uint256 ) view returns(address)
type YieldFarmTransactor ¶
type YieldFarmTransactor struct {
// contains filtered or unexported fields
}
YieldFarmTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewYieldFarmTransactor ¶
func NewYieldFarmTransactor(address common.Address, transactor bind.ContractTransactor) (*YieldFarmTransactor, error)
NewYieldFarmTransactor creates a new write-only instance of YieldFarm, bound to a specific deployed contract.
func (*YieldFarmTransactor) AddAdmin ¶
func (_YieldFarm *YieldFarmTransactor) AddAdmin(opts *bind.TransactOpts, _account common.Address) (*types.Transaction, error)
AddAdmin is a paid mutator transaction binding the contract method 0x70480275.
Solidity: function addAdmin(address _account) returns()
func (*YieldFarmTransactor) AddNonStakingAccount ¶
func (_YieldFarm *YieldFarmTransactor) AddNonStakingAccount(opts *bind.TransactOpts, _account common.Address) (*types.Transaction, error)
AddNonStakingAccount is a paid mutator transaction binding the contract method 0x62289077.
Solidity: function addNonStakingAccount(address _account) returns()
func (*YieldFarmTransactor) Approve ¶
func (_YieldFarm *YieldFarmTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _amount) returns(bool)
func (*YieldFarmTransactor) Claim ¶
func (_YieldFarm *YieldFarmTransactor) Claim(opts *bind.TransactOpts, _receiver common.Address) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x1e83409a.
Solidity: function claim(address _receiver) returns()
func (*YieldFarmTransactor) RecoverClaim ¶
func (_YieldFarm *YieldFarmTransactor) RecoverClaim(opts *bind.TransactOpts, _account common.Address, _receiver common.Address) (*types.Transaction, error)
RecoverClaim is a paid mutator transaction binding the contract method 0x996f11ee.
Solidity: function recoverClaim(address _account, address _receiver) returns()
func (*YieldFarmTransactor) RemoveAdmin ¶
func (_YieldFarm *YieldFarmTransactor) RemoveAdmin(opts *bind.TransactOpts, _account common.Address) (*types.Transaction, error)
RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.
Solidity: function removeAdmin(address _account) returns()
func (*YieldFarmTransactor) RemoveNonStakingAccount ¶
func (_YieldFarm *YieldFarmTransactor) RemoveNonStakingAccount(opts *bind.TransactOpts, _account common.Address) (*types.Transaction, error)
RemoveNonStakingAccount is a paid mutator transaction binding the contract method 0xfb30d916.
Solidity: function removeNonStakingAccount(address _account) returns()
func (*YieldFarmTransactor) SetGov ¶
func (_YieldFarm *YieldFarmTransactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error)
SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.
Solidity: function setGov(address _gov) returns()
func (*YieldFarmTransactor) SetInWhitelistMode ¶
func (_YieldFarm *YieldFarmTransactor) SetInWhitelistMode(opts *bind.TransactOpts, _inWhitelistMode bool) (*types.Transaction, error)
SetInWhitelistMode is a paid mutator transaction binding the contract method 0x4cb5bbe3.
Solidity: function setInWhitelistMode(bool _inWhitelistMode) returns()
func (*YieldFarmTransactor) SetInfo ¶
func (_YieldFarm *YieldFarmTransactor) SetInfo(opts *bind.TransactOpts, _name string, _symbol string) (*types.Transaction, error)
SetInfo is a paid mutator transaction binding the contract method 0xa923fc40.
Solidity: function setInfo(string _name, string _symbol) returns()
func (*YieldFarmTransactor) SetWhitelistedHandler ¶
func (_YieldFarm *YieldFarmTransactor) SetWhitelistedHandler(opts *bind.TransactOpts, _handler common.Address, _isWhitelisted bool) (*types.Transaction, error)
SetWhitelistedHandler is a paid mutator transaction binding the contract method 0xd92fc87e.
Solidity: function setWhitelistedHandler(address _handler, bool _isWhitelisted) returns()
func (*YieldFarmTransactor) SetYieldTrackers ¶
func (_YieldFarm *YieldFarmTransactor) SetYieldTrackers(opts *bind.TransactOpts, _yieldTrackers []common.Address) (*types.Transaction, error)
SetYieldTrackers is a paid mutator transaction binding the contract method 0x276eab4e.
Solidity: function setYieldTrackers(address[] _yieldTrackers) returns()
func (*YieldFarmTransactor) Stake ¶
func (_YieldFarm *YieldFarmTransactor) Stake(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 _amount) returns()
func (*YieldFarmTransactor) Transfer ¶
func (_YieldFarm *YieldFarmTransactor) Transfer(opts *bind.TransactOpts, _recipient common.Address, _amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _recipient, uint256 _amount) returns(bool)
func (*YieldFarmTransactor) TransferFrom ¶
func (_YieldFarm *YieldFarmTransactor) TransferFrom(opts *bind.TransactOpts, _sender common.Address, _recipient common.Address, _amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _sender, address _recipient, uint256 _amount) returns(bool)
func (*YieldFarmTransactor) Unstake ¶
func (_YieldFarm *YieldFarmTransactor) Unstake(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
Solidity: function unstake(uint256 _amount) returns()
func (*YieldFarmTransactor) WithdrawToken ¶
func (_YieldFarm *YieldFarmTransactor) WithdrawToken(opts *bind.TransactOpts, _token common.Address, _account common.Address, _amount *big.Int) (*types.Transaction, error)
WithdrawToken is a paid mutator transaction binding the contract method 0x01e33667.
Solidity: function withdrawToken(address _token, address _account, uint256 _amount) returns()
type YieldFarmTransactorRaw ¶
type YieldFarmTransactorRaw struct {
Contract *YieldFarmTransactor // Generic write-only contract binding to access the raw methods on
}
YieldFarmTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*YieldFarmTransactorRaw) Transact ¶
func (_YieldFarm *YieldFarmTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*YieldFarmTransactorRaw) Transfer ¶
func (_YieldFarm *YieldFarmTransactorRaw) 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 YieldFarmTransactorSession ¶
type YieldFarmTransactorSession struct { Contract *YieldFarmTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
YieldFarmTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*YieldFarmTransactorSession) AddAdmin ¶
func (_YieldFarm *YieldFarmTransactorSession) AddAdmin(_account common.Address) (*types.Transaction, error)
AddAdmin is a paid mutator transaction binding the contract method 0x70480275.
Solidity: function addAdmin(address _account) returns()
func (*YieldFarmTransactorSession) AddNonStakingAccount ¶
func (_YieldFarm *YieldFarmTransactorSession) AddNonStakingAccount(_account common.Address) (*types.Transaction, error)
AddNonStakingAccount is a paid mutator transaction binding the contract method 0x62289077.
Solidity: function addNonStakingAccount(address _account) returns()
func (*YieldFarmTransactorSession) Approve ¶
func (_YieldFarm *YieldFarmTransactorSession) Approve(_spender common.Address, _amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _amount) returns(bool)
func (*YieldFarmTransactorSession) Claim ¶
func (_YieldFarm *YieldFarmTransactorSession) Claim(_receiver common.Address) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x1e83409a.
Solidity: function claim(address _receiver) returns()
func (*YieldFarmTransactorSession) RecoverClaim ¶
func (_YieldFarm *YieldFarmTransactorSession) RecoverClaim(_account common.Address, _receiver common.Address) (*types.Transaction, error)
RecoverClaim is a paid mutator transaction binding the contract method 0x996f11ee.
Solidity: function recoverClaim(address _account, address _receiver) returns()
func (*YieldFarmTransactorSession) RemoveAdmin ¶
func (_YieldFarm *YieldFarmTransactorSession) RemoveAdmin(_account common.Address) (*types.Transaction, error)
RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.
Solidity: function removeAdmin(address _account) returns()
func (*YieldFarmTransactorSession) RemoveNonStakingAccount ¶
func (_YieldFarm *YieldFarmTransactorSession) RemoveNonStakingAccount(_account common.Address) (*types.Transaction, error)
RemoveNonStakingAccount is a paid mutator transaction binding the contract method 0xfb30d916.
Solidity: function removeNonStakingAccount(address _account) returns()
func (*YieldFarmTransactorSession) SetGov ¶
func (_YieldFarm *YieldFarmTransactorSession) SetGov(_gov common.Address) (*types.Transaction, error)
SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.
Solidity: function setGov(address _gov) returns()
func (*YieldFarmTransactorSession) SetInWhitelistMode ¶
func (_YieldFarm *YieldFarmTransactorSession) SetInWhitelistMode(_inWhitelistMode bool) (*types.Transaction, error)
SetInWhitelistMode is a paid mutator transaction binding the contract method 0x4cb5bbe3.
Solidity: function setInWhitelistMode(bool _inWhitelistMode) returns()
func (*YieldFarmTransactorSession) SetInfo ¶
func (_YieldFarm *YieldFarmTransactorSession) SetInfo(_name string, _symbol string) (*types.Transaction, error)
SetInfo is a paid mutator transaction binding the contract method 0xa923fc40.
Solidity: function setInfo(string _name, string _symbol) returns()
func (*YieldFarmTransactorSession) SetWhitelistedHandler ¶
func (_YieldFarm *YieldFarmTransactorSession) SetWhitelistedHandler(_handler common.Address, _isWhitelisted bool) (*types.Transaction, error)
SetWhitelistedHandler is a paid mutator transaction binding the contract method 0xd92fc87e.
Solidity: function setWhitelistedHandler(address _handler, bool _isWhitelisted) returns()
func (*YieldFarmTransactorSession) SetYieldTrackers ¶
func (_YieldFarm *YieldFarmTransactorSession) SetYieldTrackers(_yieldTrackers []common.Address) (*types.Transaction, error)
SetYieldTrackers is a paid mutator transaction binding the contract method 0x276eab4e.
Solidity: function setYieldTrackers(address[] _yieldTrackers) returns()
func (*YieldFarmTransactorSession) Stake ¶
func (_YieldFarm *YieldFarmTransactorSession) Stake(_amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 _amount) returns()
func (*YieldFarmTransactorSession) Transfer ¶
func (_YieldFarm *YieldFarmTransactorSession) Transfer(_recipient common.Address, _amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _recipient, uint256 _amount) returns(bool)
func (*YieldFarmTransactorSession) TransferFrom ¶
func (_YieldFarm *YieldFarmTransactorSession) TransferFrom(_sender common.Address, _recipient common.Address, _amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _sender, address _recipient, uint256 _amount) returns(bool)
func (*YieldFarmTransactorSession) Unstake ¶
func (_YieldFarm *YieldFarmTransactorSession) Unstake(_amount *big.Int) (*types.Transaction, error)
Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
Solidity: function unstake(uint256 _amount) returns()
func (*YieldFarmTransactorSession) WithdrawToken ¶
func (_YieldFarm *YieldFarmTransactorSession) WithdrawToken(_token common.Address, _account common.Address, _amount *big.Int) (*types.Transaction, error)
WithdrawToken is a paid mutator transaction binding the contract method 0x01e33667.
Solidity: function withdrawToken(address _token, address _account, uint256 _amount) returns()
type YieldFarmTransfer ¶
type YieldFarmTransfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
YieldFarmTransfer represents a Transfer event raised by the YieldFarm contract.
type YieldFarmTransferIterator ¶
type YieldFarmTransferIterator struct { Event *YieldFarmTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
YieldFarmTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the YieldFarm contract.
func (*YieldFarmTransferIterator) Close ¶
func (it *YieldFarmTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*YieldFarmTransferIterator) Error ¶
func (it *YieldFarmTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*YieldFarmTransferIterator) Next ¶
func (it *YieldFarmTransferIterator) 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.