-
Notifications
You must be signed in to change notification settings - Fork 0
/
substreams.yaml
57 lines (50 loc) · 1.4 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
specVersion: v0.1.0
package:
name: 'substreams_test' # the name to be used in the .spkg
version: v1.0.1 # the version to use when creating the .spkg
imports: # dependencies
entity: https://github.com/streamingfast/substreams-entity-change/releases/download/v0.2.1/substreams-entity-change-v0.2.1.spkg
protobuf: # specifies custom types for use by Substreams modules
files:
- vision.proto
importPaths:
- ./proto
binaries:
default:
type: wasm/rust-v1
file: ./target/wasm32-unknown-unknown/release/substreams.wasm
modules:
- name: map_erc4626_tokens
initialBlock: 18982509
kind: map
inputs:
- source: sf.ethereum.type.v2.Block
output:
type: proto:ERC4626Tokens
- name: store_rates_for_last_7_days
initialBlock: 18982509
kind: store
updatePolicy: set
valueType: string
inputs:
- map: map_erc4626_tokens
- source: sf.ethereum.type.v2.Block
output:
type: proto:void
- name: map_rates
initialBlock: 18982509
kind: map
inputs:
- map: map_erc4626_tokens
- source: sf.ethereum.type.v2.Block
- store: store_rates_for_last_7_days
output:
type: proto:Rates
- name: graph_out
initialBlock: 18982509
kind: map
inputs:
- map: map_erc4626_tokens
- map: map_rates
output:
type: proto:substreams.entity.v1.EntityChanges # this type can be consumed by Graph Node