pendulum-chain / pendulum-squids

The subsquid squids we use for Pendulum/Amplitude/Foucoco.
GNU General Public License v3.0
0 stars 0 forks source link

Add info about basic general blockchain components to indexer #31

Closed ebma closed 7 months ago

ebma commented 7 months ago

Our indexer currently does not offer much 'general' data. You cannot query the last blocks, extrinsics or events. The base version that is deployed in combination with the archive already exposes this data, see e.g. here. The code for that 'base squid' is here. Sometimes we do need to have access to this basic data. For example, solving https://github.com/pendulum-chain/tasks/issues/60 requires it.

TODO

We should extend the schema of our squids to also offer data about:

We should not add the metadata as it takes too much space and we will never query it from these indexers.

The implementation should draw heavy inspiration from the implementation of the giant-squid. We should:

ebma commented 7 months ago

@pendulum-chain/product This task is related https://github.com/pendulum-chain/tasks/issues/60. It will change the indexer to offer the data that we need for https://github.com/pendulum-chain/tasks/issues/60

prayagd commented 7 months ago

@bogdanS98 is see you already have started working on it? Can you please add your estimates to the ticket?