# dao

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

# Index

# Constants

Settings

const (
    ProposalDAONamesBatchSize = 50
    ProposalDetailsBatchSize  = 10
)

# func GetDAOProposalIDs (opens new window)

func GetDAOProposalIDs(rp *rocketpool.RocketPool, daoName string, opts *bind.CallOpts) ([]uint64, error)

Get the IDs of proposals filtered by a DAO

# func GetProposalCount (opens new window)

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

Get the proposal count

# func GetProposalCreatedTime (opens new window)

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

# func GetProposalDAO (opens new window)

func GetProposalDAO(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.CallOpts) (string, error)

Proposal details

# func GetProposalEndTime (opens new window)

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

# func GetProposalExpiryTime (opens new window)

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

# func GetProposalIsCancelled (opens new window)

func GetProposalIsCancelled(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.CallOpts) (bool, error)

# func GetProposalIsExecuted (opens new window)

func GetProposalIsExecuted(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.CallOpts) (bool, error)

# func GetProposalMemberSupported (opens new window)

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

Get whether a member has voted in support of a proposal

# func GetProposalMemberVoted (opens new window)

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

Get whether a member has voted on a proposal

# func GetProposalMessage (opens new window)

func GetProposalMessage(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.CallOpts) (string, error)

# func GetProposalPayload (opens new window)

func GetProposalPayload(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.CallOpts) ([]byte, error)

# func GetProposalPayloadStr (opens new window)

func GetProposalPayloadStr(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.CallOpts) (string, error)

# func GetProposalPayloadString (opens new window)

func GetProposalPayloadString(rp *rocketpool.RocketPool, daoName string, payload []byte) (string, error)

# func GetProposalProposerAddress (opens new window)

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

# func GetProposalStartTime (opens new window)

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

# func GetProposalState (opens new window)

func GetProposalState(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.CallOpts) (rptypes.ProposalState, error)

# func GetProposalVotesAgainst (opens new window)

func GetProposalVotesAgainst(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.CallOpts) (float64, error)

# func GetProposalVotesFor (opens new window)

func GetProposalVotesFor(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.CallOpts) (float64, error)

# func GetProposalVotesRequired (opens new window)

func GetProposalVotesRequired(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.CallOpts) (float64, error)

# type ProposalDetails (opens new window)

Proposal details

type ProposalDetails struct {
    ID              uint64                `json:"id"`
    DAO             string                `json:"dao"`
    ProposerAddress common.Address        `json:"proposerAddress"`
    Message         string                `json:"message"`
    CreatedTime     uint64                `json:"createdTime"`
    StartTime       uint64                `json:"startTime"`
    EndTime         uint64                `json:"endTime"`
    ExpiryTime      uint64                `json:"expiryTime"`
    VotesRequired   float64               `json:"votesRequired"`
    VotesFor        float64               `json:"votesFor"`
    VotesAgainst    float64               `json:"votesAgainst"`
    MemberVoted     bool                  `json:"memberVoted"`
    MemberSupported bool                  `json:"memberSupported"`
    IsCancelled     bool                  `json:"isCancelled"`
    IsExecuted      bool                  `json:"isExecuted"`
    Payload         []byte                `json:"payload"`
    PayloadStr      string                `json:"payloadStr"`
    State           rptypes.ProposalState `json:"state"`
}

# func GetDAOProposals (opens new window)

func GetDAOProposals(rp *rocketpool.RocketPool, daoName string, opts *bind.CallOpts) ([]ProposalDetails, error)

Get DAO proposal details

# func GetDAOProposalsWithMember (opens new window)

func GetDAOProposalsWithMember(rp *rocketpool.RocketPool, daoName string, memberAddress common.Address, opts *bind.CallOpts) ([]ProposalDetails, error)

Get DAO proposal details with member data

# func GetProposalDetails (opens new window)

func GetProposalDetails(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.CallOpts) (ProposalDetails, error)

Get a proposal's details

# func GetProposalDetailsWithMember (opens new window)

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

Get a proposal's details with member data

# func GetProposals (opens new window)

func GetProposals(rp *rocketpool.RocketPool, opts *bind.CallOpts) ([]ProposalDetails, error)

Get all proposal details

# func GetProposalsWithMember (opens new window)

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

Get all proposal details with member data