Skip to content

trustednode

go
import "github.com/rocket-pool/rocketpool-go/dao/trustednode"

Index

Constants

Settings

go
const (
    MemberAddressBatchSize = 50
    MemberDetailsBatchSize = 20
)

func BootstrapBool

go
func BootstrapBool(rp *rocketpool.RocketPool, contractName, settingPath string, value bool, opts *bind.TransactOpts) (common.Hash, error)

Bootstrap a bool setting

func BootstrapMember

go
func BootstrapMember(rp *rocketpool.RocketPool, id, url string, nodeAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)

Bootstrap a DAO member

func BootstrapUint

go
func BootstrapUint(rp *rocketpool.RocketPool, contractName, settingPath string, value *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Bootstrap a uint256 setting

func BootstrapUpgrade

go
func BootstrapUpgrade(rp *rocketpool.RocketPool, upgradeType, contractName, contractAbi string, contractAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)

Bootstrap a contract upgrade

func CancelProposal

go
func CancelProposal(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.TransactOpts) (common.Hash, error)

Cancel a submitted proposal

func DecideChallenge

go
func DecideChallenge(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)

Decide a challenge against a node

func EstimateBootstrapBoolGas

go
func EstimateBootstrapBoolGas(rp *rocketpool.RocketPool, contractName, settingPath string, value bool, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of BootstrapBool

func EstimateBootstrapMemberGas

go
func EstimateBootstrapMemberGas(rp *rocketpool.RocketPool, id, url string, nodeAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of BootstrapMember

func EstimateBootstrapUintGas

go
func EstimateBootstrapUintGas(rp *rocketpool.RocketPool, contractName, settingPath string, value *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of BootstrapUint

func EstimateBootstrapUpgradeGas

go
func EstimateBootstrapUpgradeGas(rp *rocketpool.RocketPool, upgradeType, contractName, contractAbi string, contractAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of BootstrapUpgrade

func EstimateCancelProposalGas

go
func EstimateCancelProposalGas(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of CancelProposal

func EstimateDecideChallengeGas

go
func EstimateDecideChallengeGas(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of DecideChallenge

func EstimateExecuteProposalGas

go
func EstimateExecuteProposalGas(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of ExecuteProposal

func EstimateJoinGas

go
func EstimateJoinGas(rp *rocketpool.RocketPool, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of Join

func EstimateLeaveGas

go
func EstimateLeaveGas(rp *rocketpool.RocketPool, rplBondRefundAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of Leave

func EstimateMakeChallengeGas

go
func EstimateMakeChallengeGas(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of MakeChallenge

func EstimateProposalGas

go
func EstimateProposalGas(rp *rocketpool.RocketPool, message string, payload []byte, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of a proposal submission

func EstimateProposeInviteMemberGas

go
func EstimateProposeInviteMemberGas(rp *rocketpool.RocketPool, message string, newMemberAddress common.Address, newMemberId, newMemberUrl string, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of ProposeInviteMember

func EstimateProposeKickMemberGas

go
func EstimateProposeKickMemberGas(rp *rocketpool.RocketPool, message string, memberAddress common.Address, rplFineAmount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of ProposeKickMember

func EstimateProposeMemberLeaveGas

go
func EstimateProposeMemberLeaveGas(rp *rocketpool.RocketPool, message string, memberAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of ProposeMemberLeave

func EstimateProposeReplaceMemberGas

go
func EstimateProposeReplaceMemberGas(rp *rocketpool.RocketPool, message string, memberAddress, newMemberAddress common.Address, newMemberId, newMemberUrl string, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of ProposeReplaceMember

func EstimateProposeSetBoolGas

go
func EstimateProposeSetBoolGas(rp *rocketpool.RocketPool, message, contractName, settingPath string, value bool, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of ProposeSetBool

func EstimateProposeSetUintGas

go
func EstimateProposeSetUintGas(rp *rocketpool.RocketPool, message, contractName, settingPath string, value *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of ProposeSetUint

func EstimateProposeUpgradeContractGas

go
func EstimateProposeUpgradeContractGas(rp *rocketpool.RocketPool, message, upgradeType, contractName, contractAbi string, contractAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of ProposeUpgradeContract

func EstimateVoteOnProposalGas

go
func EstimateVoteOnProposalGas(rp *rocketpool.RocketPool, proposalId uint64, support bool, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of VoteOnProposal

func ExecuteProposal

go
func ExecuteProposal(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.TransactOpts) (common.Hash, error)

Execute a submitted proposal

func GetMemberAddresses

go
func GetMemberAddresses(rp *rocketpool.RocketPool, opts *bind.CallOpts) ([]common.Address, error)

Get all member addresses

func GetMemberAt

go
func GetMemberAt(rp *rocketpool.RocketPool, index uint64, opts *bind.CallOpts) (common.Address, error)

Get a member address by index

func GetMemberCount

go
func GetMemberCount(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)

Get the member count

func GetMemberExists

go
func GetMemberExists(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (bool, error)

Member details

func GetMemberID

go
func GetMemberID(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (string, error)

func GetMemberInviteProposalExecutedTime

go
func GetMemberInviteProposalExecutedTime(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)

Get the time that a proposal for a member was executed at

func GetMemberIsChallenged

go
func GetMemberIsChallenged(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (bool, error)

Get whether a member has an active challenge against them

func GetMemberJoinedTime

go
func GetMemberJoinedTime(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)

func GetMemberLastProposalTime

go
func GetMemberLastProposalTime(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)

func GetMemberLeaveProposalExecutedTime

go
func GetMemberLeaveProposalExecutedTime(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)

func GetMemberProposalExecutedTime

go
func GetMemberProposalExecutedTime(rp *rocketpool.RocketPool, proposalType string, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)

func GetMemberRPLBondAmount

go
func GetMemberRPLBondAmount(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (*big.Int, error)

func GetMemberReplaceProposalExecutedTime

go
func GetMemberReplaceProposalExecutedTime(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)

func GetMemberReplacementAddress

go
func GetMemberReplacementAddress(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (common.Address, error)

Get a member's replacement address if being replaced

func GetMemberUnbondedValidatorCount

go
func GetMemberUnbondedValidatorCount(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)

func GetMemberUrl

go
func GetMemberUrl(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (string, error)

func GetMinimumMemberCount

go
func GetMinimumMemberCount(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)

Get the minimum member count

func Join

go
func Join(rp *rocketpool.RocketPool, opts *bind.TransactOpts) (common.Hash, error)

Join the trusted node DAO Requires an executed invite proposal

func Leave

go
func Leave(rp *rocketpool.RocketPool, rplBondRefundAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)

Leave the trusted node DAO Requires an executed leave proposal

func MakeChallenge

go
func MakeChallenge(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)

Make a challenge against a node

func ProposeInviteMember

go
func ProposeInviteMember(rp *rocketpool.RocketPool, message string, newMemberAddress common.Address, newMemberId, newMemberUrl string, opts *bind.TransactOpts) (uint64, common.Hash, error)

Submit a proposal to invite a new member to the trusted node DAO

func ProposeKickMember

go
func ProposeKickMember(rp *rocketpool.RocketPool, message string, memberAddress common.Address, rplFineAmount *big.Int, opts *bind.TransactOpts) (uint64, common.Hash, error)

Submit a proposal to kick a member from the trusted node DAO

func ProposeMemberLeave

go
func ProposeMemberLeave(rp *rocketpool.RocketPool, message string, memberAddress common.Address, opts *bind.TransactOpts) (uint64, common.Hash, error)

Submit a proposal for a member to leave the trusted node DAO

func ProposeReplaceMember

go
func ProposeReplaceMember(rp *rocketpool.RocketPool, message string, memberAddress, newMemberAddress common.Address, newMemberId, newMemberUrl string, opts *bind.TransactOpts) (uint64, common.Hash, error)

Submit a proposal to replace a member in the trusted node DAO

func ProposeSetBool

go
func ProposeSetBool(rp *rocketpool.RocketPool, message, contractName, settingPath string, value bool, opts *bind.TransactOpts) (uint64, common.Hash, error)

Submit a proposal to update a bool trusted node DAO setting

func ProposeSetUint

go
func ProposeSetUint(rp *rocketpool.RocketPool, message, contractName, settingPath string, value *big.Int, opts *bind.TransactOpts) (uint64, common.Hash, error)

Submit a proposal to update a uint trusted node DAO setting

func ProposeUpgradeContract

go
func ProposeUpgradeContract(rp *rocketpool.RocketPool, message, upgradeType, contractName, contractAbi string, contractAddress common.Address, opts *bind.TransactOpts) (uint64, common.Hash, error)

Submit a proposal to upgrade a contract

func SubmitProposal

go
func SubmitProposal(rp *rocketpool.RocketPool, message string, payload []byte, opts *bind.TransactOpts) (uint64, common.Hash, error)

Submit a trusted node DAO proposal Returns the ID of the new proposal

func VoteOnProposal

go
func VoteOnProposal(rp *rocketpool.RocketPool, proposalId uint64, support bool, opts *bind.TransactOpts) (common.Hash, error)

Vote on a submitted proposal

type MemberDetails

Proposal details

go
type MemberDetails struct {
    Address                common.Address `json:"address"`
    Exists                 bool           `json:"exists"`
    ID                     string         `json:"id"`
    Url                    string         `json:"url"`
    JoinedTime             uint64         `json:"joinedTime"`
    LastProposalTime       uint64         `json:"lastProposalTime"`
    RPLBondAmount          *big.Int       `json:"rplBondAmount"`
    UnbondedValidatorCount uint64         `json:"unbondedValidatorCount"`
}

func GetMemberDetails

go
func GetMemberDetails(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (MemberDetails, error)

Get a member's details

func GetMembers

go
func GetMembers(rp *rocketpool.RocketPool, opts *bind.CallOpts) ([]MemberDetails, error)

Get all member details