-
Notifications
You must be signed in to change notification settings - Fork 11
/
substreams.yaml
48 lines (41 loc) · 1.01 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
specVersion: v0.1.0
package:
name: "substreams_template"
version: v0.1.0
imports:
database_change: https://github.com/streamingfast/substreams-sink-database-changes/releases/download/v1.2.1/substreams-database-change-v1.2.1.spkg
protobuf:
files:
- erc721.proto
importPaths:
- ./proto
binaries:
default:
type: wasm/rust-v1
file: ./target/wasm32-unknown-unknown/release/substreams.wasm
modules:
- name: map_transfers
kind: map
initialBlock: 12287507
inputs:
- source: sf.ethereum.type.v2.Block
output:
type: proto:eth.erc721.v1.Transfers
- name: store_transfers
kind: store
initialBlock: 12287507
updatePolicy: add
valueType: int64
inputs:
- map: map_transfers
- name: db_out
kind: map
initialBlock: 12287507
inputs:
- source: sf.substreams.v1.Clock
- map: map_transfers
- store: store_transfers
mode: deltas
output:
type: proto:sf.substreams.sink.database.v1.DatabaseChanges
network: mainnet