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
- 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
- Update sports service with the option to update price or cancel sale
- Added more characteristics such as number of hours for training
- 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
- Create a sports service
- Create a second account in your extension wallet and send them cUSD tokens.
- Buy sports service with secondary account.
- Check if balance of first account increased.
- Check your wallet to see if you have the transaction of sports service in your wallet
- Create another sports service.
- Update the price of a service that you own.
- Cancel the sale of a service you own that haven't had any sales yet
npm install
or
yarn install
npm run dev
npm run build
- Install the CeloExtensionWallet from the google chrome store.
- Create a wallet.
- Go to https://celo.org/developers/faucet and get tokens for the alfajores testnet.
- 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