Documentation ¶
Index ¶
- func CalculateLifetimeNodeRewards(rp *rocketpool.RocketPool, claimerAddress common.Address, ...) (*big.Int, error)
- func CalculateLifetimeTrustedNodeRewards(rp *rocketpool.RocketPool, claimerAddress common.Address, ...) (*big.Int, error)
- func ClaimNodeRewards(rp *rocketpool.RocketPool, opts *bind.TransactOpts, ...) (common.Hash, error)
- func ClaimTrustedNodeRewards(rp *rocketpool.RocketPool, opts *bind.TransactOpts, ...) (common.Hash, error)
- func EstimateClaimNodeRewardsGas(rp *rocketpool.RocketPool, opts *bind.TransactOpts, ...) (rocketpool.GasInfo, error)
- func EstimateClaimTrustedNodeRewardsGas(rp *rocketpool.RocketPool, opts *bind.TransactOpts, ...) (rocketpool.GasInfo, error)
- func GetClaimIntervalTime(rp *rocketpool.RocketPool, opts *bind.CallOpts, ...) (time.Duration, error)
- func GetClaimIntervalTimeStart(rp *rocketpool.RocketPool, opts *bind.CallOpts, ...) (time.Time, error)
- func GetNodeClaimPossible(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, ...) (bool, error)
- func GetNodeClaimRewardsAmount(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, ...) (*big.Int, error)
- func GetNodeClaimRewardsPerc(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, ...) (float64, error)
- func GetNodeClaimsEnabled(rp *rocketpool.RocketPool, opts *bind.CallOpts, ...) (bool, error)
- func GetNodeOperatorRewardsPercent(rp *rocketpool.RocketPool, opts *bind.CallOpts, ...) (float64, error)
- func GetNodeRegistrationTime(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, ...) (time.Time, error)
- func GetNodeTotalClaimed(rp *rocketpool.RocketPool, opts *bind.CallOpts, ...) (*big.Int, error)
- func GetTrustedNodeClaimPossible(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, ...) (bool, error)
- func GetTrustedNodeClaimRewardsAmount(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, ...) (*big.Int, error)
- func GetTrustedNodeClaimRewardsPerc(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, ...) (float64, error)
- func GetTrustedNodeClaimsEnabled(rp *rocketpool.RocketPool, opts *bind.CallOpts, ...) (bool, error)
- func GetTrustedNodeOperatorRewardsPercent(rp *rocketpool.RocketPool, opts *bind.CallOpts, ...) (float64, error)
- func GetTrustedNodeRegistrationTime(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, ...) (time.Time, error)
- func GetTrustedNodeTotalClaimed(rp *rocketpool.RocketPool, opts *bind.CallOpts, ...) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateLifetimeNodeRewards ¶
func CalculateLifetimeNodeRewards(rp *rocketpool.RocketPool, claimerAddress common.Address, intervalSize *big.Int, startBlock *big.Int, legacyRocketRewardsPoolAddress *common.Address, legacyRocketClaimNodeAddress *common.Address, opts *bind.CallOpts) (*big.Int, error)
Filters through token claim events and sums the total amount claimed by claimerAddress
func CalculateLifetimeTrustedNodeRewards ¶
func CalculateLifetimeTrustedNodeRewards(rp *rocketpool.RocketPool, claimerAddress common.Address, intervalSize *big.Int, startBlock *big.Int, legacyRocketRewardsPoolAddress *common.Address, legacyRocketClaimTrustedNodeAddress *common.Address, opts *bind.CallOpts) (*big.Int, error)
Filters through token claim events and sums the total amount claimed by claimerAddress
func ClaimNodeRewards ¶
func ClaimNodeRewards(rp *rocketpool.RocketPool, opts *bind.TransactOpts, legacyRocketClaimNodeAddress *common.Address) (common.Hash, error)
Claim node rewards
func ClaimTrustedNodeRewards ¶
func ClaimTrustedNodeRewards(rp *rocketpool.RocketPool, opts *bind.TransactOpts, legacyRocketClaimTrustedNodeAddress *common.Address) (common.Hash, error)
Claim trusted node rewards
func EstimateClaimNodeRewardsGas ¶
func EstimateClaimNodeRewardsGas(rp *rocketpool.RocketPool, opts *bind.TransactOpts, legacyRocketClaimNodeAddress *common.Address) (rocketpool.GasInfo, error)
Estimate the gas of ClaimNodeRewards
func EstimateClaimTrustedNodeRewardsGas ¶
func EstimateClaimTrustedNodeRewardsGas(rp *rocketpool.RocketPool, opts *bind.TransactOpts, legacyRocketClaimTrustedNodeAddress *common.Address) (rocketpool.GasInfo, error)
Estimate the gas of ClaimTrustedNodeRewards
func GetClaimIntervalTime ¶
func GetClaimIntervalTime(rp *rocketpool.RocketPool, opts *bind.CallOpts, legacyRocketRewardsPoolAddress *common.Address) (time.Duration, error)
Get the number of seconds in a claim interval
func GetClaimIntervalTimeStart ¶
func GetClaimIntervalTimeStart(rp *rocketpool.RocketPool, opts *bind.CallOpts, legacyRocketRewardsPoolAddress *common.Address) (time.Time, error)
Get the timestamp that the current rewards interval started
func GetNodeClaimPossible ¶
func GetNodeClaimPossible(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, legacyRocketClaimNodeAddress *common.Address) (bool, error)
Get whether a node rewards claimer can claim
func GetNodeClaimRewardsAmount ¶
func GetNodeClaimRewardsAmount(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, legacyRocketClaimNodeAddress *common.Address) (*big.Int, error)
Get the total amount of rewards available for a node rewards claimer
func GetNodeClaimRewardsPerc ¶
func GetNodeClaimRewardsPerc(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, legacyRocketClaimNodeAddress *common.Address) (float64, error)
Get the percentage of rewards available for a node rewards claimer
func GetNodeClaimsEnabled ¶
func GetNodeClaimsEnabled(rp *rocketpool.RocketPool, opts *bind.CallOpts, legacyRocketClaimNodeAddress *common.Address) (bool, error)
Get whether node reward claims are enabled
func GetNodeOperatorRewardsPercent ¶
func GetNodeOperatorRewardsPercent(rp *rocketpool.RocketPool, opts *bind.CallOpts, legacyRocketRewardsPoolAddress *common.Address) (float64, error)
Get the percent of checkpoint rewards that goes to node operators
func GetNodeRegistrationTime ¶
func GetNodeRegistrationTime(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, legacyRocketRewardsPoolAddress *common.Address) (time.Time, error)
Get the time that the user registered as a claimer
func GetNodeTotalClaimed ¶
func GetNodeTotalClaimed(rp *rocketpool.RocketPool, opts *bind.CallOpts, legacyRocketRewardsPoolAddress *common.Address) (*big.Int, error)
Get the total rewards claimed for this claiming contract this interval
func GetTrustedNodeClaimPossible ¶
func GetTrustedNodeClaimPossible(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, legacyRocketClaimTrustedNodeAddress *common.Address) (bool, error)
Get whether a trusted node rewards claimer can claim
func GetTrustedNodeClaimRewardsAmount ¶
func GetTrustedNodeClaimRewardsAmount(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, legacyRocketClaimTrustedNodeAddress *common.Address) (*big.Int, error)
Get the total amount of rewards available for a trusted node rewards claimer
func GetTrustedNodeClaimRewardsPerc ¶
func GetTrustedNodeClaimRewardsPerc(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, legacyRocketClaimTrustedNodeAddress *common.Address) (float64, error)
Get the percentage of rewards available for a trusted node rewards claimer
func GetTrustedNodeClaimsEnabled ¶
func GetTrustedNodeClaimsEnabled(rp *rocketpool.RocketPool, opts *bind.CallOpts, legacyRocketClaimTrustedNodeAddress *common.Address) (bool, error)
Get whether trusted node reward claims are enabled
func GetTrustedNodeOperatorRewardsPercent ¶
func GetTrustedNodeOperatorRewardsPercent(rp *rocketpool.RocketPool, opts *bind.CallOpts, legacyRocketRewardsPoolAddress *common.Address) (float64, error)
Get the percent of checkpoint rewards that goes to ODAO members
func GetTrustedNodeRegistrationTime ¶
func GetTrustedNodeRegistrationTime(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts, legacyRocketRewardsPoolAddress *common.Address) (time.Time, error)
Get the time that the user registered as a claimer
func GetTrustedNodeTotalClaimed ¶
func GetTrustedNodeTotalClaimed(rp *rocketpool.RocketPool, opts *bind.CallOpts, legacyRocketRewardsPoolAddress *common.Address) (*big.Int, error)
Get the total rewards claimed for this claiming contract this interval
Types ¶
This section is empty.