Git Product home page Git Product logo

subgraph's Introduction

██████╗  ██████╗ ███████╗████████╗███████╗██████╗
██╔══██╗██╔═══██╗██╔════╝╚══██╔══╝██╔════╝██╔══██╗
██████╔╝██║   ██║███████╗   ██║   █████╗  ██████╔╝
██╔═══╝ ██║   ██║╚════██║   ██║   ██╔══╝  ██╔══██╗
██║     ╚██████╔╝███████║   ██║   ███████╗██║  ██║
╚═╝      ╚═════╝ ╚══════╝   ╚═╝   ╚══════╝╚═╝  ╚═╝
   _____       __                           __  
  / ___/__  __/ /_  ____ __________ _____  / /_ 
  \__ \/ / / / __ \/ __ `/ ___/ __ `/ __ \/ __ \
 ___/ / /_/ / /_/ / /_/ / /  / /_/ / /_/ / / / /
/____/\__,_/_.___/\__, /_/   \__,_/ .___/_/ /_/ 
                 /____/          /_/            

A subgraph to parse a ridiculously simple general purpose social media smart contract. It takes a string as a parameter and emits that string, along with msg.sender, as an event. That's it. The subgraph is a JSON parser which enforces a PIP to be consumed.

The Poster smart contract can be found here.

subgraph's People

Contributors

0xjjpa avatar crazyrabbitltc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

subgraph's Issues

Update subgraph to match JSON specification

See original specification for Poster. In short, we need to track the following actions:

  • New post added into the network
  • Post has a new reply
  • New post with an image added
  • Post has been deleted
  • Post has been liked
  • Post has been reposted
  • Post has been reposted with a reply
  • User has been followed
  • User has been unfollowed
  • User has been blocked
  • User has been reported

Posts aren't parsed properly

image

For some reason, the subgraph isn't parsing the post content properly. For instance, in this example, the post clearly has an image, yet the action.image property is empty.

Subgraph deployment (pt. 2)

  • Deploy subgraph to Arbitrum
  • Deploy subgraph to Optimism
  • Deploy subgraph to zkSync (whenever zkEVM is ready)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.