Skip to content

sahra-karakoc/grt-substreams-subgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GRT Subgraph fed by Substreams

Substreams based GRT subgraph and substreams.

License

Introduction

This project is a subgraph fed by substreams that allows you to obtain data for The Graph's token, GRT.

Features

Available Data

This subgraph makes available the following data:

  • Total supply of GRT,
  • GRT balances of addresses

Substreams Module Graph

Here is the graph of the modules of the substreams:

graph TD;
  map_transfers[map: map_transfers];
  sf.ethereum.type.v2.Block[source: sf.ethereum.type.v2.Block] --> map_transfers;
  store_balances[store: store_balances];
  map_transfers --> store_balances;
  store_total_supply[store: store_total_supply];
  map_transfers --> store_total_supply;
  map_accounts[map: map_accounts];
  store_balances -- deltas --> map_accounts;
  map_block_total_supply_change[map: map_block_total_supply_change];
  store_total_supply --> map_block_total_supply_change;
  graph_out[map: graph_out];
  map_transfers --> graph_out;
  store_balances -- deltas --> graph_out;
  store_total_supply -- deltas --> graph_out;
Loading

Quickstart

To build and run the substream,

  1. Install dependencies.
  2. Get authentication.
  3. Clone this repo
git clone https://github.com/sahra-karakoc/grt-substreams-subgraph.git
  1. Code gen with
substreams protogen ./substreams.yaml
  1. Build the substream with
cargo build --target wasm32-unknown-unknown --release
  1. Run the graph_out module with
substreams run -e mainnet.eth.streamingfast.io:443 \
substreams.yaml \
graph_out \
--start-block 11446769

Contributing

We welcome and appreciate your contributions! Please see the Contributor Guide, Code Of Conduct and Security Notes for this repository.

About

Substreams based GRT subgraph and substreams.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages