Skip to content

Commit ef21913

Browse files
authored
docs: Added new Q&A in Developer FAQ (#625)
* docs: Added new Q&A in Developer FAQ Added new Q&A in Developer FAQ regarding the order of handlers triggered for a data source. * docs: added info about dynamic data sources on FAQ * docs: note on ordering of handlers in dynamic data sources added
1 parent 9fef4dd commit ef21913

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

website/pages/en/developing/creating-a-subgraph.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ The triggers for a data source within a block are ordered using the following pr
182182

183183
These ordering rules are subject to change.
184184

185+
> **Note:** When new [dynamic data source](#data-source-templates-for-dynamically-created-contracts) are created, the handlers defined for dynamic data sources will only start processing after all existing data source handlers are processed, and will repeat in the same sequence whenever triggered.
186+
185187
### Getting The ABIs
186188

187189
The ABI file(s) must match your contract(s). There are a few ways to obtain ABI files:

website/pages/en/developing/developer-faqs.mdx

+6
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,9 @@ The Graph will never charge for the hosted service. The Graph is a decentralized
136136
## 27. How do I update a subgraph on mainnet?
137137

138138
If you’re a subgraph developer, you can deploy a new version of your subgraph to the Subgraph Studio using the CLI. It’ll be private at that point, but if you’re happy with it, you can publish to the decentralized Graph Explorer. This will create a new version of your subgraph that Curators can start signaling on.
139+
140+
## 28. In what order are the event, block, and call handlers triggered for a data source?
141+
142+
Event and call handlers are first ordered by transaction index within the block. Event and call handlers within the same transaction are ordered using a convention: event handlers first then call handlers, each type respecting the order they are defined in the manifest. Block handlers are run after event and call handlers, in the order they are defined in the manifest. Also these ordering rules are subject to change.
143+
144+
When new dynamic data source are created, the handlers defined for dynamic data sources will only start processing after all existing data source handlers are processed, and will repeat in the same sequence whenever triggered.

0 commit comments

Comments
 (0)