rewards

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateLifetimeNodeRewards

func CalculateLifetimeNodeRewards(ggp *gogopool.GoGoPool, claimerAddress common.Address, intervalSize *big.Int, startBlock *big.Int) (*big.Int, error)

Filters through token claim events and sums the total amount claimed by claimerAddress

func CalculateLifetimeTrustedNodeRewards

func CalculateLifetimeTrustedNodeRewards(ggp *gogopool.GoGoPool, claimerAddress common.Address, intervalSize *big.Int, startBlock *big.Int) (*big.Int, error)

Filters through token claim events and sums the total amount claimed by claimerAddress

func ClaimNodeRewards

func ClaimNodeRewards(ggp *gogopool.GoGoPool, opts *bind.TransactOpts) (common.Hash, error)

Claim node rewards

func ClaimTrustedNodeRewards

func ClaimTrustedNodeRewards(ggp *gogopool.GoGoPool, opts *bind.TransactOpts) (common.Hash, error)

Claim trusted node rewards

func EstimateClaimNodeRewardsGas

func EstimateClaimNodeRewardsGas(ggp *gogopool.GoGoPool, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of ClaimNodeRewards

func EstimateClaimTrustedNodeRewardsGas

func EstimateClaimTrustedNodeRewardsGas(ggp *gogopool.GoGoPool, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of ClaimTrustedNodeRewards

func GetClaimIntervalTime

func GetClaimIntervalTime(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (time.Duration, error)

Get the number of seconds in a claim interval

func GetClaimIntervalTimeStart

func GetClaimIntervalTimeStart(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (time.Time, error)

Get the timestamp that the current rewards interval started

func GetNodeClaimPossible

func GetNodeClaimPossible(ggp *gogopool.GoGoPool, claimerAddress common.Address, opts *bind.CallOpts) (bool, error)

Get whether a node rewards claimer can claim

func GetNodeClaimRewardsAmount

func GetNodeClaimRewardsAmount(ggp *gogopool.GoGoPool, claimerAddress common.Address, opts *bind.CallOpts) (*big.Int, error)

Get the total amount of rewards available for a node rewards claimer

func GetNodeClaimRewardsPerc

func GetNodeClaimRewardsPerc(ggp *gogopool.GoGoPool, claimerAddress common.Address, opts *bind.CallOpts) (float64, error)

Get the percentage of rewards available for a node rewards claimer

func GetNodeClaimsEnabled

func GetNodeClaimsEnabled(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (bool, error)

Get whether node reward claims are enabled

func GetNodeOperatorRewardsPercent

func GetNodeOperatorRewardsPercent(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (float64, error)

Get the percent of checkpoint rewards that goes to node operators

func GetNodeRegistrationTime

func GetNodeRegistrationTime(ggp *gogopool.GoGoPool, claimerAddress common.Address, opts *bind.CallOpts) (time.Time, error)

Get the time that the user registered as a claimer

func GetNodeTotalClaimed

func GetNodeTotalClaimed(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)

Get the total rewards claimed for this claiming contract this interval

func GetTrustedNodeClaimPossible

func GetTrustedNodeClaimPossible(ggp *gogopool.GoGoPool, claimerAddress common.Address, opts *bind.CallOpts) (bool, error)

Get whether a trusted node rewards claimer can claim

func GetTrustedNodeClaimRewardsAmount

func GetTrustedNodeClaimRewardsAmount(ggp *gogopool.GoGoPool, claimerAddress common.Address, opts *bind.CallOpts) (*big.Int, error)

Get the total amount of rewards available for a trusted node rewards claimer

func GetTrustedNodeClaimRewardsPerc

func GetTrustedNodeClaimRewardsPerc(ggp *gogopool.GoGoPool, claimerAddress common.Address, opts *bind.CallOpts) (float64, error)

Get the percentage of rewards available for a trusted node rewards claimer

func GetTrustedNodeClaimsEnabled

func GetTrustedNodeClaimsEnabled(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (bool, error)

Get whether trusted node reward claims are enabled

func GetTrustedNodeOperatorRewardsPercent

func GetTrustedNodeOperatorRewardsPercent(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (float64, error)

Get the percent of checkpoint rewards that goes to ODAO members

func GetTrustedNodeRegistrationTime

func GetTrustedNodeRegistrationTime(ggp *gogopool.GoGoPool, claimerAddress common.Address, opts *bind.CallOpts) (time.Time, error)

Get the time that the user registered as a claimer

func GetTrustedNodeTotalClaimed

func GetTrustedNodeTotalClaimed(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)

Get the total rewards claimed for this claiming contract this interval

Types

This section is empty.

Jump to

Keyboard shortcuts

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