This is a full-stack blockchain project that enables users to deploy and interact with basic smart contracts through a localhosted website. The project facilitates the deployment of smart contracts and their integration with a frontend interface for seamless interaction with the blockchain.
- Deployment of basic smart contracts
- Integration with a frontend interface
- Interaction with deployed contracts through a localhosted website
- Testing functionality with Hardhat
- Gas estimation and USD cost estimation
- Automatic verification of contracts on Etherscan
- Clone the repository.
- Install dependencies using Yarn:
yarn install
- Deploy the smart contracts:
yarn hardhat deploy
- Test the contracts:
yarn hardhat test
- Connect to a testnet:
yarn hardhat deploy --network sepolia
- Run scripts for funding or withdrawal:
yarn hardhat run scripts/fund.js
oryarn hardhat run scripts/withdraw.js
- Verify contracts on Etherscan:
yarn hardhat verify --constructor-args arguments.js DEPLOYED_CONTRACT_ADDRESS
- Set SEPOLIA_RPC_URL and PRIVATE_KEY as environment variables. You can add them to a .env file.
- Obtain testnet ETH from faucets.chain.link and ensure it shows up in your Metamask.
For help or inquiries, feel free to reach out via oundel.store@gmail.com or open an issue in the repository.
This project is licensed under the MIT License.