Auction is a Solidity smart contract that facilitates auction functionality for various items.
- Clone this repository:
git clone https://github.com/gkirat/main.git
- Install the required dependencies: Solidity Compiler, Truffle Framework
- Deploy the smart contract to your preferred Ethereum network.
- 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.
- Deploy the smart contract to your preferred Ethereum network.
- Use the
bid()
function to participate in the auction by sending Ether along with your bid. - The auctioneer can cancel the auction using the
cancelAuc()
function if needed.
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.
- 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.