ProposalState
is an enumerated type defined in the Governor Alpha contract.proposalId
: ID of a proposal in which to get its state.RETURN
: Enumerated type ProposalState. The types are Pending, Active, Canceled, Defeated, Succeeded, Queued, Expired, andExecuted.