Documentation
¶
Index ¶
- Variables
- type Tokendistributor
- type TokendistributorCaller
- func (_Tokendistributor *TokendistributorCaller) AccTokenPerShare(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokendistributor *TokendistributorCaller) CalculatePendingRewards(opts *bind.CallOpts, user common.Address) (*big.Int, error)
- func (_Tokendistributor *TokendistributorCaller) CurrentPhase(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokendistributor *TokendistributorCaller) EndBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokendistributor *TokendistributorCaller) LastRewardBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokendistributor *TokendistributorCaller) LooksRareToken(opts *bind.CallOpts) (common.Address, error)
- func (_Tokendistributor *TokendistributorCaller) NUMBERPERIODS(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokendistributor *TokendistributorCaller) PRECISIONFACTOR(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokendistributor *TokendistributorCaller) RewardPerBlockForOthers(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokendistributor *TokendistributorCaller) RewardPerBlockForStaking(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokendistributor *TokendistributorCaller) STARTBLOCK(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokendistributor *TokendistributorCaller) StakingPeriod(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_Tokendistributor *TokendistributorCaller) TokenSplitter(opts *bind.CallOpts) (common.Address, error)
- func (_Tokendistributor *TokendistributorCaller) TotalAmountStaked(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokendistributor *TokendistributorCaller) UserInfo(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- type TokendistributorCallerRaw
- type TokendistributorCallerSession
- func (_Tokendistributor *TokendistributorCallerSession) AccTokenPerShare() (*big.Int, error)
- func (_Tokendistributor *TokendistributorCallerSession) CalculatePendingRewards(user common.Address) (*big.Int, error)
- func (_Tokendistributor *TokendistributorCallerSession) CurrentPhase() (*big.Int, error)
- func (_Tokendistributor *TokendistributorCallerSession) EndBlock() (*big.Int, error)
- func (_Tokendistributor *TokendistributorCallerSession) LastRewardBlock() (*big.Int, error)
- func (_Tokendistributor *TokendistributorCallerSession) LooksRareToken() (common.Address, error)
- func (_Tokendistributor *TokendistributorCallerSession) NUMBERPERIODS() (*big.Int, error)
- func (_Tokendistributor *TokendistributorCallerSession) PRECISIONFACTOR() (*big.Int, error)
- func (_Tokendistributor *TokendistributorCallerSession) RewardPerBlockForOthers() (*big.Int, error)
- func (_Tokendistributor *TokendistributorCallerSession) RewardPerBlockForStaking() (*big.Int, error)
- func (_Tokendistributor *TokendistributorCallerSession) STARTBLOCK() (*big.Int, error)
- func (_Tokendistributor *TokendistributorCallerSession) StakingPeriod(arg0 *big.Int) (struct{ ... }, error)
- func (_Tokendistributor *TokendistributorCallerSession) TokenSplitter() (common.Address, error)
- func (_Tokendistributor *TokendistributorCallerSession) TotalAmountStaked() (*big.Int, error)
- func (_Tokendistributor *TokendistributorCallerSession) UserInfo(arg0 common.Address) (struct{ ... }, error)
- type TokendistributorCompound
- type TokendistributorCompoundIterator
- type TokendistributorDeposit
- type TokendistributorDepositIterator
- type TokendistributorFilterer
- func (_Tokendistributor *TokendistributorFilterer) FilterCompound(opts *bind.FilterOpts, user []common.Address) (*TokendistributorCompoundIterator, error)
- func (_Tokendistributor *TokendistributorFilterer) FilterDeposit(opts *bind.FilterOpts, user []common.Address) (*TokendistributorDepositIterator, error)
- func (_Tokendistributor *TokendistributorFilterer) FilterNewRewardsPerBlock(opts *bind.FilterOpts, currentPhase []*big.Int) (*TokendistributorNewRewardsPerBlockIterator, error)
- func (_Tokendistributor *TokendistributorFilterer) FilterWithdraw(opts *bind.FilterOpts, user []common.Address) (*TokendistributorWithdrawIterator, error)
- func (_Tokendistributor *TokendistributorFilterer) ParseCompound(log types.Log) (*TokendistributorCompound, error)
- func (_Tokendistributor *TokendistributorFilterer) ParseDeposit(log types.Log) (*TokendistributorDeposit, error)
- func (_Tokendistributor *TokendistributorFilterer) ParseNewRewardsPerBlock(log types.Log) (*TokendistributorNewRewardsPerBlock, error)
- func (_Tokendistributor *TokendistributorFilterer) ParseWithdraw(log types.Log) (*TokendistributorWithdraw, error)
- func (_Tokendistributor *TokendistributorFilterer) WatchCompound(opts *bind.WatchOpts, sink chan<- *TokendistributorCompound, ...) (event.Subscription, error)
- func (_Tokendistributor *TokendistributorFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *TokendistributorDeposit, ...) (event.Subscription, error)
- func (_Tokendistributor *TokendistributorFilterer) WatchNewRewardsPerBlock(opts *bind.WatchOpts, sink chan<- *TokendistributorNewRewardsPerBlock, ...) (event.Subscription, error)
- func (_Tokendistributor *TokendistributorFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *TokendistributorWithdraw, ...) (event.Subscription, error)
- type TokendistributorNewRewardsPerBlock
- type TokendistributorNewRewardsPerBlockIterator
- type TokendistributorRaw
- func (_Tokendistributor *TokendistributorRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Tokendistributor *TokendistributorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TokendistributorSession
- func (_Tokendistributor *TokendistributorSession) AccTokenPerShare() (*big.Int, error)
- func (_Tokendistributor *TokendistributorSession) CalculatePendingRewards(user common.Address) (*big.Int, error)
- func (_Tokendistributor *TokendistributorSession) CurrentPhase() (*big.Int, error)
- func (_Tokendistributor *TokendistributorSession) Deposit(amount *big.Int) (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorSession) EndBlock() (*big.Int, error)
- func (_Tokendistributor *TokendistributorSession) HarvestAndCompound() (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorSession) LastRewardBlock() (*big.Int, error)
- func (_Tokendistributor *TokendistributorSession) LooksRareToken() (common.Address, error)
- func (_Tokendistributor *TokendistributorSession) NUMBERPERIODS() (*big.Int, error)
- func (_Tokendistributor *TokendistributorSession) PRECISIONFACTOR() (*big.Int, error)
- func (_Tokendistributor *TokendistributorSession) RewardPerBlockForOthers() (*big.Int, error)
- func (_Tokendistributor *TokendistributorSession) RewardPerBlockForStaking() (*big.Int, error)
- func (_Tokendistributor *TokendistributorSession) STARTBLOCK() (*big.Int, error)
- func (_Tokendistributor *TokendistributorSession) StakingPeriod(arg0 *big.Int) (struct{ ... }, error)
- func (_Tokendistributor *TokendistributorSession) TokenSplitter() (common.Address, error)
- func (_Tokendistributor *TokendistributorSession) TotalAmountStaked() (*big.Int, error)
- func (_Tokendistributor *TokendistributorSession) UpdatePool() (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorSession) UserInfo(arg0 common.Address) (struct{ ... }, error)
- func (_Tokendistributor *TokendistributorSession) Withdraw(amount *big.Int) (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorSession) WithdrawAll() (*types.Transaction, error)
- type TokendistributorTransactor
- func (_Tokendistributor *TokendistributorTransactor) Deposit(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorTransactor) HarvestAndCompound(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorTransactor) UpdatePool(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorTransactor) WithdrawAll(opts *bind.TransactOpts) (*types.Transaction, error)
- type TokendistributorTransactorRaw
- type TokendistributorTransactorSession
- func (_Tokendistributor *TokendistributorTransactorSession) Deposit(amount *big.Int) (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorTransactorSession) HarvestAndCompound() (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorTransactorSession) UpdatePool() (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorTransactorSession) Withdraw(amount *big.Int) (*types.Transaction, error)
- func (_Tokendistributor *TokendistributorTransactorSession) WithdrawAll() (*types.Transaction, error)
- type TokendistributorWithdraw
- type TokendistributorWithdrawIterator
Constants ¶
This section is empty.
Variables ¶
var TokendistributorABI = TokendistributorMetaData.ABI
TokendistributorABI is the input ABI used to generate the binding from. Deprecated: Use TokendistributorMetaData.ABI instead.
var TokendistributorMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_looksRareToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_tokenSplitter\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_startBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"_rewardsPerBlockForStaking\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_rewardsPerBlockForOthers\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_periodLengthesInBlocks\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"_numberPeriods\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"harvestedAmount\",\"type\":\"uint256\"}],\"name\":\"Compound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"harvestedAmount\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"currentPhase\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startBlock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardPerBlockForStaking\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardPerBlockForOthers\",\"type\":\"uint256\"}],\"name\":\"NewRewardsPerBlock\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"harvestedAmount\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"NUMBER_PERIODS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PRECISION_FACTOR\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"START_BLOCK\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accTokenPerShare\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"calculatePendingRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentPhase\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"endBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"harvestAndCompound\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastRewardBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"looksRareToken\",\"outputs\":[{\"internalType\":\"contractIHunterGovernanceToken\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardPerBlockForOthers\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardPerBlockForStaking\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"stakingPeriod\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"rewardPerBlockForStaking\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardPerBlockForOthers\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"periodLengthInBlock\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenSplitter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalAmountStaked\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"updatePool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardDebt\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
TokendistributorMetaData contains all meta data concerning the Tokendistributor contract.
Functions ¶
This section is empty.
Types ¶
type Tokendistributor ¶
type Tokendistributor struct { TokendistributorCaller // Read-only binding to the contract TokendistributorTransactor // Write-only binding to the contract TokendistributorFilterer // Log filterer for contract events }
Tokendistributor is an auto generated Go binding around an Ethereum contract.
func NewTokendistributor ¶
func NewTokendistributor(address common.Address, backend bind.ContractBackend) (*Tokendistributor, error)
NewTokendistributor creates a new instance of Tokendistributor, bound to a specific deployed contract.
type TokendistributorCaller ¶
type TokendistributorCaller struct {
// contains filtered or unexported fields
}
TokendistributorCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTokendistributorCaller ¶
func NewTokendistributorCaller(address common.Address, caller bind.ContractCaller) (*TokendistributorCaller, error)
NewTokendistributorCaller creates a new read-only instance of Tokendistributor, bound to a specific deployed contract.
func (*TokendistributorCaller) AccTokenPerShare ¶
func (_Tokendistributor *TokendistributorCaller) AccTokenPerShare(opts *bind.CallOpts) (*big.Int, error)
AccTokenPerShare is a free data retrieval call binding the contract method 0x8f662915.
Solidity: function accTokenPerShare() view returns(uint256)
func (*TokendistributorCaller) CalculatePendingRewards ¶
func (_Tokendistributor *TokendistributorCaller) CalculatePendingRewards(opts *bind.CallOpts, user common.Address) (*big.Int, error)
CalculatePendingRewards is a free data retrieval call binding the contract method 0x097aad10.
Solidity: function calculatePendingRewards(address user) view returns(uint256)
func (*TokendistributorCaller) CurrentPhase ¶
func (_Tokendistributor *TokendistributorCaller) CurrentPhase(opts *bind.CallOpts) (*big.Int, error)
CurrentPhase is a free data retrieval call binding the contract method 0x055ad42e.
Solidity: function currentPhase() view returns(uint256)
func (*TokendistributorCaller) EndBlock ¶
EndBlock is a free data retrieval call binding the contract method 0x083c6323.
Solidity: function endBlock() view returns(uint256)
func (*TokendistributorCaller) LastRewardBlock ¶
func (_Tokendistributor *TokendistributorCaller) LastRewardBlock(opts *bind.CallOpts) (*big.Int, error)
LastRewardBlock is a free data retrieval call binding the contract method 0xa9f8d181.
Solidity: function lastRewardBlock() view returns(uint256)
func (*TokendistributorCaller) LooksRareToken ¶
func (_Tokendistributor *TokendistributorCaller) LooksRareToken(opts *bind.CallOpts) (common.Address, error)
LooksRareToken is a free data retrieval call binding the contract method 0x36db9fb2.
Solidity: function looksRareToken() view returns(address)
func (*TokendistributorCaller) NUMBERPERIODS ¶
func (_Tokendistributor *TokendistributorCaller) NUMBERPERIODS(opts *bind.CallOpts) (*big.Int, error)
NUMBERPERIODS is a free data retrieval call binding the contract method 0x52bf348c.
Solidity: function NUMBER_PERIODS() view returns(uint256)
func (*TokendistributorCaller) PRECISIONFACTOR ¶
func (_Tokendistributor *TokendistributorCaller) PRECISIONFACTOR(opts *bind.CallOpts) (*big.Int, error)
PRECISIONFACTOR is a free data retrieval call binding the contract method 0xccd34cd5.
Solidity: function PRECISION_FACTOR() view returns(uint256)
func (*TokendistributorCaller) RewardPerBlockForOthers ¶
func (_Tokendistributor *TokendistributorCaller) RewardPerBlockForOthers(opts *bind.CallOpts) (*big.Int, error)
RewardPerBlockForOthers is a free data retrieval call binding the contract method 0xe683d96f.
Solidity: function rewardPerBlockForOthers() view returns(uint256)
func (*TokendistributorCaller) RewardPerBlockForStaking ¶
func (_Tokendistributor *TokendistributorCaller) RewardPerBlockForStaking(opts *bind.CallOpts) (*big.Int, error)
RewardPerBlockForStaking is a free data retrieval call binding the contract method 0x5a9477e9.
Solidity: function rewardPerBlockForStaking() view returns(uint256)
func (*TokendistributorCaller) STARTBLOCK ¶
STARTBLOCK is a free data retrieval call binding the contract method 0x39b3e826.
Solidity: function START_BLOCK() view returns(uint256)
func (*TokendistributorCaller) StakingPeriod ¶
func (_Tokendistributor *TokendistributorCaller) StakingPeriod(opts *bind.CallOpts, arg0 *big.Int) (struct { RewardPerBlockForStaking *big.Int RewardPerBlockForOthers *big.Int PeriodLengthInBlock *big.Int }, error)
StakingPeriod is a free data retrieval call binding the contract method 0xc1027c98.
Solidity: function stakingPeriod(uint256 ) view returns(uint256 rewardPerBlockForStaking, uint256 rewardPerBlockForOthers, uint256 periodLengthInBlock)
func (*TokendistributorCaller) TokenSplitter ¶
func (_Tokendistributor *TokendistributorCaller) TokenSplitter(opts *bind.CallOpts) (common.Address, error)
TokenSplitter is a free data retrieval call binding the contract method 0xa46074c3.
Solidity: function tokenSplitter() view returns(address)
func (*TokendistributorCaller) TotalAmountStaked ¶
func (_Tokendistributor *TokendistributorCaller) TotalAmountStaked(opts *bind.CallOpts) (*big.Int, error)
TotalAmountStaked is a free data retrieval call binding the contract method 0xfe961f61.
Solidity: function totalAmountStaked() view returns(uint256)
func (*TokendistributorCaller) UserInfo ¶
func (_Tokendistributor *TokendistributorCaller) UserInfo(opts *bind.CallOpts, arg0 common.Address) (struct { Amount *big.Int RewardDebt *big.Int }, error)
UserInfo is a free data retrieval call binding the contract method 0x1959a002.
Solidity: function userInfo(address ) view returns(uint256 amount, uint256 rewardDebt)
type TokendistributorCallerRaw ¶
type TokendistributorCallerRaw struct {
Contract *TokendistributorCaller // Generic read-only contract binding to access the raw methods on
}
TokendistributorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TokendistributorCallerRaw) Call ¶
func (_Tokendistributor *TokendistributorCallerRaw) 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 TokendistributorCallerSession ¶
type TokendistributorCallerSession struct { Contract *TokendistributorCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TokendistributorCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TokendistributorCallerSession) AccTokenPerShare ¶
func (_Tokendistributor *TokendistributorCallerSession) AccTokenPerShare() (*big.Int, error)
AccTokenPerShare is a free data retrieval call binding the contract method 0x8f662915.
Solidity: function accTokenPerShare() view returns(uint256)
func (*TokendistributorCallerSession) CalculatePendingRewards ¶
func (_Tokendistributor *TokendistributorCallerSession) CalculatePendingRewards(user common.Address) (*big.Int, error)
CalculatePendingRewards is a free data retrieval call binding the contract method 0x097aad10.
Solidity: function calculatePendingRewards(address user) view returns(uint256)
func (*TokendistributorCallerSession) CurrentPhase ¶
func (_Tokendistributor *TokendistributorCallerSession) CurrentPhase() (*big.Int, error)
CurrentPhase is a free data retrieval call binding the contract method 0x055ad42e.
Solidity: function currentPhase() view returns(uint256)
func (*TokendistributorCallerSession) EndBlock ¶
func (_Tokendistributor *TokendistributorCallerSession) EndBlock() (*big.Int, error)
EndBlock is a free data retrieval call binding the contract method 0x083c6323.
Solidity: function endBlock() view returns(uint256)
func (*TokendistributorCallerSession) LastRewardBlock ¶
func (_Tokendistributor *TokendistributorCallerSession) LastRewardBlock() (*big.Int, error)
LastRewardBlock is a free data retrieval call binding the contract method 0xa9f8d181.
Solidity: function lastRewardBlock() view returns(uint256)
func (*TokendistributorCallerSession) LooksRareToken ¶
func (_Tokendistributor *TokendistributorCallerSession) LooksRareToken() (common.Address, error)
LooksRareToken is a free data retrieval call binding the contract method 0x36db9fb2.
Solidity: function looksRareToken() view returns(address)
func (*TokendistributorCallerSession) NUMBERPERIODS ¶
func (_Tokendistributor *TokendistributorCallerSession) NUMBERPERIODS() (*big.Int, error)
NUMBERPERIODS is a free data retrieval call binding the contract method 0x52bf348c.
Solidity: function NUMBER_PERIODS() view returns(uint256)
func (*TokendistributorCallerSession) PRECISIONFACTOR ¶
func (_Tokendistributor *TokendistributorCallerSession) PRECISIONFACTOR() (*big.Int, error)
PRECISIONFACTOR is a free data retrieval call binding the contract method 0xccd34cd5.
Solidity: function PRECISION_FACTOR() view returns(uint256)
func (*TokendistributorCallerSession) RewardPerBlockForOthers ¶
func (_Tokendistributor *TokendistributorCallerSession) RewardPerBlockForOthers() (*big.Int, error)
RewardPerBlockForOthers is a free data retrieval call binding the contract method 0xe683d96f.
Solidity: function rewardPerBlockForOthers() view returns(uint256)
func (*TokendistributorCallerSession) RewardPerBlockForStaking ¶
func (_Tokendistributor *TokendistributorCallerSession) RewardPerBlockForStaking() (*big.Int, error)
RewardPerBlockForStaking is a free data retrieval call binding the contract method 0x5a9477e9.
Solidity: function rewardPerBlockForStaking() view returns(uint256)
func (*TokendistributorCallerSession) STARTBLOCK ¶
func (_Tokendistributor *TokendistributorCallerSession) STARTBLOCK() (*big.Int, error)
STARTBLOCK is a free data retrieval call binding the contract method 0x39b3e826.
Solidity: function START_BLOCK() view returns(uint256)
func (*TokendistributorCallerSession) StakingPeriod ¶
func (_Tokendistributor *TokendistributorCallerSession) StakingPeriod(arg0 *big.Int) (struct { RewardPerBlockForStaking *big.Int RewardPerBlockForOthers *big.Int PeriodLengthInBlock *big.Int }, error)
StakingPeriod is a free data retrieval call binding the contract method 0xc1027c98.
Solidity: function stakingPeriod(uint256 ) view returns(uint256 rewardPerBlockForStaking, uint256 rewardPerBlockForOthers, uint256 periodLengthInBlock)
func (*TokendistributorCallerSession) TokenSplitter ¶
func (_Tokendistributor *TokendistributorCallerSession) TokenSplitter() (common.Address, error)
TokenSplitter is a free data retrieval call binding the contract method 0xa46074c3.
Solidity: function tokenSplitter() view returns(address)
func (*TokendistributorCallerSession) TotalAmountStaked ¶
func (_Tokendistributor *TokendistributorCallerSession) TotalAmountStaked() (*big.Int, error)
TotalAmountStaked is a free data retrieval call binding the contract method 0xfe961f61.
Solidity: function totalAmountStaked() view returns(uint256)
func (*TokendistributorCallerSession) UserInfo ¶
func (_Tokendistributor *TokendistributorCallerSession) UserInfo(arg0 common.Address) (struct { Amount *big.Int RewardDebt *big.Int }, error)
UserInfo is a free data retrieval call binding the contract method 0x1959a002.
Solidity: function userInfo(address ) view returns(uint256 amount, uint256 rewardDebt)
type TokendistributorCompound ¶
type TokendistributorCompound struct { User common.Address HarvestedAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokendistributorCompound represents a Compound event raised by the Tokendistributor contract.
type TokendistributorCompoundIterator ¶
type TokendistributorCompoundIterator struct { Event *TokendistributorCompound // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokendistributorCompoundIterator is returned from FilterCompound and is used to iterate over the raw logs and unpacked data for Compound events raised by the Tokendistributor contract.
func (*TokendistributorCompoundIterator) Close ¶
func (it *TokendistributorCompoundIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokendistributorCompoundIterator) Error ¶
func (it *TokendistributorCompoundIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokendistributorCompoundIterator) Next ¶
func (it *TokendistributorCompoundIterator) 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 TokendistributorDeposit ¶
type TokendistributorDeposit struct { User common.Address Amount *big.Int HarvestedAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokendistributorDeposit represents a Deposit event raised by the Tokendistributor contract.
type TokendistributorDepositIterator ¶
type TokendistributorDepositIterator struct { Event *TokendistributorDeposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokendistributorDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Tokendistributor contract.
func (*TokendistributorDepositIterator) Close ¶
func (it *TokendistributorDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokendistributorDepositIterator) Error ¶
func (it *TokendistributorDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokendistributorDepositIterator) Next ¶
func (it *TokendistributorDepositIterator) 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 TokendistributorFilterer ¶
type TokendistributorFilterer struct {
// contains filtered or unexported fields
}
TokendistributorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTokendistributorFilterer ¶
func NewTokendistributorFilterer(address common.Address, filterer bind.ContractFilterer) (*TokendistributorFilterer, error)
NewTokendistributorFilterer creates a new log filterer instance of Tokendistributor, bound to a specific deployed contract.
func (*TokendistributorFilterer) FilterCompound ¶
func (_Tokendistributor *TokendistributorFilterer) FilterCompound(opts *bind.FilterOpts, user []common.Address) (*TokendistributorCompoundIterator, error)
FilterCompound is a free log retrieval operation binding the contract event 0x169f1815ebdea059aac3bb00ec9a9594c7a5ffcb64a17e8392b5d84909a14556.
Solidity: event Compound(address indexed user, uint256 harvestedAmount)
func (*TokendistributorFilterer) FilterDeposit ¶
func (_Tokendistributor *TokendistributorFilterer) FilterDeposit(opts *bind.FilterOpts, user []common.Address) (*TokendistributorDepositIterator, error)
FilterDeposit is a free log retrieval operation binding the contract event 0x90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15.
Solidity: event Deposit(address indexed user, uint256 amount, uint256 harvestedAmount)
func (*TokendistributorFilterer) FilterNewRewardsPerBlock ¶
func (_Tokendistributor *TokendistributorFilterer) FilterNewRewardsPerBlock(opts *bind.FilterOpts, currentPhase []*big.Int) (*TokendistributorNewRewardsPerBlockIterator, error)
FilterNewRewardsPerBlock is a free log retrieval operation binding the contract event 0x40181eb77bccfdef1a73b669bb4290d98e2fbec678c7cf4578ae256210420e17.
Solidity: event NewRewardsPerBlock(uint256 indexed currentPhase, uint256 startBlock, uint256 rewardPerBlockForStaking, uint256 rewardPerBlockForOthers)
func (*TokendistributorFilterer) FilterWithdraw ¶
func (_Tokendistributor *TokendistributorFilterer) FilterWithdraw(opts *bind.FilterOpts, user []common.Address) (*TokendistributorWithdrawIterator, error)
FilterWithdraw is a free log retrieval operation binding the contract event 0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568.
Solidity: event Withdraw(address indexed user, uint256 amount, uint256 harvestedAmount)
func (*TokendistributorFilterer) ParseCompound ¶
func (_Tokendistributor *TokendistributorFilterer) ParseCompound(log types.Log) (*TokendistributorCompound, error)
ParseCompound is a log parse operation binding the contract event 0x169f1815ebdea059aac3bb00ec9a9594c7a5ffcb64a17e8392b5d84909a14556.
Solidity: event Compound(address indexed user, uint256 harvestedAmount)
func (*TokendistributorFilterer) ParseDeposit ¶
func (_Tokendistributor *TokendistributorFilterer) ParseDeposit(log types.Log) (*TokendistributorDeposit, error)
ParseDeposit is a log parse operation binding the contract event 0x90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15.
Solidity: event Deposit(address indexed user, uint256 amount, uint256 harvestedAmount)
func (*TokendistributorFilterer) ParseNewRewardsPerBlock ¶
func (_Tokendistributor *TokendistributorFilterer) ParseNewRewardsPerBlock(log types.Log) (*TokendistributorNewRewardsPerBlock, error)
ParseNewRewardsPerBlock is a log parse operation binding the contract event 0x40181eb77bccfdef1a73b669bb4290d98e2fbec678c7cf4578ae256210420e17.
Solidity: event NewRewardsPerBlock(uint256 indexed currentPhase, uint256 startBlock, uint256 rewardPerBlockForStaking, uint256 rewardPerBlockForOthers)
func (*TokendistributorFilterer) ParseWithdraw ¶
func (_Tokendistributor *TokendistributorFilterer) ParseWithdraw(log types.Log) (*TokendistributorWithdraw, error)
ParseWithdraw is a log parse operation binding the contract event 0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568.
Solidity: event Withdraw(address indexed user, uint256 amount, uint256 harvestedAmount)
func (*TokendistributorFilterer) WatchCompound ¶
func (_Tokendistributor *TokendistributorFilterer) WatchCompound(opts *bind.WatchOpts, sink chan<- *TokendistributorCompound, user []common.Address) (event.Subscription, error)
WatchCompound is a free log subscription operation binding the contract event 0x169f1815ebdea059aac3bb00ec9a9594c7a5ffcb64a17e8392b5d84909a14556.
Solidity: event Compound(address indexed user, uint256 harvestedAmount)
func (*TokendistributorFilterer) WatchDeposit ¶
func (_Tokendistributor *TokendistributorFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *TokendistributorDeposit, user []common.Address) (event.Subscription, error)
WatchDeposit is a free log subscription operation binding the contract event 0x90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15.
Solidity: event Deposit(address indexed user, uint256 amount, uint256 harvestedAmount)
func (*TokendistributorFilterer) WatchNewRewardsPerBlock ¶
func (_Tokendistributor *TokendistributorFilterer) WatchNewRewardsPerBlock(opts *bind.WatchOpts, sink chan<- *TokendistributorNewRewardsPerBlock, currentPhase []*big.Int) (event.Subscription, error)
WatchNewRewardsPerBlock is a free log subscription operation binding the contract event 0x40181eb77bccfdef1a73b669bb4290d98e2fbec678c7cf4578ae256210420e17.
Solidity: event NewRewardsPerBlock(uint256 indexed currentPhase, uint256 startBlock, uint256 rewardPerBlockForStaking, uint256 rewardPerBlockForOthers)
func (*TokendistributorFilterer) WatchWithdraw ¶
func (_Tokendistributor *TokendistributorFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *TokendistributorWithdraw, user []common.Address) (event.Subscription, error)
WatchWithdraw is a free log subscription operation binding the contract event 0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568.
Solidity: event Withdraw(address indexed user, uint256 amount, uint256 harvestedAmount)
type TokendistributorNewRewardsPerBlock ¶
type TokendistributorNewRewardsPerBlock struct { CurrentPhase *big.Int StartBlock *big.Int RewardPerBlockForStaking *big.Int RewardPerBlockForOthers *big.Int Raw types.Log // Blockchain specific contextual infos }
TokendistributorNewRewardsPerBlock represents a NewRewardsPerBlock event raised by the Tokendistributor contract.
type TokendistributorNewRewardsPerBlockIterator ¶
type TokendistributorNewRewardsPerBlockIterator struct { Event *TokendistributorNewRewardsPerBlock // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokendistributorNewRewardsPerBlockIterator is returned from FilterNewRewardsPerBlock and is used to iterate over the raw logs and unpacked data for NewRewardsPerBlock events raised by the Tokendistributor contract.
func (*TokendistributorNewRewardsPerBlockIterator) Close ¶
func (it *TokendistributorNewRewardsPerBlockIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokendistributorNewRewardsPerBlockIterator) Error ¶
func (it *TokendistributorNewRewardsPerBlockIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokendistributorNewRewardsPerBlockIterator) Next ¶
func (it *TokendistributorNewRewardsPerBlockIterator) 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 TokendistributorRaw ¶
type TokendistributorRaw struct {
Contract *Tokendistributor // Generic contract binding to access the raw methods on
}
TokendistributorRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TokendistributorRaw) Call ¶
func (_Tokendistributor *TokendistributorRaw) 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 (*TokendistributorRaw) Transact ¶
func (_Tokendistributor *TokendistributorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokendistributorRaw) Transfer ¶
func (_Tokendistributor *TokendistributorRaw) 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 TokendistributorSession ¶
type TokendistributorSession struct { Contract *Tokendistributor // 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 }
TokendistributorSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TokendistributorSession) AccTokenPerShare ¶
func (_Tokendistributor *TokendistributorSession) AccTokenPerShare() (*big.Int, error)
AccTokenPerShare is a free data retrieval call binding the contract method 0x8f662915.
Solidity: function accTokenPerShare() view returns(uint256)
func (*TokendistributorSession) CalculatePendingRewards ¶
func (_Tokendistributor *TokendistributorSession) CalculatePendingRewards(user common.Address) (*big.Int, error)
CalculatePendingRewards is a free data retrieval call binding the contract method 0x097aad10.
Solidity: function calculatePendingRewards(address user) view returns(uint256)
func (*TokendistributorSession) CurrentPhase ¶
func (_Tokendistributor *TokendistributorSession) CurrentPhase() (*big.Int, error)
CurrentPhase is a free data retrieval call binding the contract method 0x055ad42e.
Solidity: function currentPhase() view returns(uint256)
func (*TokendistributorSession) Deposit ¶
func (_Tokendistributor *TokendistributorSession) Deposit(amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.
Solidity: function deposit(uint256 amount) returns()
func (*TokendistributorSession) EndBlock ¶
func (_Tokendistributor *TokendistributorSession) EndBlock() (*big.Int, error)
EndBlock is a free data retrieval call binding the contract method 0x083c6323.
Solidity: function endBlock() view returns(uint256)
func (*TokendistributorSession) HarvestAndCompound ¶
func (_Tokendistributor *TokendistributorSession) HarvestAndCompound() (*types.Transaction, error)
HarvestAndCompound is a paid mutator transaction binding the contract method 0x2a4e051b.
Solidity: function harvestAndCompound() returns()
func (*TokendistributorSession) LastRewardBlock ¶
func (_Tokendistributor *TokendistributorSession) LastRewardBlock() (*big.Int, error)
LastRewardBlock is a free data retrieval call binding the contract method 0xa9f8d181.
Solidity: function lastRewardBlock() view returns(uint256)
func (*TokendistributorSession) LooksRareToken ¶
func (_Tokendistributor *TokendistributorSession) LooksRareToken() (common.Address, error)
LooksRareToken is a free data retrieval call binding the contract method 0x36db9fb2.
Solidity: function looksRareToken() view returns(address)
func (*TokendistributorSession) NUMBERPERIODS ¶
func (_Tokendistributor *TokendistributorSession) NUMBERPERIODS() (*big.Int, error)
NUMBERPERIODS is a free data retrieval call binding the contract method 0x52bf348c.
Solidity: function NUMBER_PERIODS() view returns(uint256)
func (*TokendistributorSession) PRECISIONFACTOR ¶
func (_Tokendistributor *TokendistributorSession) PRECISIONFACTOR() (*big.Int, error)
PRECISIONFACTOR is a free data retrieval call binding the contract method 0xccd34cd5.
Solidity: function PRECISION_FACTOR() view returns(uint256)
func (*TokendistributorSession) RewardPerBlockForOthers ¶
func (_Tokendistributor *TokendistributorSession) RewardPerBlockForOthers() (*big.Int, error)
RewardPerBlockForOthers is a free data retrieval call binding the contract method 0xe683d96f.
Solidity: function rewardPerBlockForOthers() view returns(uint256)
func (*TokendistributorSession) RewardPerBlockForStaking ¶
func (_Tokendistributor *TokendistributorSession) RewardPerBlockForStaking() (*big.Int, error)
RewardPerBlockForStaking is a free data retrieval call binding the contract method 0x5a9477e9.
Solidity: function rewardPerBlockForStaking() view returns(uint256)
func (*TokendistributorSession) STARTBLOCK ¶
func (_Tokendistributor *TokendistributorSession) STARTBLOCK() (*big.Int, error)
STARTBLOCK is a free data retrieval call binding the contract method 0x39b3e826.
Solidity: function START_BLOCK() view returns(uint256)
func (*TokendistributorSession) StakingPeriod ¶
func (_Tokendistributor *TokendistributorSession) StakingPeriod(arg0 *big.Int) (struct { RewardPerBlockForStaking *big.Int RewardPerBlockForOthers *big.Int PeriodLengthInBlock *big.Int }, error)
StakingPeriod is a free data retrieval call binding the contract method 0xc1027c98.
Solidity: function stakingPeriod(uint256 ) view returns(uint256 rewardPerBlockForStaking, uint256 rewardPerBlockForOthers, uint256 periodLengthInBlock)
func (*TokendistributorSession) TokenSplitter ¶
func (_Tokendistributor *TokendistributorSession) TokenSplitter() (common.Address, error)
TokenSplitter is a free data retrieval call binding the contract method 0xa46074c3.
Solidity: function tokenSplitter() view returns(address)
func (*TokendistributorSession) TotalAmountStaked ¶
func (_Tokendistributor *TokendistributorSession) TotalAmountStaked() (*big.Int, error)
TotalAmountStaked is a free data retrieval call binding the contract method 0xfe961f61.
Solidity: function totalAmountStaked() view returns(uint256)
func (*TokendistributorSession) UpdatePool ¶
func (_Tokendistributor *TokendistributorSession) UpdatePool() (*types.Transaction, error)
UpdatePool is a paid mutator transaction binding the contract method 0xe3161ddd.
Solidity: function updatePool() returns()
func (*TokendistributorSession) UserInfo ¶
func (_Tokendistributor *TokendistributorSession) UserInfo(arg0 common.Address) (struct { Amount *big.Int RewardDebt *big.Int }, error)
UserInfo is a free data retrieval call binding the contract method 0x1959a002.
Solidity: function userInfo(address ) view returns(uint256 amount, uint256 rewardDebt)
func (*TokendistributorSession) Withdraw ¶
func (_Tokendistributor *TokendistributorSession) Withdraw(amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 amount) returns()
func (*TokendistributorSession) WithdrawAll ¶
func (_Tokendistributor *TokendistributorSession) WithdrawAll() (*types.Transaction, error)
WithdrawAll is a paid mutator transaction binding the contract method 0x853828b6.
Solidity: function withdrawAll() returns()
type TokendistributorTransactor ¶
type TokendistributorTransactor struct {
// contains filtered or unexported fields
}
TokendistributorTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTokendistributorTransactor ¶
func NewTokendistributorTransactor(address common.Address, transactor bind.ContractTransactor) (*TokendistributorTransactor, error)
NewTokendistributorTransactor creates a new write-only instance of Tokendistributor, bound to a specific deployed contract.
func (*TokendistributorTransactor) Deposit ¶
func (_Tokendistributor *TokendistributorTransactor) Deposit(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.
Solidity: function deposit(uint256 amount) returns()
func (*TokendistributorTransactor) HarvestAndCompound ¶
func (_Tokendistributor *TokendistributorTransactor) HarvestAndCompound(opts *bind.TransactOpts) (*types.Transaction, error)
HarvestAndCompound is a paid mutator transaction binding the contract method 0x2a4e051b.
Solidity: function harvestAndCompound() returns()
func (*TokendistributorTransactor) UpdatePool ¶
func (_Tokendistributor *TokendistributorTransactor) UpdatePool(opts *bind.TransactOpts) (*types.Transaction, error)
UpdatePool is a paid mutator transaction binding the contract method 0xe3161ddd.
Solidity: function updatePool() returns()
func (*TokendistributorTransactor) Withdraw ¶
func (_Tokendistributor *TokendistributorTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 amount) returns()
func (*TokendistributorTransactor) WithdrawAll ¶
func (_Tokendistributor *TokendistributorTransactor) WithdrawAll(opts *bind.TransactOpts) (*types.Transaction, error)
WithdrawAll is a paid mutator transaction binding the contract method 0x853828b6.
Solidity: function withdrawAll() returns()
type TokendistributorTransactorRaw ¶
type TokendistributorTransactorRaw struct {
Contract *TokendistributorTransactor // Generic write-only contract binding to access the raw methods on
}
TokendistributorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TokendistributorTransactorRaw) Transact ¶
func (_Tokendistributor *TokendistributorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokendistributorTransactorRaw) Transfer ¶
func (_Tokendistributor *TokendistributorTransactorRaw) 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 TokendistributorTransactorSession ¶
type TokendistributorTransactorSession struct { Contract *TokendistributorTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TokendistributorTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TokendistributorTransactorSession) Deposit ¶
func (_Tokendistributor *TokendistributorTransactorSession) Deposit(amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.
Solidity: function deposit(uint256 amount) returns()
func (*TokendistributorTransactorSession) HarvestAndCompound ¶
func (_Tokendistributor *TokendistributorTransactorSession) HarvestAndCompound() (*types.Transaction, error)
HarvestAndCompound is a paid mutator transaction binding the contract method 0x2a4e051b.
Solidity: function harvestAndCompound() returns()
func (*TokendistributorTransactorSession) UpdatePool ¶
func (_Tokendistributor *TokendistributorTransactorSession) UpdatePool() (*types.Transaction, error)
UpdatePool is a paid mutator transaction binding the contract method 0xe3161ddd.
Solidity: function updatePool() returns()
func (*TokendistributorTransactorSession) Withdraw ¶
func (_Tokendistributor *TokendistributorTransactorSession) Withdraw(amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 amount) returns()
func (*TokendistributorTransactorSession) WithdrawAll ¶
func (_Tokendistributor *TokendistributorTransactorSession) WithdrawAll() (*types.Transaction, error)
WithdrawAll is a paid mutator transaction binding the contract method 0x853828b6.
Solidity: function withdrawAll() returns()
type TokendistributorWithdraw ¶
type TokendistributorWithdraw struct { User common.Address Amount *big.Int HarvestedAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokendistributorWithdraw represents a Withdraw event raised by the Tokendistributor contract.
type TokendistributorWithdrawIterator ¶
type TokendistributorWithdrawIterator struct { Event *TokendistributorWithdraw // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokendistributorWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Tokendistributor contract.
func (*TokendistributorWithdrawIterator) Close ¶
func (it *TokendistributorWithdrawIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokendistributorWithdrawIterator) Error ¶
func (it *TokendistributorWithdrawIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokendistributorWithdrawIterator) Next ¶
func (it *TokendistributorWithdrawIterator) 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.