//@TODO
cartesi / subgraph Goto Github PK
View Code? Open in Web Editor NEWCartesi TheGraph Subgraph definition
License: Apache License 2.0
Cartesi TheGraph Subgraph definition
License: Apache License 2.0
The Pool Performance should have the unit test to check whether the calculation is accurate. The unit test should also check for the handler behind it.
60%
The cartesi/rollups library v0.9.0 was released, so we need to upgrade the rollups-subgraph package to start using the new stable version.
We are streamlining the creation of a staking pool in our front end, offering only the flat-rate option. Today, only 1 gas-based pool is deployed on Mainnet and is "inactive". Hence, also removes the handling of new Gas-based staking pools, stopping the indexing.
Remove the handling of NewGasTaxCommissionStakingPool
in the code.
Extra info: Gas-based pool on mainnet 0x8fa412526a1a2506a03c1d3b23cdf1f6dcc8bbb1
NewGasTaxCommissionStakingPool
That is a feature we were pursuing in 2021, but it was put on hold, and never came back to the priority list. So it is arguably a candidate to be removed.
Remove the package and also the github-action related to that.
eligibility
Code updates were done to provide the performance calculation from the subgraph. So we need to deploy through the environments.
We use the matchstick-as library for unit testing the logic of the handler. It is good to keep up with evolution and not fall behind. Currently, the pos-subgraph and rollups-subgraph packages are using version 0.5.0
.
Fix the issue template task list. There is too much space applied when using on github UI after pressing enter it thinks it is a bullet point and not a task list item.
Remove the extra spaces in all the templates.
[feature, technical debt, update-dependencies, documentation]
Upgrade the rollups library to its latest version, i.e. v0.9.1.
We use @graphprotocol/graph-cli and @graphprotocol/graph-ts. The CLI for reading the manifest, compiling the mappings to AssemblyScript and other actions and the graph-ts
provides APIs to access the graph node store, data on IPFS, etc. We need to upgrade the libraries to their latest version, currently [email protected] and [email protected]
Currently, we do the Subgraph deployment manually. Since we moved to Chainstack and already have Subgraph Hosted Services, it would be good to automate the deployment of our Subgraph solution.
Create a GitHub action to build and publish the subgraph changes once merged into the main
branch (target is preview environment).
main
branch changes.
For the rollups v0.9.0, An InputAdded
event could be submitted to a DApp
that has not been created yet, by the usual pipeline; i.e. through the CartesiDAppFactory
contract. It is necessary to handle such cases, distinguish the DApp origin, and deal with the aggregations done in factories and dashboard levels.
Include a state to the DApp data structure to help distinguish it and also below a list of things to be handled;
status
that is of type enum
with the following values [CREATED_BY_FACTORY
, CREATED_BY_INPUT_ADDED_EVT
]status
property the origin.InputAdded
event
status
signalling that it was created via input-added,virtual_factory
.dappCount
| inputCount
ApplicationCreated
and the DApp already exist;
factory
property to the factory address.It is important to provide information about the repository for whoever lands on the repository page.
As we will sunset the AWS infrastructure for the subgraph, we are looking for a new subgraph host provider where we don't need to take care of the infra.
We will assess the Chainstack to be that provider.
The Goerli testnet decommission is overdue, and mainly, the technologies supporting it, e.g. Metamask, are starting to remove it as an option, so there is no point in keeping its definitions and code supported here.
sidenote: Staking web application is not using it anymore.
Remove all code, scripts, and template definitions related to Goerli. Below are a few subtasks for obvious places to check, but don't be limited to that maybe there are other unused networks that could also be removed.
Currently, we do the Subgraph deployment manually. Since we moved to Chainstack and already have Subgraph Hosted Services, it would be good to automate the deployment of our Subgraph solution.
Create a GitHub action to build and publish the subgraph changes once merged into the main
branch (target is preview environment).
main
branch changes.
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.