Skip to content

Commit

Permalink
make substreams-minimal depend on blocks_without_votes, add comments …
Browse files Browse the repository at this point in the history
…about blockFilter in the substreams.yaml
  • Loading branch information
sduchesneau committed Sep 19, 2024
1 parent 6ecb5f0 commit c656443
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions sol-minimal/templates/substreams.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,22 @@ package:
name: {{ .ModuleName }}
version: v0.1.0

imports:
solana: https://spkg.io/streamingfast/solana-common-v0.3.0.spkg

protobuf:
files:
- mydata.proto
importPaths:
- ./proto
excludePaths:
- sf/substreams
- sf/substreams/rpc
- sf/substreams/v1
- sf/substreams/sink
- sf/substreams/index
- sf/substreams/index/v1
- instructions.proto # sol.instructions.v1 from the v0.2.0 spkg
- transactions.proto # sol.transactions.v1 from the v0.2.0 spkg
- google

binaries:
Expand All @@ -21,8 +30,16 @@ modules:
- name: map_my_data
kind: map
inputs:
- source: sf.solana.type.v1.Block
- map: solana:blocks_without_votes
output:
type: proto:mydata.v1.MyData
# For performance, you should use a blockFilter whenever possible, like this:
#
# blockFilter:
# module: solana:program_ids_without_votes
# query:
# string: program:4vMsoUT2BWatFweudnQM1xedRLfJgJ7hswhcpz4xgBTy
#
# see https://substreams.dev/streamingfast/solana-common/latest for details

network: solana-mainnet-beta

0 comments on commit c656443

Please sign in to comment.