micro-hawk / wavey

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Wavey

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.

Technologies Used

  • Solidity
  • Hardhat (for local testing and deployment)
  • Metamask (for interacting with the contract on the Ethereum network)

Getting Started

To run this project on your local machine, follow these steps:

  1. Clone the repository to your local machine.
git clone https://github.com/micro-hawk/wavey.git
  1. Install the dependencies by running npm install.
cd wavey
npm install
  1. Update the hardhat.config.js file to use your preferred local network configuration.

  2. Run npx hardhat compile to compile the smart contract.

npm hardhat compile
  1. Run npx hardhat test to run the test suite.

  2. 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
  1. Connect Metamask to the network where the contract is deployed.

  2. Use the web app to interact with the deployed contract and send waves to the contract.

Resources

Contributors

About

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.

License:MIT License


Languages

Language:JavaScript 67.2%Language:EJS 28.1%Language:Solidity 4.7%