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

MVP Version 3: Proposing content with chainlink #16

Merged
merged 10 commits into from
Dec 6, 2023

Conversation

jasonklein
Copy link
Collaborator

@jasonklein jasonklein commented Dec 6, 2023

This PR enables decentralized content proposal.

Dapp:

  • a user submits a URL
  • the URL is sent to the back-end for processing
  • the back-end sends the title from the URL to the front-end which then asks the user to send the proposal transaction (unlike with consuming content, the user pays)
  • if the user's proposal is successful, their points increase

Blockchain:

  • anyone can submit a content item (hash as the identifier, URL, and title)
  • the submission is sent to Chainlink Functions with JS code that makes an API call to OpenAI to validate the content item is likely related to financial literacy and well-being
  • Chainlink responds with the result, true or false—if true, the proposer is rewarded

🚨 Special build procedures

@rjpence: please be sure to update the README to include this information about the special build procedures.

In order to retain the one-line change made to @wagmi/core to be able to sign raw messages when the code is pushed here to GitHub or to deploy the dapp, I used patch-package to create a commit that retains my change in a patch.

To deploy the app to Vercel with these changes, I first build the app locally and then I deploy (as opposed to sending the code to Vercel to build there, where it would download the NPM packages from the registry, not include the change I made, and fail):

$ yarn vercel build
...
$ yarn vercel deploy --prebuilt

@jasonklein jasonklein merged commit c41b3d2 into main Dec 6, 2023
1 check failed
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

Successfully merging this pull request may close these issues.

1 participant