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):
This PR enables decentralized content proposal.
Dapp:
Blockchain:
🚨 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):