kmjones1979 / sps-cookbook

This is the substreams-powered subgraph cookbook with modifications to support triggers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Substreams-powered subgraph: tracking contract creation

A basic Substreams-powered subgraph, including the Substreams definition. This example detects new contract deployments on Ethereum, tracking the creation block and timestamp. There is a demonstration of the Graph Node integration, using substreams_entity_change types and helpers.

Prerequisites

This requires the dependencies necessary for local Substreams development.

Quickstart

yarn install # install graph-cli
yarn substreams:prepare # build and package the substreams module
yarn subgraph:build # build the subgraph
yarn deploy # deploy the subgraph

About

This is the substreams-powered subgraph cookbook with modifications to support triggers


Languages

Language:Rust 64.0%Language:TypeScript 36.0%