This is a simple Dutch Auction in Smart Contract. in which the assets will start at the designated price and it will gradually decreate the price automatically until the time runs out or the contract owner set a reservePrice
before the auction start.
when someone bid
(buy
) the assets, in which the smart contract will deduce wei
according to the price buyer bid and transfer the asset into the buyer
.
- refer to Hardhat for more Documentation
$ git clone [email protected]:KevinH2810/dutchAuction-smartContract.git
$ npm i
before we continue to testing, make sure you have installed hardhat on your local, refer to: hardhat
after installing hardhat, make sure you also have install the prequisite libs.
to test the contract in overall use the following command :
$ npx hardhat test
Or if you want to test specific file use: