Coder Social home page Coder Social logo

drips-subgraph-mainnet-v2's People

Watchers

 avatar

drips-subgraph-mainnet-v2's Issues

add current funding total to project schema

Iโ€™m thinking this would work as adding up all the token amounts. Maybe you have two totals: one for cumulative streaming and cumulative one-times.

Currently getting these totals from events but not possible on Polygon.

add token count to fundingProject schema

low priority, but eventually would be good to have a count of minted tokens on funding project schema for stats.

right now I request all tokens and add them up but potentially this could be a slow query if a project has a lot of tokens

Indexing Error for SplitsUpdate -- Failing to Iterate Over Nested Array

Branch: 'mumbai-v2.1' which is the current development branch.

Background: this issue came up after I added some new entity types to the subgraph, with corresponding mappings. Specifically, DripsEntry, DripsConfig and SplitsConfig. Then when I tried to deploy the subgraph to Hosted (the only option for Mumbai), an indexing error occurred. There was no detailed error information available in the logs on the Hosted mode web app (apart from "indexing error").

By experimenting with removing different sections of code, I eventually isolated the problem to the mapping function 'handleSplitsUpdated()' in mapping.ts and then eventually to this line. In other words, if you comment out this function, and don't do any mapping on SplitsUpdated events, no error occurs.

In general the problem seems to be related to iterating over the array embedded in the SplitsUpdated event. Specifically, the event in question is this one.

Working with embedded event arrays is not mentioned in The Graph's documentation, but in general, when the automatically-generated types are inspected in VS code, the types appear to have been correctly built and there are no errors or any other reason to believe that they should not be usable as usual in Typescript.

Over the last few days I've tried a number of code variations to work around the issue, without success. These variations are visible in the commit history of the 'mumbai-v2.1' branch, which has some basic information about what I was trying in the commit messages.

From working with The Graph in the past, I noticed that Subgraph Studio sometimes has a little more error/debug information available than Hosted. Studio is only available for Mainnet, but by deploying this same subgraph configuration against mainnet I was able to get the same 'indexing error' and then also get the more detailed error information which you can see in the attached image (links to Studio configurations are not sharable with others via URL without a metamask connection from the owner, unlike Hosted).

Screen Shot 2022-02-04 at 6 00 31 AM

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.