Skip to content

gkirat/Auction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Advance Auction Smart Contract

Auction is a Solidity smart contract that facilitates auction functionality for various items.

Getting Started

  1. Clone this repository: git clone https://github.com/gkirat/main.git
  2. Install the required dependencies: Solidity Compiler, Truffle Framework
  3. Deploy the smart contract to your preferred Ethereum network.

Features

  • The auction starts running as soon as the contract is deployed.
  • It defines a start time block (stblock) and an end time block (etblock) to set the duration of the auction.
  • Bids are submitted using the bid() function, and each bid must be higher than or equal to the previous bid plus a predefined bid increment (bid_increment).
  • The auctioneer can cancel the auction using the cancelAuc() function.
  • Bids made by different addresses are stored in a mapping.

Usage

  1. Deploy the smart contract to your preferred Ethereum network.
  2. Use the bid() function to participate in the auction by sending Ether along with your bid.
  3. The auctioneer can cancel the auction using the cancelAuc() function if needed.

License

This project is licensed under the MIT License - see the LICENSE file for details. Feel free to customize the information as per your requirements and project details. The Readme files provide an overview of the features and usage instructions for each smart contract.

Note

  • This smart contract is implemented in Solidity version 0.8.0.

Feel free to update the information as needed, such as adding instructions on how to deploy the contract to a specific network and how to interact with it using a web3 provider or a client-side application. Make sure to include any additional details that would be helpful for users or developers who want to utilize your smart contract.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published