Giter Site home page Giter Site logo

sealed-bid-auction's Introduction

Sealed bid Auction contract for NFTs

Github Actions

Note: WIP and Unaudited, use at your own risk, blah blah blah, etc etc etc

Description

Implements a First price sealed bid Auction(aka blind) contract and factory for a single ERC721 Asset. Inspired by the ENS RegistrarController.

Works using a commit-reveal scheme in which bidders commit hashed bids in the COMMIT phase and reveal their bids during the REVEAL phase.

The Auction maintains custody of the Asset until the auction is Finalized, or Cancelled.

The Auction owner has the following privileges:

  • Can start the auction with startAuction
  • Can cancel the auction with cancelAuction if the auction hasn't started or the reserve price isn't met

This contract intends to be as trustless as possible:

  • A new auction contract is deployed for each auction
  • Auction parameters(commit duration, reveal duration, reserve price) are set on deployment and are immutable
  • Anyone can advance the auction to the next phase once the auction has started

Development

Installation

Install Foundry

Compile

Compile the contracts with make build

Tests

Test with make test

Snapshots

Generate gas snapshots with make snapshot

sealed-bid-auction's People

Contributors

jonathanamenechi avatar

Watchers

James Cloos avatar  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.