Giter Site home page Giter Site logo

celo_sports_hub's Introduction

CeloSportsHub

Description

This is a sports hub dAPP where users can:

  • list sports services they offer and price them in cUSD
  • sports service providers can update the price or cancel the sale only when no service have been purchased
  • anyone can purchase a service by connecting their wallets and purchase desired service using cUSD
  • cUSD deducted from the person who purchases a sports service and credited to the service provider's wallet.

The novelty here is anybody offering a sports service can list their services and price them in cUSD thus any interested trainee can purchase the services using their CELO wallets. Transaction ID of wallet address represent payment of the service and is the proof of paymen as well as the receipt for access

Smart Contract Functionality Added

  • Add a sports service to the dAPP assigning fee in cUSD
  • Transfer cUSD token from purchaser of sports service wallet to owner/ sports service provider's wallet
  • Update Sales Price Method

Front End Functionality Added

  • Update sports service with the option to update price or cancel sale
  • Added more characteristics such as number of hours for training

TODO

  • Allow sports service provider mint cards representing service offered with added features like long term membership, access of more than one sports service and allow purchaser to sell the NFT to pass on ownership to a new owner
  • NFTs to represent the sports services membership fee thus various access rughts to whoever owns the NFT

Test

  1. Create a sports service
  2. Create a second account in your extension wallet and send them cUSD tokens.
  3. Buy sports service with secondary account.
  4. Check if balance of first account increased.
  5. Check your wallet to see if you have the transaction of sports service in your wallet
  6. Create another sports service.
  7. Update the price of a service that you own.
  8. Cancel the sale of a service you own that haven't had any sales yet

PROJECT SETUP

Install


npm install

or


yarn install

Start


npm run dev

Build


npm run build

Usage

  1. Install the CeloExtensionWallet from the google chrome store.
  2. Create a wallet.
  3. Go to https://celo.org/developers/faucet and get tokens for the alfajores testnet.
  4. Switch to the alfajores testnet in the CeloExtensionWallet. // cA 0xd9145CCE52D386f254917e481eB44e9943F39138

Try running some of the following tasks:

npx hardhat help
npx hardhat test
GAS_REPORT=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js

celo_sports_hub's People

Contributors

ibrainiac 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.