-
Notifications
You must be signed in to change notification settings - Fork 1
/
substreams.yaml
183 lines (160 loc) · 4.39 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
specVersion: v0.1.0
package:
name: 'protofun'
version: v0.1.0
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
protobuf:
files:
- block_meta.proto
importPaths:
- ./proto
binaries:
default:
type: wasm/rust-v1
file: ./target/wasm32-unknown-unknown/release/substreams.wasm
modules:
- name: map_block
kind: map
# Important: to avoid back-processing
initialBlock: 12965000
inputs:
- source: sf.ethereum.type.v2.Block
output:
type: proto:sf.ethereum.block_meta.v1.BlockMeta
- name: graph_out
kind: map
initialBlock: 12965000
inputs:
- source: sf.ethereum.type.v2.Block
- store: store_base_fee_per_gas_minute_open
- store: store_base_fee_per_gas_minute_high
- store: store_base_fee_per_gas_minute_low
- store: store_base_fee_per_gas_minute_close
- store: store_base_fee_per_gas_hour_open
- store: store_base_fee_per_gas_hour_high
- store: store_base_fee_per_gas_hour_low
- store: store_base_fee_per_gas_hour_close
- store: store_base_fee_per_gas_day_open
- store: store_base_fee_per_gas_day_high
- store: store_base_fee_per_gas_day_low
- store: store_base_fee_per_gas_day_close
- store: store_base_fee_per_gas_week_open
- store: store_base_fee_per_gas_week_high
- store: store_base_fee_per_gas_week_low
- store: store_base_fee_per_gas_week_close
output:
type: proto:sf.substreams.sink.entity.v1.EntityChanges
- name: store_base_fee_per_gas_minute_open
kind: store
initialBlock: 12965000
updatePolicy: set_if_not_exists
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_minute_high
kind: store
initialBlock: 12965000
updatePolicy: max
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_minute_low
kind: store
initialBlock: 12965000
updatePolicy: min
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_minute_close
kind: store
initialBlock: 12965000
updatePolicy: set
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_hour_open
kind: store
initialBlock: 12965000
updatePolicy: set_if_not_exists
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_hour_high
kind: store
initialBlock: 12965000
updatePolicy: max
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_hour_low
kind: store
initialBlock: 12965000
updatePolicy: min
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_hour_close
kind: store
initialBlock: 12965000
updatePolicy: set
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_day_open
kind: store
initialBlock: 12965000
updatePolicy: set_if_not_exists
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_day_high
kind: store
initialBlock: 12965000
updatePolicy: max
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_day_low
kind: store
initialBlock: 12965000
updatePolicy: min
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_day_close
kind: store
initialBlock: 12965000
updatePolicy: set
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_week_open
kind: store
initialBlock: 12965000
updatePolicy: set_if_not_exists
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_week_high
kind: store
initialBlock: 12965000
updatePolicy: max
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_week_low
kind: store
initialBlock: 12965000
updatePolicy: min
valueType: bigint
inputs:
- map: map_block
- name: store_base_fee_per_gas_week_close
kind: store
initialBlock: 12965000
updatePolicy: set
valueType: bigint
inputs:
- map: map_block