Smart Contract Break-Down
Description
New Proposal
function createProposal(uint256 _end, string calldata _proposal) public onlyOwner{DAO voting
function vote(uint256 _proposal, bool _YesOrNo) public {
struct Vote {
uint256 end;
string proposal;
uint256 powerYes;
uint256 powerNo;
}
mapping(uint256 => Vote) proposals; //id to proposal
mapping(address => mapping(uint256 => bool)) hasVoted; //if user has voted on
proposal
uint256 runningProposals; // latest proposal idFund Raising
Last updated