-
Notifications
You must be signed in to change notification settings - Fork 15
/
substreams.yaml
49 lines (42 loc) · 1.19 KB
/
substreams.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
specVersion: v0.1.0
package:
name: 'substreams_postgresql_sink_tutorial'
version: v0.1.0
protobuf:
files:
- block_meta.proto
importPaths:
- ./proto
imports:
sql: https://github.com/streamingfast/substreams-sink-sql/releases/download/protodefs-v1.0.3/substreams-sink-sql-protodefs-v1.0.3.spkg
blockmeta: https://github.com/streamingfast/substreams-eth-block-meta/releases/download/v0.5.1/substreams-eth-block-meta-v0.5.1.spkg
binaries:
default:
type: wasm/rust-v1
file: target/wasm32-unknown-unknown/release/substreams_postgresql_sink_tutorial.wasm
modules:
- name: store_block_meta_start
kind: store
updatePolicy: set_if_not_exists
valueType: proto:eth.block_meta.v1.BlockMeta
inputs:
- source: sf.ethereum.type.v2.Block
- name: db_out
kind: map
inputs:
- store: store_block_meta_start
mode: deltas
output:
type: proto:sf.substreams.sink.database.v1.DatabaseChanges
network: mainnet
sink:
module: db_out
type: sf.substreams.sink.sql.v1.Service
config:
schema: "./schema.sql"
wire_protocol_access: true
engine: postgres
postgraphile_frontend:
enabled: true
pgweb_frontend:
enabled: true