Back to Browse

How to build an on-chain DAO | Typescript & Solidity (Python version in description)

45.3K views
Mar 4, 2022
1:26:32

Using Compound and Openzeppelin as a basis, we build a 100% on-chain DAO using an ERC20 governance token for votes. And yes, that is me doing windmills. โœ๏ธ Article: https://betterprogramming.pub/how-to-code-an-on-chain-dao-e525e13a57be?sk=959cb289140bba734acfe843d8226c4a ๐Ÿ’ป JS Code: https://github.com/PatrickAlphaC/dao-template ๐Ÿ’ป PY Code: https://github.com/brownie-mix/dao-mix ๐Ÿ Python Video: https://www.youtube.com/watch?v=rD8AxZ_wBA4 ๐ŸŽ› Openzeppelin Governance: https://docs.openzeppelin.com/contracts/4.x/api/governance ๐Ÿ“ˆ Compound Governance: https://compound.finance/governance ๐Ÿง™โ€โ™€๏ธ Contract Wizard: https://docs.openzeppelin.com/contracts/4.x/wizard ๐Ÿ—ณ CastVoteBySig: https://forum.openzeppelin.com/t/what-is-votecastbysig/17069/2 โฐTimeStamps 0:00 | Introduction 1:06 | Ending Code Walkthrough 2:18 | Setup and Agenda 4:20 | Box Contract 6:30 | Governance Token 12:10 | Governance Contract 19:14 | Timelock Contract ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰ โœ… 22:15 | Checkpoint - Great work! โœ… ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰ 22:55 | Deployment Scripts: Governor Token 38:10 | Deployment Scripts: TimeLock 40:30 | Deployment Scripts: Governance 44:45 | Deployment Scripts: Setup Contracts 50:30 | Deployment Scripts: Box ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰ โœ… 53:48 | Checkpoint - Great work! โœ… ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰ 54:25 | Scripts: Propose 1:11:00 | Scripts: Vote 1:18:10 | Scripts: Queue And Execute 1:25:55 | Conclusion & Outro Check out these articles to learn about some of these tools and start your journey as a smart contract engineer! ๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡ ๐Ÿ“•How to Become a Blockchain Engineer: https://betterprogramming.pub/how-to-become-a-blockchain-engineer-fa4386a0504f?sk=745ae4e8f9389907eb98e68b736afaf1 โœ๏ธTop 10 Resources, Tutorials, and Follows: https://dev.to/patrickalphac/top-10-smart-contract-solidity-developer-learning-resources-46db ๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘†๐Ÿ‘† โœ…โœ… Donate โœ…โœ… I use donated funds to spend money on making fun & informational videos. ETH/Polygon/Avalanche/EVM Chains Wallet address: 0x9680201d9c93d65a3603d2088d125e955c73BD65 ๐Ÿ˜ธ๐Ÿ˜ธJoin the community!๐Ÿ˜ธ๐Ÿ˜ธ Chainlink developers discord: https://discord.gg/2YHSAey Twitter: https://twitter.com/patrickalphac Medium: https://medium.com/@patrick.collins_58673 TikTok: https://www.tiktok.com/@patrickalphac? Twitch Stream Uploads & Shorts: https://www.youtube.com/channel/UCMHHNgcezTnfrJUM1vIiZlQ Twitch: https://www.twitch.tv/patrickalphac All thoughts and opinions are my own.

Download

0 formats

No download links available.

How to build an on-chain DAO | Typescript & Solidity (Python version in description) | NatokHD