# trustednode

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

# Index

# Constants

Settings

const (
    MemberAddressBatchSize = 50
    MemberDetailsBatchSize = 20
)

# func BootstrapBool (opens new window)

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

Bootstrap a bool setting

# func BootstrapMember (opens new window)

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

Bootstrap a DAO member

# func BootstrapUint (opens new window)

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

Bootstrap a uint256 setting

# func BootstrapUpgrade (opens new window)

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

Bootstrap a contract upgrade

# func CancelProposal (opens new window)

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

Cancel a submitted proposal

# func DecideChallenge (opens new window)

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

Decide a challenge against a node

# func EstimateBootstrapBoolGas (opens new window)

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

Estimate the gas of BootstrapBool

# func EstimateBootstrapMemberGas (opens new window)

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

Estimate the gas of BootstrapMember

# func EstimateBootstrapUintGas (opens new window)

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

Estimate the gas of BootstrapUint

# func EstimateBootstrapUpgradeGas (opens new window)

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 (opens new window)

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

Estimate the gas of CancelProposal

# func EstimateDecideChallengeGas (opens new window)

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

Estimate the gas of DecideChallenge

# func EstimateExecuteProposalGas (opens new window)

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

Estimate the gas of ExecuteProposal

# func EstimateJoinGas (opens new window)

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

Estimate the gas of Join

# func EstimateLeaveGas (opens new window)

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

Estimate the gas of Leave

# func EstimateMakeChallengeGas (opens new window)

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

Estimate the gas of MakeChallenge

# func EstimateProposalGas (opens new window)

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

Estimate the gas of a proposal submission

# func EstimateProposeInviteMemberGas (opens new window)

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 (opens new window)

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 (opens new window)

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

Estimate the gas of ProposeMemberLeave

# func EstimateProposeReplaceMemberGas (opens new window)

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 (opens new window)

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

Estimate the gas of ProposeSetBool

# func EstimateProposeSetUintGas (opens new window)

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 (opens new window)

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 (opens new window)

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

Estimate the gas of VoteOnProposal

# func ExecuteProposal (opens new window)

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

Execute a submitted proposal

# func GetMemberAddresses (opens new window)

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

Get all member addresses

# func GetMemberAt (opens new window)

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

Get a member address by index

# func GetMemberCount (opens new window)

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

Get the member count

# func GetMemberExists (opens new window)

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

Member details

# func GetMemberID (opens new window)

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

# func GetMemberInviteProposalExecutedTime (opens new window)

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 (opens new window)

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 (opens new window)

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

# func GetMemberLastProposalTime (opens new window)

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

# func GetMemberLeaveProposalExecutedTime (opens new window)

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

# func GetMemberProposalExecutedTime (opens new window)

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

# func GetMemberRPLBondAmount (opens new window)

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

# func GetMemberReplaceProposalExecutedTime (opens new window)

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

# func GetMemberReplacementAddress (opens new window)

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 (opens new window)

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

# func GetMemberUrl (opens new window)

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

# func GetMinimumMemberCount (opens new window)

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

Get the minimum member count

# func Join (opens new window)

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

Join the trusted node DAO Requires an executed invite proposal

# func Leave (opens new window)

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 (opens new window)

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

Make a challenge against a node

# func ProposeInviteMember (opens new window)

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 (opens new window)

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 (opens new window)

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 (opens new window)

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 (opens new window)

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 (opens new window)

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 (opens new window)

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 (opens new window)

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 (opens new window)

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

Vote on a submitted proposal

# type MemberDetails (opens new window)

Proposal details

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 (opens new window)

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

Get a member's details

# func GetMembers (opens new window)

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

Get all member details