Skip to content

Commit ebde879

Browse files
Fix deployments steps
1 parent f9a435e commit ebde879

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

CONTRIBUTING.md

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ git clone https://github.com/kernelwhisperer/protofun
7878
cd protofun
7979
sudo apt install make -y
8080
sudo apt-get install jq -y
81+
nano ~/.profile
82+
# paste these 2 lines
8183
export STREAMINGFAST_KEY=server_******* # Use your own API key
8284
export SUBSTREAMS_API_TOKEN=$(curl https://auth.streamingfast.io/v1/auth/issue -s --data-binary '{"api_key":"'$STREAMINGFAST_KEY'"}' | jq -r .token)
8385
echo $SUBSTREAMS_API_TOKEN

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ENDPOINT ?= mainnet.eth.streamingfast.io:443
22
POSTGRESQL_DSN ?= psql://daniel:toor@localhost:5432/protofun?sslmode=disable
33

4-
START_BLOCK ?= 17670000
4+
START_BLOCK ?= 17660000
55
STOP_BLOCK ?= +5
66
# START_BLOCK ?= 12964995
77
# STOP_BLOCK ?= 12965005
@@ -64,7 +64,7 @@ remove-graph-node:
6464
deploy-graph: package
6565
graph build --ipfs $(IPFS_ENDPOINT) subgraph.yaml
6666
graph create protofun_block_meta --node $(GRAPH_NODE_ENDPOINT)
67-
graph deploy --node $(GRAPH_NODE_ENDPOINT) --ipfs $(IPFS_ENDPOINT) --version-label v0.1.1 protofun_block_meta subgraph.yaml
67+
graph deploy --node $(GRAPH_NODE_ENDPOINT) --ipfs $(IPFS_ENDPOINT) --version-label v0.2.0 protofun_block_meta subgraph.yaml
6868

6969
.PHONE: undeploy-graph
7070
undeploy-graph:

substreams.yaml

+18-18
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ modules:
2222
- name: map_block
2323
kind: map
2424
# Important: to avoid back-processing
25-
initialBlock: 17670000
25+
initialBlock: 17660000
2626
inputs:
2727
- source: sf.ethereum.type.v2.Block
2828
output:
@@ -32,7 +32,7 @@ modules:
3232

3333
- name: graph_out
3434
kind: map
35-
initialBlock: 17670000
35+
initialBlock: 17660000
3636
inputs:
3737
- source: sf.ethereum.type.v2.Block
3838
- store: store_base_fee_per_gas_minute_open
@@ -56,127 +56,127 @@ modules:
5656

5757
- name: store_base_fee_per_gas_minute_open
5858
kind: store
59-
initialBlock: 17670000
59+
initialBlock: 17660000
6060
updatePolicy: set_if_not_exists
6161
valueType: bigint
6262
inputs:
6363
- map: map_block
6464

6565
- name: store_base_fee_per_gas_minute_high
6666
kind: store
67-
initialBlock: 17670000
67+
initialBlock: 17660000
6868
updatePolicy: max
6969
valueType: bigint
7070
inputs:
7171
- map: map_block
7272

7373
- name: store_base_fee_per_gas_minute_low
7474
kind: store
75-
initialBlock: 17670000
75+
initialBlock: 17660000
7676
updatePolicy: min
7777
valueType: bigint
7878
inputs:
7979
- map: map_block
8080

8181
- name: store_base_fee_per_gas_minute_close
8282
kind: store
83-
initialBlock: 17670000
83+
initialBlock: 17660000
8484
updatePolicy: set
8585
valueType: bigint
8686
inputs:
8787
- map: map_block
8888

8989
- name: store_base_fee_per_gas_hour_open
9090
kind: store
91-
initialBlock: 17670000
91+
initialBlock: 17660000
9292
updatePolicy: set_if_not_exists
9393
valueType: bigint
9494
inputs:
9595
- map: map_block
9696

9797
- name: store_base_fee_per_gas_hour_high
9898
kind: store
99-
initialBlock: 17670000
99+
initialBlock: 17660000
100100
updatePolicy: max
101101
valueType: bigint
102102
inputs:
103103
- map: map_block
104104

105105
- name: store_base_fee_per_gas_hour_low
106106
kind: store
107-
initialBlock: 17670000
107+
initialBlock: 17660000
108108
updatePolicy: min
109109
valueType: bigint
110110
inputs:
111111
- map: map_block
112112

113113
- name: store_base_fee_per_gas_hour_close
114114
kind: store
115-
initialBlock: 17670000
115+
initialBlock: 17660000
116116
updatePolicy: set
117117
valueType: bigint
118118
inputs:
119119
- map: map_block
120120

121121
- name: store_base_fee_per_gas_day_open
122122
kind: store
123-
initialBlock: 17670000
123+
initialBlock: 17660000
124124
updatePolicy: set_if_not_exists
125125
valueType: bigint
126126
inputs:
127127
- map: map_block
128128

129129
- name: store_base_fee_per_gas_day_high
130130
kind: store
131-
initialBlock: 17670000
131+
initialBlock: 17660000
132132
updatePolicy: max
133133
valueType: bigint
134134
inputs:
135135
- map: map_block
136136

137137
- name: store_base_fee_per_gas_day_low
138138
kind: store
139-
initialBlock: 17670000
139+
initialBlock: 17660000
140140
updatePolicy: min
141141
valueType: bigint
142142
inputs:
143143
- map: map_block
144144

145145
- name: store_base_fee_per_gas_day_close
146146
kind: store
147-
initialBlock: 17670000
147+
initialBlock: 17660000
148148
updatePolicy: set
149149
valueType: bigint
150150
inputs:
151151
- map: map_block
152152

153153
- name: store_base_fee_per_gas_week_open
154154
kind: store
155-
initialBlock: 17670000
155+
initialBlock: 17660000
156156
updatePolicy: set_if_not_exists
157157
valueType: bigint
158158
inputs:
159159
- map: map_block
160160

161161
- name: store_base_fee_per_gas_week_high
162162
kind: store
163-
initialBlock: 17670000
163+
initialBlock: 17660000
164164
updatePolicy: max
165165
valueType: bigint
166166
inputs:
167167
- map: map_block
168168

169169
- name: store_base_fee_per_gas_week_low
170170
kind: store
171-
initialBlock: 17670000
171+
initialBlock: 17660000
172172
updatePolicy: min
173173
valueType: bigint
174174
inputs:
175175
- map: map_block
176176

177177
- name: store_base_fee_per_gas_week_close
178178
kind: store
179-
initialBlock: 17670000
179+
initialBlock: 17660000
180180
updatePolicy: set
181181
valueType: bigint
182182
inputs:

0 commit comments

Comments
 (0)