Skip to content

Commit

Permalink
Add docs for endBlock (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
incrypto32 authored Dec 4, 2023
1 parent 47cdb3c commit d9efb6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/pages/en/developing/creating-a-subgraph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ dataSources:
address: '0x2E645469f354BB4F5c8a05B3b30A929361cf77eC'
abi: Gravity
startBlock: 6175244
endBlock: 7175245
context:
foo:
type: Bool
Expand Down Expand Up @@ -153,6 +154,8 @@ The important entries to update for the manifest are:

- `dataSources.source.startBlock`: the optional number of the block that the data source starts indexing from. In most cases, we suggest using the block in which the contract was created.

- `dataSources.source.endBlock`: The optional number of the block that the data source stops indexing at, including that block. Minimum spec version required: `0.0.9`.

- `dataSources.context`: key-value pairs that can be used within subgraph mappings. Supports various data types like `Bool`, `String`, `Int`, `Int8`, `BigDecimal`, `Bytes`, `List`, and `BigInt`. Each variable needs to specify its `type` and `data`. These context variables are then accessible in the mapping files, offering more configurable options for subgraph development.

- `dataSources.mapping.entities`: the entities that the data source writes to the store. The schema for each entity is defined in the schema.graphql file.
Expand Down

0 comments on commit d9efb6f

Please sign in to comment.