This is a sample project for building a smart contract on the Ethereum network using the Solidity programming language. The smart contract allows users to send waves to the contract and keeps track of the total number of waves sent. The contract also stores the wave messages from users in arrays using structs.
- Solidity
- Hardhat (for local testing and deployment)
- Metamask (for interacting with the contract on the Ethereum network)
To run this project on your local machine, follow these steps:
- Clone the repository to your local machine.
git clone https://github.com/micro-hawk/wavey.git
- Install the dependencies by running
npm install
.
cd wavey
npm install
-
Update the
hardhat.config.js
file to use your preferred local network configuration. -
Run
npx hardhat compile
to compile the smart contract.
npm hardhat compile
-
Run
npx hardhat test
to run the test suite. -
Deploy the smart contract to a testnet or the Ethereum mainnet using
npx hardhat run wave.js --network <network-name>
.
npx hardhat run wave.js --network rinkeby
-
Connect Metamask to the network where the contract is deployed.
-
Use the web app to interact with the deployed contract and send waves to the contract.
- Solidity Documentation: https://docs.soliditylang.org/en/v0.8.11/
- Hardhat Documentation: https://hardhat.org/getting-started/
- Metamask Documentation: https://docs.metamask.io/
- Vikas Das (microhawkx@gmail.com)