Fortress
Search…
Fortress Credit and Lending
FTS Tokenomics
Supplying Assets
Borrowing Assets
FAI Stablecoin (Depreciated)
Interest Rates
Governance
FTS
Delegate
Delegate By Signature
Get Current Votes
Get Prior Votes
Fortress Governance
Quorum Votes
Proposal Threshold
Proposal Max Operations
Voting Delay
Voting Period
Propose
Queue
Execute
Cancel
Get Actions
Get Receipt
State
Cast Vote
Cast Vote By Signature
Timelock
Pause Guardian
Forced Liquidations
Smart Contracts
Guides
Road Map
Protocol Documentation
Getting Started
fTokens
Unitroller
Security
Powered By
GitBook
State
Gets the proposal state for the specified proposal. The return value, ProposalState is an enumerated type defined in the Governor Alpha contract.
function state(uint proposalId) returns (ProposalState)
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, and Executed.
Solidity
GovernorAlpha gov = GovernorAlpha(0x123...); // contract address
GovernorAlpha.ProposalState state = gov.state(123);
Web3 1.2.6
const proposalStates = ['Pending', 'Active', 'Canceled', 'Defeated', 'Succeeded', 'Queued', 'Expired', 'Executed'];
const proposalId = 123;
result = await gov.methods.state(proposalId).call();
const proposalState = proposalStates[result];
Previous
Get Receipt
Next
Cast Vote
Last modified
1yr ago
Copy link
Outline
Solidity
Web3 1.2.6