security

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MemberAddressBatchSize = 50
	MemberDetailsBatchSize = 20
)

Settings

Variables

This section is empty.

Functions

func CancelProposal

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

Cancel a submitted proposal

func EstimateCancelProposalGas

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

Estimate the gas of CancelProposal

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 EstimateKickGas

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

Estimate the gas of Kick

func EstimateKickMultiGas

func EstimateKickMultiGas(rp *rocketpool.RocketPool, addresses []common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of KickMulti

func EstimateLeaveGas

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

Estimate the gas of Leave

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 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 EstimateRequestLeaveGas

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

Estimate the gas of RequestLeave

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 GetMemberJoinedTime

func GetMemberJoinedTime(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 GetMemberQuorumVotesRequired

func GetMemberQuorumVotesRequired(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)

Get the amount of member votes need for a proposal to pass (as a fraction of 1e18)

func Join

Join the security DAO Requires an executed invite proposal

func Kick

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

Removes a member from the security DAO

func KickMulti

func KickMulti(rp *rocketpool.RocketPool, addresses []common.Address, opts *bind.TransactOpts) (common.Hash, error)

Removes multiple members from the security DAO

func Leave

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

A member who has asked to leave and waited the required time can call this method to formally leave the security council

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 RequestLeave

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

A member who wishes to leave the security council can call this method to initiate the process

func SubmitProposal

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

Submit a security 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 SecurityDAOMemberDetails

type SecurityDAOMemberDetails struct {
	Address    common.Address `json:"address"`
	Exists     bool           `json:"exists"`
	ID         string         `json:"id"`
	JoinedTime uint64         `json:"joinedTime"`
}

Member details

func GetMemberDetails

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

Get a member's details

func GetMembers

Get all member details

Jump to

Keyboard shortcuts

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