-
Notifications
You must be signed in to change notification settings - Fork 3
/
substreams.yaml
65 lines (57 loc) · 1.73 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
specVersion: v0.1.0
package:
name: "substreams_eth_block_meta"
version: v0.4.3
imports:
database_change: https://github.com/streamingfast/substreams-sink-database-changes/releases/download/v1.2.0/substreams-database-change-v1.2.0.spkg
entities_change: https://github.com/streamingfast/substreams-sink-entity-changes/releases/download/v1.3.0/substreams-sink-entity-changes-v1.3.0.spkg
kv_operations: https://github.com/streamingfast/substreams-sink-kv/releases/download/v2.1.5/substreams-sink-kv-v2.1.5.spkg
protobuf:
files:
- block_meta.proto
importPaths:
- ./proto
binaries:
default:
type: wasm/rust-v1
file: ./target/wasm32-unknown-unknown/release/substreams.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: store_block_meta_end
kind: store
updatePolicy: set
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
- store: store_block_meta_end
mode: deltas
output:
type: proto:sf.substreams.sink.database.v1.DatabaseChanges
- name: kv_out
kind: map
inputs:
- store: store_block_meta_start
mode: deltas
- store: store_block_meta_end
mode: deltas
output:
type: proto:sf.substreams.sink.kv.v1.KVOperations
- name: graph_out
kind: map
inputs:
- store: store_block_meta_start
mode: deltas
- store: store_block_meta_end
mode: deltas
output:
type: proto:sf.substreams.sink.entity.v1.EntityChanges