How democracyearth/wallet works
Project type and purpose
• This is a single-page decentralized application (“dapp”) built in React that provides a UI for interacting with Ethereum-based governance smart contracts (MolochDAO, ERC20/721, Chainlink oracles).
• It is a front-end only repository: no Node/Express backend. Instead it relies on Web3.js, The Graph Protocol, Ethereum nodes (e.g. Infura), and IPFS for hosting.
File structure
• Top level:
• public/ – static HTML, manifest, and robots.txt (serves index.html for the React app).
• src/ – all client code
• docs/ – images and screenshots for marketing
• src/components/ – UI building blocks (Account, Browser, DAO, Dapp, Contract, etc.).
• src/lib/ – Web3 utilities, ABIs, contract-address constants, helpers for interacting with Ethereum.
• src/utils/ – analytics, string/date helpers.
• src/lang/ – internationalization JSON.
• src/styles/ – vanilla CSS.
• config files: jsconfig.json, package.json, .env for environment variables (e.g. INFURA_KEY).
README for additional insights
• Confirms that Web3.js and The Graph Protocol drive data reads and writes.
• Mentions deployment targets: IPFS, Ethereum mainnet/testnets.
• Notes support for ERC20, ERC721, MolochDAO, Chainlink price oracles.
Detail
• Break out major component groups: UI/Components, Lib/Web3, Language, Styles.
• External dependencies like MetaMask and analytics endpoints.