trustednode

package
v0.0.0-...-a5a7577 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MembersSettingsContractName       = "rocketDAONodeTrustedSettingsMembers"
	QuorumSettingPath                 = "members.quorum"
	RPLBondSettingPath                = "members.rplbond"
	MinipoolUnbondedMaxSettingPath    = "members.minipool.unbonded.max"
	MinipoolUnbondedMinFeeSettingPath = "members.minipool.unbonded.min.fee"
	ChallengeCooldownSettingPath      = "members.challenge.cooldown"
	ChallengeWindowSettingPath        = "members.challenge.window"
	ChallengeCostSettingPath          = "members.challenge.cost"
)

Config

View Source
const (
	MinipoolSettingsContractName = "rocketDAONodeTrustedSettingsMinipool"
	ScrubPeriodPath              = "minipool.scrub.period"
	ScrubPenaltyEnabledPath      = "minipool.scrub.penalty.enabled"
)

Config

View Source
const (
	ProposalsSettingsContractName = "rocketDAONodeTrustedSettingsProposals"
	CooldownTimeSettingPath       = "proposal.cooldown.time"
	VoteTimeSettingPath           = "proposal.vote.time"
	VoteDelayTimeSettingPath      = "proposal.vote.delay.time"
	ExecuteTimeSettingPath        = "proposal.execute.time"
	ActionTimeSettingPath         = "proposal.action.time"
)

Config

View Source
const (
	RewardsSettingsContractName string = "rocketDAONodeTrustedSettingsRewards"
	NetworkEnabledPath          string = "rewards.network.enabled"
)

Config

Variables

This section is empty.

Functions

func GetChallengeCooldown

func GetChallengeCooldown(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (uint64, error)

The period a member must wait for before submitting another challenge, in blocks

func GetChallengeCost

The fee for a non-member to challenge a member, in wei

func GetChallengeWindow

The period during which a member can respond to a challenge, in blocks

func GetMinipoolUnbondedMax

func GetMinipoolUnbondedMax(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (uint64, error)

The maximum number of unbonded minipools a member can run

func GetMinipoolUnbondedMinFee

func GetMinipoolUnbondedMinFee(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (uint64, error)

The minimum commission rate before unbonded minipools are allowed

func GetNetworkEnabled

func GetNetworkEnabled(rp *stader.PermissionlessNodeRegistryContractManager, network *big.Int, opts *bind.CallOpts) (bool, error)

Get whether or not the provided rewards network is enabled

func GetProposalActionTime

func GetProposalActionTime(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (uint64, error)

The period during which an action can be performed on an executed proposal in seconds

func GetProposalCooldownTime

func GetProposalCooldownTime(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (uint64, error)

The cooldown period a member must wait after making a proposal before making another in seconds

func GetProposalExecuteTime

func GetProposalExecuteTime(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (uint64, error)

The period during which a passed proposal can be executed in time

func GetProposalVoteDelayTime

func GetProposalVoteDelayTime(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (uint64, error)

The delay after creation before a proposal can be voted on in seconds

func GetProposalVoteTime

func GetProposalVoteTime(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (uint64, error)

The period a proposal can be voted on for in seconds

func GetQuorum

Member proposal quorum threshold

func GetRPLBond

RPL bond required for a member

func GetScrubPenaltyEnabled

func GetScrubPenaltyEnabled(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (bool, error)

Whether or not the RPL slashing penalty is applied to scrubbed minipools

func GetScrubPeriod

The cooldown period a member must wait after making a proposal before making another in seconds

Types

This section is empty.

Jump to

Keyboard shortcuts

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