gh0stwheel / drips-subgraph-mainnet-v2 Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
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
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.
Low priority but when possible, would be good to add block timestamp to drip and split entries to allow sorting on Explore :)
splits entry config id is using receiver when it should be using sender:
drips-subgraph-mainnet-v2/src/mapping.ts
Line 126 in 8060947
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).
this way I can show the start time for each drip/split/give :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.