Skip to content

Commit

Permalink
add comments in substreams.yaml regarding blockfilter usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sduchesneau committed Oct 18, 2024
1 parent df23d28 commit 310030a
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
13 changes: 13 additions & 0 deletions evm-minimal/templates/substreams.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,17 @@ modules:
output :
type: proto:mydata.v1.MyData

# For performance, you should use a blockFilter whenever possible, like this:
# imports:
# eth: https://spkg.io/streamingfast/ethereum-common-v0.3.0.spkg
#
# modules:
# - name: (...)
# blockFilter:
# module: eth:index_events
# query:
# string: evt_sig:0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31
#
# see https://substreams.dev/streamingfast/ethereum-common/v0.3.0 for details

network: {{ .ChainName }}
12 changes: 12 additions & 0 deletions injective-minimal/templates/substreams.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,17 @@ modules:
- source: sf.cosmos.type.v2.Block
output:
type: proto:mydata.v1.MyData
# For performance, you should use a blockFilter whenever possible, like this:
# imports:
# injective: https://spkg.io/streamingfast/injective-common-v0.2.2.spkg
#
# modules:
# - name: (...)
# blockFilter:
# module: injective:index_events
# query:
# string: "(type:message && attr:action) || (type:wasm && attr:_contract_address)"
#
# see https://substreams.dev/streamingfast/injective-common/v0.2.2 for details

network: {{ .ChainNetwork }}
13 changes: 13 additions & 0 deletions starknet-minimal/templates/substreams.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,17 @@ modules:
output:
type: proto:mydata.v1.MyData

# For performance, you should use a blockFilter whenever possible, like this:
# imports:
# starknet: https://spkg.io/streamingfast/starknet-foundational-v0.1.4.spkg
#
# modules:
# - name: (...)
# blockFilter:
# module: starknet:index_transactions
# query:
# string: (tx:class_hash:0x0000000 && rc:type:0)
#
# see https://substreams.dev/streamingfast/starknet-foundational for details

network: {{ .ChainNetwork }}
1 change: 1 addition & 0 deletions vara-extrinsics/templates/substreams.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package:

imports:
vara: https://github.com/streamingfast/substreams-foundational-modules/releases/download/vara-foundational-v0.1.4/foundational-modules-vara-common-v0.1.4.spkg
#vara: https://spkg.io/streamingfast/vara-common-v0.1.5.spkg

modules:
- name: map_filtered_extrinsics
Expand Down
13 changes: 13 additions & 0 deletions vara-minimal/templates/substreams.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,17 @@ modules:
output:
type: proto:mydata.v1.MyData

# For performance, you should use a blockFilter whenever possible, like this:
# imports:
# vara: https://spkg.io/streamingfast/vara-common-v0.1.5.spkg
#
# modules:
# - name: (...)
# blockFilter:
# module: vara:index_extrinsics
# query:
# string: extrinsic:Timestamp.set # set the extrinsic of your choice, of course
#
# see https://substreams.dev/streamingfast/vara-common for details

network: {{ .ChainNetwork }}

0 comments on commit 310030a

Please sign in to comment.