Coder Social home page Coder Social logo

mayowaobisesan / wastewise Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 31.58 MB

WasteWise protocol is a green chain, sustainable environment-first (Waste to Wealth) blockchain-powered platform

Home Page: https://wastewise.vercel.app

Solidity 44.12% HTML 0.01% TypeScript 10.65% JavaScript 37.09% CSS 0.27% Makefile 0.07% Ruby 7.26% Python 0.23% Nix 0.01% Shell 0.29%
erc20-smart-contract green

wastewise's Introduction

WasteWise Protocol Smart Contract Documentation

Overview

WasteWise protocol is a green chain, sustainable environment-first (Waste to Wealth) blockchain-powered platform designed to incentivize recycling and responsible waste disposal, contributing significantly to the creation of cleaner, more sustainable urban environments.

WasteWise plays a pivotal role in advancing Sustainable Development Goal 11 - "Sustainable Cities and Communities.

The WasteWise Protocol is a comprehensive blockchain-based solution comprising three core contracts: WasteWise, RwasteWise, and MarketPlace. This integrated system is designed to promote environmental sustainability by rewarding users for recycling efforts through the issuance of receipt tokens (RWISE) and enabling the trade of items in a marketplace.

Contracts

WasteWise

  • Name: WasteWise
  • License: UNLICENSED
  • Solidity Version: ^0.8.13

WasteWise is a smart contract that manages user recycling information and rewards users for their recycling activities. Users can create accounts, record recycling transactions, and earn tokens for their efforts.

RwasteWise

  • Name: RwasteWise
  • License: MIT
  • Solidity Version: >=0.7.0 <0.9.0

RwasteWise is the Receipt token contract used within the WasteWise Protocol. It allows the minting and burning of receipt tokens and serves as a reward for users who deposit pet bottles.

MarketPlace

  • Name: MarketPlace
  • License: MIT
  • Solidity Version: >=0.7.0 <0.9.0

MarketPlace is a smart contract for managing item listings in a marketplace. Users can create listings, update item information, perform transactions, and redeem receipt tokens.

Core Functionality

User Account Management (WasteWise)

  • Users can create accounts with personal information.
  • Recycling transactions are recorded, and users earn tokens.
  • Users can edit their information.
  • User data is stored in a structured format.

Receipt Token Management (RwasteWise)

  • Token contract to mint and burn receipt tokens.
  • Users receive tokens as rewards for recycling efforts.

Item Listing Management (MarketPlace)

  • Users can create item listings in the marketplace.
  • Items can be updated with new information.
  • Users can perform transactions in the marketplace.
  • Placeholder functions for redeeming receipt tokens.

Data Structures

  • User Structure (WasteWise): Represents user information.
  • Gender Enumeration (WasteWise): Enumerates user gender.
  • Recycled Structure (WasteWise): Represents recycling transactions.
  • ItemInfo Structure (MarketPlace): Stores item listing information.

State Variables

  • WasteWise: Stores user data and recycling transactions.
  • RwasteWise: Manages receipt tokens.
  • MarketPlace: Manages item listings and transactions.

Custom Errors

  • Custom errors are defined to handle specific situations, such as account creation, token minting, and transaction issues.

Usage

The WasteWise Protocol smart contract system is designed to create a sustainable ecosystem where users are rewarded for recycling and can trade items in a marketplace. Users can create accounts, record recycling transactions, manage receipt tokens, and participate in the marketplace. The system encourages environmental sustainability and promotes recycling practices.

License

The smart contracts are released under the UNLICENSED and MIT licenses, allowing for open use, modification, and distribution. However, ensure a clear understanding of the code and its functionality before deploying it in a production environment.

Deployed contract Address

  • Rwastewise 0xCD721817d72508D6506a0c64a1695A802c838674

  • Wastewise: 0xd31c46e577dec42b691b6bc2de7f2d5c202102bc

https://goerli.basescan.org/address/0xd31c46e577dec42b691b6bc2de7f2d5c202102bc

  • MarketPlace: 0x9d2a9adfbe03bf043dc806e4b79b34e3132b6c08

https://goerli.basescan.org/address/0x9d2a9adfbe03bf043dc806e4b79b34e3132b6c08

wastewise's People

Contributors

0xkyng avatar biliqiso avatar joshaw-k avatar marsifeanyi avatar mayowaobisesan avatar paulelisha avatar

Stargazers

 avatar

Watchers

 avatar

wastewise's Issues

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.