You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/README.md
+20-14
Original file line number
Diff line number
Diff line change
@@ -4,43 +4,49 @@ This section contains several subgraph examples to help you get started with [Th
4
4
5
5
## Table of Contents
6
6
7
-
1.**[Aggregations](/examples/aggregations)**
7
+
1.**[Aggregations](/examples/aggregations)**
8
8
This example demonstrates how to aggregate data using block numbers as predictable values. The comments in the schema, subgraph manifest, and mappings provide guidance for implementing custom aggregations.
9
9
10
-
2.**[Arweave Blocks and Transactions](/examples/arweave-blocks-transactions)**
10
+
2.**[Arweave Blocks and Transactions](/examples/arweave-blocks-transactions)**
11
11
This example indexes blocks, transactions, tags, and POAs on the Arweave blockchain. Please note that it requires `graph-cli` version 0.30.2 or above to build.
This example shows how to handle basic events on the Ethereum blockchain using The Graph. It provides a practical implementation of event handlers, showcasing how to index and query blockchain data.
This example shows the structure of a minimal,basic subgraph. It provides a generic setup with a simple contract and schema designed to teach the fundamentals of defining, mapping, and querying subgraph data.
This example shows the structure of a minimal,basic subgraph. It provides a generic setup with a simple contract and schema designed to teach the fundamentals of defining, mapping, and querying subgraph data.
This example demonstrates how to index data from the Lens Protocol deployed on the Polygon (Matic) network.
36
36
37
-
11.**[NEAR Blocks](/examples/near-blocks)**
37
+
11.**[NEAR Blocks](/examples/near-blocks)**
38
38
This example indexes blockchain data from the NEAR Protocol. It listens to block-related events and stores key data such as block number, timestamp, and hash in a queryable format.
39
39
40
-
12.**[NEAR Receipts](/examples/near-receipts)**
40
+
12.**[NEAR Receipts](/examples/near-receipts)**
41
41
This example indexes transaction receipts from the NEAR Protocol. It tracks and stores receipt data such as transaction hash, status, and execution details.
This example is a basic Substreams-powered subgraph, which includes the Substreams definition. It tracks new contract deployments on Ethereum and demonstrates integration with Graph Node using `substreams_entity_change` types and helpers.
45
45
46
+
14.**[Subgraph Composition Using Sushiswap v3 Subgraph on Base](https://github.com/incrypto32/subgraph-composition-sample-subgraph)**
47
+
This example illustrates how to optimize a Subgraph using Subgraph Composition. It uses a source Subgraph and a dependent Subgraph, where the source Subgraph tracks events from Sushiswap v3 subgraph on Base.
48
+
49
+
15.**[Subgraph Composition Using Three Source Subgraph](https://github.com/isum/subgraph-composition-example)**
50
+
This example shows how to combine three source Subgraphs into one composable Subgraph to efficiently aggregate data.
51
+
46
52
To learn more about subgraphs, review [subgraphs](https://thegraph.com/docs/en/subgraphs/developing/subgraphs/) on [The Graph docs](https://thegraph.com/docs/en/).
0 commit comments