This project implements a basic auction system using a Solidity smart contract, with tests written in TypeScript using Hardhat and Chai.
This project is a smart contract for an auction system implemented in Solidity. The contract allows users to create auctions with a starting price, discount rate, item description, and duration. Bidders can participate in the auction by sending bids, and the contract ensures that the highest bid wins when the auction ends.
The project includes a comprehensive test suite written in TypeScript using the Hardhat framework and the Chai assertion library.
To run the project locally, follow these steps:
npm install
or yarn install
.npx hardhat compile
.npx hardhat test
.npx hardhat compile
: Compile the smart contracts.npx hardhat test
: Run the test suite.npx hardhat node
: Start a local Ethereum node.npx hardhat run scripts/deploy.js
: Deploy the smart contract.