Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

LensCarbon introduces climate action as a reputation feature in Lens Protocol by enabling fractional carbon offsetting as part of publication collects. An ETHPrague hackathon 2023.

Dakavon/ETHprague2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

ETHprague2023

Monorepo for ETHPrague 2023 Hackathon submission

Project Overview

Project name

Lens carbon

Tagline

Lens collect carbon retirements

Summary

  • A user can publish a post and set collection rule to carbon offsetting. In this case, a fraction of their income is sent to carbon retirements.
  • Another user can collect such posts. The fact that a collection leads to carbon retirements does not chance their workflow, but can me made visible to further incentivise collection.
  • The profile page of a user shows their total retired carbon through collections of their posts by others as well as through their own collections.

Technical Roadmap and TODOs

Features

Profile view

  • total kg carbon retired by others in own publications
  • total kg carbon retired by collecting publications from others

Publish a publication

  • choose "retire carbon" as collection function

Collect a publication

  • usual workflow

Implementation

TODOs

  • Deploy app on localhost

    • works for Niels and Robert
  • Set SDK to testnet

    • done -> in layout.tsx, try some reloads
  • Create 2 lens profiles on testnet or use two existing

  • Implement publish/collect functions in app

    • Basic functionality in development
    • Currently being debugged
  • Implement BCTRetireCollect function in app

    • Test functionality using testnet.lenster.xyz and polygonscan

    • use profiles from above

    • on testnet.lenster, create collectable post with one account

    • find profileId and pubId of profile and post somehow

    • use this to initialize BCT module and collect

    • on same site, with other account, collect it

    • allow module

    • but now with other module

  • Implement carbon summary in profile view

Possible next steps

  • Set collection rule: choose "carbon percentage" instead of everything
  • Collection workflow: make visible that collection will retire carbon

About

LensCarbon introduces climate action as a reputation feature in Lens Protocol by enabling fractional carbon offsetting as part of publication collects. An ETHPrague hackathon 2023.

Topics

Resources

Stars

Watchers

Forks