This project leverages TheGraph network to help query data from Bloom smart contracts.
It was developed as a submission to TheGraph hackathon in late 2019.
A frontend interface is available for this subgraph : https://philippemts.github.io/bloom-subgraph.
We can see that three attesters (green nodes) attested some traits for a majority of the ~740 users (blue nodes).
Only a few users received attestations from more than one attester.
One of the attester focuses the great majority of all attestations while two other attesters concentrated a larger number of attestations on much fewer users (links of bigger width represent a large number of attestations between two identities).
Users' BLT balance does not seem to be bound to their usage of the Bloom platform. Indeed some users with a big balance (bigger blue nodes) received attestations while others did not.
The main purpose of the dynamic creation of nodes and links is to paginate queries and make it possible to load and display a large number of attestations without a detrimental initial loading time. It does not reflect any timeline of on-chain events.
You can query this subgraph with the online explorer.
A frontend web interface is also available.
yarn run create
,yarn run create-local
: create the subgraphyarn run codegen
: generate AssemblyScript types from the subgraph's GraphQL schema and contract ABIsyarn run deploy
,yarn run deploy-local
: deploy the subgraphyarn run react-start
,yarn run react-build
,yarn run react-test
,yarn run react-eject
: ReactJS scriptsyarn run react-deploy
: deploybuild
directory to Github Pages. You should export theREACT_APP_GRAPHQL_ENDPOINT
variable first.
- Define GraphQL schemas.
- Define TheGraph mappings.
- Deploy the subgraph.
- Develop a frontend interface.
- Display node details on hover.
- Add a better loader.
- Handle pagination on attestations.