Skip to content

Commit f0afa91

Browse files
committed
docs: Improve topic0 documentation
1 parent d45e04e commit f0afa91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/subgraph-manifest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The `mapping` field may be one of the following supported mapping manifests:
6464
| --- | --- | --- |
6565
| **event** | *String* | An identifier for an event that will be handled in the mapping script. For Ethereum contracts, this must be the full event signature to distinguish from events that may share the same name. No alias types can be used. For example, uint will not work, uint256 must be used.|
6666
| **handler** | *String* | The name of an exported function in the mapping script that should handle the specified event. |
67-
| **topic0** | optional *String* | A `0x` prefixed hex string. If provided, logs whose topic 0 is equal to this value will be processed by the given handler. By default, this is equal to the hash of the event signature. This is useful for processing solidity anonymous events. |
67+
| **topic0** | optional *String* | A `0x` prefixed hex string. If provided, events whose topic0 is equal to this value will be processed by the given handler. When topic0 is provided, _only_ the topic0 value will be matched, and not the hash of the event signature. This is useful for processing anonymous events in Solidity, which can have their topic0 set to anything. By default, topic0 is equal to the hash of the event signature. |
6868

6969
## 1.6 Path
7070
A path has one field `path`, which either refers to a path of a file on the local dev machine or an [IPLD link](https://github.com/ipld/specs/).

0 commit comments

Comments
 (0)