Documentation ¶
Index ¶
- Constants
- func GetDAOProposalIDs(rp *stader.EthxContractManager, daoName string, opts *bind.CallOpts) ([]uint64, error)
- func GetProposalCount(rp *stader.EthxContractManager, opts *bind.CallOpts) (uint64, error)
- func GetProposalCreatedTime(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (uint64, error)
- func GetProposalDAO(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (string, error)
- func GetProposalEndTime(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (uint64, error)
- func GetProposalExpiryTime(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (uint64, error)
- func GetProposalIsCancelled(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (bool, error)
- func GetProposalIsExecuted(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (bool, error)
- func GetProposalMemberSupported(rp *stader.EthxContractManager, proposalId uint64, ...) (bool, error)
- func GetProposalMemberVoted(rp *stader.EthxContractManager, proposalId uint64, ...) (bool, error)
- func GetProposalMessage(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (string, error)
- func GetProposalPayload(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) ([]byte, error)
- func GetProposalPayloadStr(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (string, error)
- func GetProposalPayloadString(rp *stader.EthxContractManager, daoName string, payload []byte, ...) (string, error)
- func GetProposalProposerAddress(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (common.Address, error)
- func GetProposalStartTime(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (uint64, error)
- func GetProposalState(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (rptypes.ProposalState, error)
- func GetProposalVotesAgainst(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (float64, error)
- func GetProposalVotesFor(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (float64, error)
- func GetProposalVotesRequired(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (float64, error)
- type ProposalDetails
- func GetDAOProposals(rp *stader.EthxContractManager, daoName string, opts *bind.CallOpts) ([]ProposalDetails, error)
- func GetDAOProposalsWithMember(rp *stader.EthxContractManager, daoName string, memberAddress common.Address, ...) ([]ProposalDetails, error)
- func GetProposalDetails(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (ProposalDetails, error)
- func GetProposalDetailsWithMember(rp *stader.EthxContractManager, proposalId uint64, ...) (ProposalDetails, error)
- func GetProposals(rp *stader.EthxContractManager, opts *bind.CallOpts) ([]ProposalDetails, error)
- func GetProposalsWithMember(rp *stader.EthxContractManager, memberAddress common.Address, ...) ([]ProposalDetails, error)
Constants ¶
View Source
const ( ProposalDAONamesBatchSize = 50 ProposalDetailsBatchSize = 10 )
Settings
Variables ¶
This section is empty.
Functions ¶
func GetDAOProposalIDs ¶
func GetDAOProposalIDs(rp *stader.EthxContractManager, daoName string, opts *bind.CallOpts) ([]uint64, error)
Get the IDs of proposals filtered by a DAO
func GetProposalCount ¶
Get the proposal count
func GetProposalCreatedTime ¶
func GetProposalDAO ¶
func GetProposalDAO(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (string, error)
Proposal details
func GetProposalEndTime ¶
func GetProposalExpiryTime ¶
func GetProposalIsCancelled ¶
func GetProposalIsExecuted ¶
func GetProposalMemberSupported ¶
func GetProposalMemberSupported(rp *stader.EthxContractManager, proposalId uint64, memberAddress common.Address, opts *bind.CallOpts) (bool, error)
Get whether a member has voted in support of a proposal
func GetProposalMemberVoted ¶
func GetProposalMemberVoted(rp *stader.EthxContractManager, proposalId uint64, memberAddress common.Address, opts *bind.CallOpts) (bool, error)
Get whether a member has voted on a proposal
func GetProposalMessage ¶
func GetProposalPayload ¶
func GetProposalPayloadStr ¶
func GetProposalStartTime ¶
func GetProposalState ¶
func GetProposalState(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (rptypes.ProposalState, error)
func GetProposalVotesAgainst ¶
func GetProposalVotesFor ¶
Types ¶
type ProposalDetails ¶
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"` }
Proposal details
func GetDAOProposals ¶
func GetDAOProposals(rp *stader.EthxContractManager, daoName string, opts *bind.CallOpts) ([]ProposalDetails, error)
Get DAO proposal details
func GetDAOProposalsWithMember ¶
func GetDAOProposalsWithMember(rp *stader.EthxContractManager, daoName string, memberAddress common.Address, opts *bind.CallOpts) ([]ProposalDetails, error)
Get DAO proposal details with member data
func GetProposalDetails ¶
func GetProposalDetails(rp *stader.EthxContractManager, proposalId uint64, opts *bind.CallOpts) (ProposalDetails, error)
Get a proposal's details
func GetProposalDetailsWithMember ¶
func GetProposalDetailsWithMember(rp *stader.EthxContractManager, proposalId uint64, memberAddress common.Address, opts *bind.CallOpts) (ProposalDetails, error)
Get a proposal's details with member data
func GetProposals ¶
func GetProposals(rp *stader.EthxContractManager, opts *bind.CallOpts) ([]ProposalDetails, error)
Get all proposal details
func GetProposalsWithMember ¶
func GetProposalsWithMember(rp *stader.EthxContractManager, memberAddress common.Address, opts *bind.CallOpts) ([]ProposalDetails, error)
Get all proposal details with member data
Click to show internal directories.
Click to hide internal directories.