-
-
Project Logo
-
User registers wallet
-
User creates a prediction
-
Create Prediction Data
-
Prediction went wrong
-
Prediction went right
-
Get User Score
-
Slide
-
Slide Intro
-
Goals
-
Create Prediction
-
Check Prediction Ready
-
Evaluate Prediction
-
Prediction Complete - Reply User
-
Figma - User dashboard Design
-
Figma - Leaderboard Design
Inspiration
The internet has always been a noisy place, plagued with self portrayed traders and investors. More than often, the loudest noise on social media pieces are those which jump on the bandwagon, exaggerating the trajectory of the current market trend, or those that strongly oppose the popular view for the sake of appeasing the contrarians.
Amidst the noise, it is also the space to learn and gain insights from actual experts and upcoming thought leaders who share their knowledge.
In the space of financial advice and trading, it is especially difficult to identify which individuals are these as single large wins could be purely out of luck. To identify a good trader, there is a need to prove both consistency and accuracy of market predictions.
And a screenshot of a robinhood trading history just isn't going to cut it!
What it does
Glyph is a twitter bot that pushes real-time crypto and stock prediction claims on twitter onto the polygon blockchain and IPFS. Glyph smart contract record and evaluate the prediction outcome using Chainlink Price Feeds and Chainlink Automation. With Glyph, a trader can build a verifiable track record on the blockchain. And individuals can quickly identify consistent and accurate traders on twitter. Glyph is live (for testing) on Polygon Test Net and twitter.
Usage
Register
Go to our app to register
Making a prediction
Make a prediction by mentioning the bot,
for example
"@fortheglyph LONG ETH 4M" - long ethereum for 4 months
"@fortheglyph SHORT SAND 5D" - short sand token for 5 days
Position: LONG, SHORT
Available symbols on testnet: BTC, ETH, LINK, MATIC, SAND, EUR
Time Units: H - Hour, D - Day, M - Month, Y - Year
The bot will parse your prediction and push it onto the polygon blockchain and respond with a confirmation
Prediction Evaluation
When it is time to evaluate your prediction, e.g after 4 months, the bot will reply to the tweet. All outcomes are stored on the blockchain and it's logs.
Deployment
Note: Will be taken down after release of hackathon results
Web App: url
Twitter Bot: @fortheglyph
Glyph is deployed on Polygon Mumbai Test Net with source code verification
- PriceFeedManager: View on Polygon Scan
- PredictionManager: View on Polygon Scan
How we built it
Blockchain Components (Solidity + Truffle)
- PriceFeedManager Smart Contract - manages all available symbols and chainlink aggregator addresses to query latest price from
- PredictionManager Smart Contract - manages all registered user and prediction related data. Implements AutomationCompatible.
- Chainlink Price Feed - Get reliable latest price for symbols
- Chainlink Automation - Runs checkUpkeep on PredictionManager to evaluate if prediction is ready to be evaluated
Backend Server (Flask)
- Listens to twitter events via webhook
- Caches blockchain event data to be readily queried by app
- Provide utility api endpoints such as twitter id look up during registration
Frontend (Vue, Nuxt)
Create registration page, integrated with backend server
Accomplishments that we're proud of
- Designed PriceFeedManager which easily scales to support all symbols from chainlink when deploying to mainnet
- Created a large number of unit tests for smart contract which allowed continuous integration
- First time working with: solidity, ipfs, vue3, twitter webhooks, truffle, mocha, chai
What's next for Glyph
- User dashboard for web app to view all predictions and score
- Leaderboard feature to rank users and identify consistent and reliable traders
- Prediction analytics
- Go Live on mainnet!!!
Source Code
Built With
- chainlink
- flask
- infura
- ipfs
- javascript
- nuxt
- polygon
- python
- quicknode
- solidity
- truffle
- vue
Log in or sign up for Devpost to join the conversation.