Skip to content

RevanthGundala/Sentiment_Submission

Repository files navigation

Sentiment

Getting Started

Contract can be found here on sepolia testnet: https://sepolia.etherscan.io/address/0x050b95aa134c10c6e5bf50e29f322705e819a178

  1. git clone https://github.com/RevanthGundala/Sentiment.git
  2. npm i
  3. Replace .env
  4. npx hardhat run scripts/00-runAll.js --network NETWORK_NAME
  5. To run tests: npx hardhat test --network NETWORK_NAME
  6. cd functions-hardhat-starter-kit
  7. In order to test Chainlink Functions specific tasks, please refer to https://github.com/smartcontractkit/functions-hardhat-starter-kit
  8. cd ..
  9. ./Functinos.sh OR npx hardhat run scripts/updateState.js --network sepolia

Server

  1. cd server
  2. npm i
  3. node index

Frontend

  1. cd frontend
  2. npm i
  3. Replace .env
  4. npm run dev

Chainlink Functions

Note: Make sure to replace messages and name in Functions-request-config.js in the starter kit.

Video

https://youtu.be/dUlQ8ud93eI

Live Demo

Note: BEARER_ACCESS_TOKEN by Space and Time is reset every 30 minutes. sentiment-submission.vercel.app

Circuit Error

If you are receiving circom errors, make sure to: cd scripts ./compile-circuits.sh