A Decentralized application working on ethereum or other EVM based chains where any user can post anonymus confessions.
Find the current deployed version on etherscan: https://goerli.etherscan.io/address/0x66Fe86341089f188Cf6aF5773c235729C8787CB1#code
Clone the project
git clone https://github.com/aritroCoder/confessions-smart-contractGo to the project directory
cd confessions-smart-contractInstall dependencies
yarn installMake your changes in the contract file, then compile the contract using
yarn hardhat compileor,
hh compileTo run the contract, you can use remix, or follow the deployment instructions
To deploy this project, you will need to create and add the following environment variables to your .env file:
GOERLI_RPC_URL
PRIVATE_KEY
You can get a GOERLI_RPC_URL from free services like alchemy and infura by signing up.
Use your test account's private key for PRIVATE_KEY. Don't run contracts on an account with real funds!
Additionally you might also add ETHERSCAN_API_KEY solely for verification purpose of the contract publically.
yarn hardhat deployor
hh deployDeploying on hardhat localhost (visible to your entire PC and you can connect other apps to this network like a actual blockchain)
If localhost blockchain is not running (this will deploy automatically)
yarn hardhat nodeIf localhost is already running
yarn hardhat deploy --network localhostYou can replace yarn hardhat with only hh in all commands.
yarn hardhat deploy --network goerliFor deploying in other testnets, add its RPC_URL in .env, then add its entry in hardhat.config.js file(in the networks object, similiar to goerli)
The process is similiar
yarn hardhat deploy --network mainnetNOTE: This command will cost real money. Use with caution
- Learn solidity
- Learn about hardhat
- Solidity by example
Contributions are always welcome!
You can start by opening an issue or creating a PR.