Giter Club home page Giter Club logo

eth-erc20-governance's Introduction

๐Ÿ ERC-20 Governance on Sepolia

Utilise OpenZeppelin's Governance contract wizard to deploy a decentralised governance system which allows a user to create a proposal (which contains some proposed code to execute), then allow all users (who hold the 'MyToken' ERC20 token which is deployed at the same time) to cast votes on whether the proposal should be accepted or rejected. If the proposal is accepted, the code can be executed.

Tasks

Deploy the governor contract and token on the Sepolia test network.

  • Add a Sepolia URL and private key to the hardhat config so that you can interact with the test network through Hardhat.
  • Reconfigure the contracts and deployment scripts:
    • Use a different voting period in MyGovernor.
    • delegate the votes to the owner
    • create a proposal
    • vote on the proposal
    • execute the proposal
  • Deploy the contracts to Sepolia npx hardhat run scripts/deploy.js --network sepolia.

Transactions on Sepolia Testnet

TODO:

Dependency npm:@openzeppelin/contracts:4.8.0 is vulnerable, safe version 4.8.3
CVE-2023-26488
6.5 Incorrect Calculation vulnerability with medium severity found CVE-2023-30542
8.8 Improper Input Validation vulnerability pending CVSS allocation CVE-2023-30541
5.3 Interpretation Conflict vulnerability pending CVSS allocation

eth-erc20-governance's People

Contributors

davidlpoole avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.