Code Monkey home page Code Monkey logo

auction's Introduction

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.

auction's People

Contributors

gkirat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.