trustednode

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: GPL-3.0 Imports: 9 Imported by: 10

Documentation

Index

Constants

View Source
const (
	MemberAddressBatchSize = 50
	MemberDetailsBatchSize = 20
)

Settings

Variables

This section is empty.

Functions

func BootstrapBool

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

Bootstrap a bool setting

func BootstrapMember

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

Bootstrap a DAO member

func BootstrapUint

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

Bootstrap a uint256 setting

func BootstrapUpgrade

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

Bootstrap a contract upgrade

func CancelProposal

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

Cancel a submitted proposal

func DecideChallenge

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

Decide a challenge against a node

func EstimateBootstrapBoolGas

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

Estimate the gas of BootstrapBool

func EstimateBootstrapMemberGas

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

Estimate the gas of BootstrapMember

func EstimateBootstrapUintGas

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

Estimate the gas of BootstrapUint

func EstimateBootstrapUpgradeGas

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

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

Estimate the gas of CancelProposal

func EstimateDecideChallengeGas

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

Estimate the gas of DecideChallenge

func EstimateExecuteProposalGas

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

Estimate the gas of ExecuteProposal

func EstimateJoinGas

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

Estimate the gas of Join

func EstimateLeaveGas

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

Estimate the gas of Leave

func EstimateMakeChallengeGas

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

Estimate the gas of MakeChallenge

func EstimateProposalGas

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

Estimate the gas of a proposal submission

func EstimateProposeInviteMemberGas

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

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

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

Estimate the gas of ProposeMemberLeave

func EstimateProposeReplaceMemberGas

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

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

Estimate the gas of ProposeSetBool

func EstimateProposeSetUintGas

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

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

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

Estimate the gas of VoteOnProposal

func ExecuteProposal

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

Execute a submitted proposal

func GetMemberAddresses

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

Get all member addresses

func GetMemberAt

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

Get a member address by index

func GetMemberCount

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

Get the member count

func GetMemberExists

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

Member details

func GetMemberID

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

func GetMemberInviteProposalExecutedTime

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

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

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

func GetMemberLastProposalTime

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

func GetMemberLeaveProposalExecutedTime

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

func GetMemberProposalExecutedTime

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

func GetMemberRPLBondAmount

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

func GetMemberReplaceProposalExecutedTime

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

func GetMemberReplacementAddress

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

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

func GetMemberUrl

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

func GetMinimumMemberCount

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

Get the minimum member count

func Join

Join the trusted node DAO Requires an executed invite proposal

func Leave

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

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

Make a challenge against a node

func ProposeInviteMember

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

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

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

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

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

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

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

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

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

Vote on a submitted proposal

Types

type MemberDetails

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"`
}

Proposal details

func GetMemberDetails

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

Get a member's details

func GetMembers

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

Get all member details

Jump to

Keyboard shortcuts

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