Giter Club home page Giter Club logo

cardano-crowdfunding-smart-contracts's Introduction

Cardano Crowdfunding Smart Contracts

This repository contains a comprehensive crowdfunding solution implemented through Cardano's Plutus smart contracts. It provides the necessary functionality to initiate a crowdfunding event, set a deadline, make bids, and close the event.

Overview

The smart contracts in this project facilitate a bidding style crowdfunding model where:

Offer: Anyone who wishes to raise funds can start by making an offer. The offer is made by transferring the item that is up for bidding to the auctionValidator contract along with the Offer datum. The datum specifies the minimum bid and the address of the offerer (seller).

Set Deadline: The seller sets a deadline for the auction. This transaction consumes the Offer UTXO, and creates a NoBids UTXO at the auctionValidator.

Bid: Participants can bid on the item. Each bid should be greater than the previous one. This transaction consumes the NoBids or Bidding UTXO at the auctionValidator and returns a Bidding UTXO with a greater value and the updated highest bid and bidder.

Hammer (Close auction): After the deadline, the seller can close the auction. This transaction pays the highest bid amount to the seller and transfers the item to the highest bidder. If there were no bids, the item is returned to the seller.

Setup

This project is built using Haskell and Plutus. Please ensure you have the latest versions of GHC, Cabal and Plutus installed on your system.

Clone this repository to your local machine and navigate into the project directory:

git clone https://github.com/yourusername/Cardano-Crowdfunding-Smart-Contracts.git
cd Cardano-Crowdfunding-Smart-Contracts

Install the necessary dependencies:

cabal update
cabal install

Compile the project:

cabal build

You can then interact with the contracts using the Plutus Playground or load them onto the Cardano blockchain.

cardano-crowdfunding-smart-contracts's People

Contributors

mylesgamez avatar

Watchers

 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.