getProposal
Get information regarding a proposal made to an INTU vault
import { getProposal} from "@intuweb3/web";
getProposal(vaultAddress, proposalId,provider)
Parameters:[]
| Input | Type | Description |
|---|---|---|
| vaultAddress | string | address of the vault |
| proposalId | number | Id of proposal, retrieved from getVaults results |
| provider | object | Signer object acquired from ethers or equivalent |
Returns:
All of the data associated with a single proposal Id
| Name | Type | Description |
|---|---|---|
| id | BigNumber | id of proposal |
| voteForNeeded | BigNumber | Number of Votes needed |
| endTime | BigNumber | unix timestamp for vault creation. |
| voteForCount | count of for votes | |
| _calldata | string | |
| executed | boolean | completed or not |