- Track USDC pool supply/borrow transactions
- Follow
total supply
andtotal borrow
state
Pool address
0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2
Initial block
16496939
https://thegraph.com/studio/subgraph/aave-substreams/playground
-
Rust - https://rustup.rs/
-
Graph-cli - https://thegraph.com/docs/en/quick-start/#2-install-the-graph-cli
-
substreams-cli - https://substreams.streamingfast.io/getting-started/installing-the-cli
Install graph-cli
yarn install
Build and package the substreams module
yarn substreams:prepare
Run the substreams locally
yarn substreams:stream
Deploy the subgraph
yarn subgraph:deploy
-
substreams.yaml
- The substrems manifest -
src/modules
- The substream modules -
src/abi
- The ABI files -
src/constants.rs
- Contract addresses -
src/calls.rs
- Contract calls -
proto
- Messages structure -
subgraph.yaml
- The subgraph manifest -
schema.graphql
- The subgraph schema
{
pools {
id
last_transfer
total_supply
total_borrow
transfers {
id
type
amount
}
}
}