Solidity by Example — Solidity 0.8.29 documentation
The following contract is quite complex, but showcases a lot of Solidity’s features. It implements a voting contract. Of course, the main problems of electronic voting is how to assign voting rights to the correct persons and how to prevent manipulation. We will not solve all problems here, but at least we will show how delegated voting can be done so that vote counting is automatic and completely transparent at the same time. The idea is to create one contract per ballot, providing a short name for each option. Then the creator of the contract who serves as chairperson will give the right to vote to each address individually. The persons behind the addresses can then choose to either vote themselves or to delegate their vote to a person they trust. At the end of the voting time, winningProposal() will return the proposal with the largest number of votes. open in Remix Currently, many transactions are needed to assign the rights to vote to all participants. Moreover, if two or more pro
Solidity by Example - Solidity 0.8.37-develop documentation Solidity by Example Edit on GitHub Solidity by Example Voting The following contract is quite complex, but showcases a lot of Solidity’s features. It implements a voting contract. Of course, the main problems of electronic voting is how to assign voting rights to the correct persons and how to prevent manipulation. We will not solve all problems here, but at least we will show how delegated voting can be done so that vote counting is automatic and completely transparent at the same time. The idea is to create one contract per ball
related reading
- Introduction to Smart Contracts — Solidity 0.8.38-develop documentationdocs.soliditylang.org
- Solidity by Examplesolidity-by-example.org
- Solidity Patternsfravoll.github.io
- Introduction to Smart Contracts - Solidity 0.8.24 documentationdocs.soliditylang.org
- The Ethereum Virtual Machine — How does it work? | by Luit | MyCrypto | Mediummedium.com
- REVM Is All You Need. How to build simulated blockchain… | by Solid Quant | Mediummedium.com
- Contract ABI Specification — Solidity 0.8.38-develop documentationdocs.soliditylang.org
- How to Learn Solidity Programming (the Fun Way) | Nat Eliason | Nat Eliasonnateliason.com
- Cheap, Anonymous Vickrey Auctions on-chainblog.aayushg.com
- You Could Have Invented Account Abstraction: Part 1 | Alchemyalchemy.com
- Solidity by Examplesolidity-by-example.org
- Ethereum development documentation | ethereum.orgethereum.org