Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update writing-module-handlers.md #244

Merged
merged 2 commits into from
Jul 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/developers-guide/modules/writing-module-handlers.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const TRACKED_CONTRACT: [u8; 20] = hex!("bc4ca0eda7647a8ab7c2061c2e118a18a936f13
```
{% endcode %}

Define the `map` module.
Define the `map` module in the substreams manifest.
maoueh marked this conversation as resolved.
Show resolved Hide resolved

{% code title="manifest excerpt" %}
```yaml
Expand Down Expand Up @@ -160,7 +160,7 @@ fn map_transfers(blk: eth::Block) -> Result<erc721::Transfers, substreams::error
```
{% endcode %}

Define the `store` module.
Define the `store` module in the substreams manifest.
maoueh marked this conversation as resolved.
Show resolved Hide resolved

{% code title="manifest excerpt" %}
```yaml
Expand Down Expand Up @@ -190,10 +190,10 @@ fn store_transfers(transfers: erc721::Transfers, s: store::StoreAddInt64) {
{% endcode %}

{% hint style="info" %}
**Note**: __ the `store` always receives itself as its own last input.
**Note**: the `store` always receives itself as its own last input.
{% endhint %}

In the example the `store` module uses an `updatePolicy` set to `add` and a `valueType set` to `int64` yielding a writable `store` typed as `StoreAddInt64`.
In the example the `store` module uses an `updatePolicy` set to `add` and a `valueType` set to `int64` yielding a writable `store` typed as `StoreAddInt64`.

{% hint style="info" %}
**Note**: **Store types**
Expand Down