Skip to content
Web & Apps 2024 10 / 14

Company Voting on the Blockchain

Tamper-proof company votes and treasury management with smart contracts.

Built with

Languages

  • Solidity
  • JavaScript

Skills & tools

  • Hardhat
  • Ethers.js
  • React
  • MetaMask
  • Smart contracts
Illustration of a chain of glowing blocks with lock icons above a world map

A decentralised voting platform in Solidity and Hardhat with manager and customer roles, vote creation and closing, company funds and withdrawal requests — connected to a React front end through MetaMask.

Why a blockchain

Votes inside a company only matter if everyone trusts the count. Putting them on-chain makes every vote transparent and immutable.

What the contract does

  • Roles — managers create and close votes; customers participate
  • Votes — created, joined and closed entirely on-chain
  • Treasury — company funds and withdrawal requests, with events such as UserAdded, VoteCreated and FundsAdded

The React front end talks to the contract through MetaMask, and the whole system runs locally on Ganache for testing.