Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method for contributors to receive / claim rewards #10

Open
madjin opened this issue Dec 14, 2024 · 5 comments
Open

Method for contributors to receive / claim rewards #10

madjin opened this issue Dec 14, 2024 · 5 comments

Comments

@madjin
Copy link
Contributor

madjin commented Dec 14, 2024

We want to reward contributors that create meaningful PRs to the repo, however we don't have any of their wallet information to send tokens with. How to make this as lightweight, few clicks, less code as possible?

1. Login with github on profiles page, then enter a wallet address and sign a message

Contributors just have to opt-ain once, at which point they can receive rewards continuously

image

image

We can then save the address with the wallet address somewhere secure

2. Meld discord + github accounts together somehow

If some claim, but others don't, it'd be useful to have a tracking system of who claimed and who didn't. There are tools for this as well such as https://www.drips.network/ and https://github.com/armitage-labs/armitage-monorepo, both EVM however. It's much easier to just use tip.cc IMO.

@monilpat
Copy link

The push model makes sense. It seems the lightest approach would be to associate directly with where the work happens — GitHub so option 1 from the issue. On the site add a single opt-in for all contributors via a button (using Auth0 or Firebase) could authenticate the user, return a callback to a form where they submit their wallet address, and store it securely. On the backend via a quick cron job can periodically disburse funds based off of opted in users and net new contributions and have simple record keeping via a simple db (github_handle, points, points_paid_out) idk just a thought otherwise if want to go discord route tip.cc is the way to go for sure

@madjin
Copy link
Contributor Author

madjin commented Dec 15, 2024

This tutorial demonstrates how to build a "Login with GitHub" button for a website.
https://docs.github.com/en/apps/creating-github-apps/writing-code-for-a-github-app/building-a-login-with-github-button-with-a-github-app

@madjin
Copy link
Contributor Author

madjin commented Dec 16, 2024

3 main parts to site generation:
scripts/build.js + dist/generate_site.js + data/contributors.json

need github login + way to give a wallet address OR discord name

@chrislatorres
Copy link

Lit Protocol's Claimable Keys may be a good fit here.

People can log in with GitHub oauth and claim a key that can claim their allocated rewards.

@tinypell3ts
Copy link

tinypell3ts commented Dec 23, 2024

We do this in our rewards platform using Privy. They support Solana and EVM. Can highly recommend.

Screenshot 2024-12-23 at 18 38 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants