This project implements a candle auction using Solidity, Hardhat/Truffle.
These instructions will help you set up and run the project on your local machine.
- Node.js
- npm
- Hardhat or Truffle
-
Clone the repository:
git clone https://github.com/yourusername/candle-auction.git cd candle-auction
-
Install dependencies:
npm install
-
Compile the contract:
npx hardhat compile
-
Deploy the contract:
npx hardhat run scripts/deploy.js
-
Compile the contract:
truffle compile
-
Deploy the contract:
truffle migrate
Use the following commands to interact with the deployed contract.
// Example of placing a bid
let bidTx = await auction.bid({ value: ethers.utils.parseEther("1.0") });
await bidTx.wait();
// Example of ending the auction
let endTx = await auction.auctionEnd();
await endTx.wait();