Flipping Bits for Fun (and Profit)

Code

An experiment in bit packing in a simple voting dApp. The readme contains an explanation of what I learned about bit manipulation and packing in Solidity. The build packs a proposal into a record of vote start time, vote end time, votes for, votes against, and an open 16 bit space for extra data. All the aforementioned values are contained in one 256 bit value.

0x809F...Ac72
🏰BuidlGuidl is a registered 🤠 Wyoming DAO LLC
Fork me·