pinax-network / substreams

Substreams built by Pinax
Apache License 2.0
5 stars 2 forks source link

[Substream Proposal] List of Tokens #4

Closed fschoell closed 1 year ago

fschoell commented 1 year ago

Goal

Retrieve a list of tokens that are available on the chain.

Models

Briefly describe the models that are used as input / output for this Substream

Maps

Briefly list the maps including their input / output for this Substream

Stores

Briefly list the stores used in this Substream

Consumers

Briefly explain how to consume this substream and whether this is a custom consumer or a default sink

fschoell commented 1 year ago

@DenisCarriere or @YaroShkvorets how would you find the creation of a new token from parsing the blocks?

YaroShkvorets commented 1 year ago

We don't have an ERC-20 like standard, but the defacto standard is eosio.token contract. This would be the action to look for: https://bloks.io/transaction/b510b95094909d6c551be5136ba483946f2263d6c8ffa154be3b26685248ba66?tab=traces

YaroShkvorets commented 1 year ago

First stab: https://github.com/EOS-Nation/substreams-monorepo/tree/develop/substreams/tokens Can be improved upon, but seems to work.

DenisCarriere commented 1 year ago

Implemented via https://github.com/EOS-Nation/substreams-antelope/tree/develop/substreams/eosio.token

StreamingFast team needs to implement kV Sink to make it useful