-
Notifications
You must be signed in to change notification settings - Fork 0
/
diag.drawio
155 lines (155 loc) · 13.1 KB
/
diag.drawio
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
<mxfile host="65bd71144e">
<diagram id="KC7qV0bCD8HwIp1v-dRT" name="Page-1">
<mxGraphModel dx="1223" dy="708" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="28" style="edgeStyle=none;html=1;shape=flexArrow;entryX=0.443;entryY=-0.008;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="5" target="9">
<mxGeometry relative="1" as="geometry">
<mxPoint x="394" y="391.62" as="targetPoint"/>
<Array as="points">
<mxPoint x="479" y="391.62"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="30" value="<font style="font-size: 15px;">stream</font>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="28">
<mxGeometry y="-2" relative="1" as="geometry">
<mxPoint x="-32" y="-13" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="5" value="Ethereum<br>Firehose Node" style="shape=tapeData;whiteSpace=wrap;html=1;perimeter=ellipsePerimeter;" parent="1" vertex="1">
<mxGeometry x="214" y="336.87" width="110" height="110" as="geometry"/>
</mxCell>
<mxCell id="15" style="edgeStyle=none;html=1;exitX=1;exitY=0.75;exitDx=0;exitDy=0;entryX=0;entryY=0.7;entryDx=0;entryDy=0;" parent="1" source="17" target="16" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="704" y="415.62" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="16" value="Postgres" style="shape=datastore;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="524" y="770.62" width="110" height="110" as="geometry"/>
</mxCell>
<mxCell id="20" style="edgeStyle=none;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="17" target="5">
<mxGeometry relative="1" as="geometry">
<mxPoint x="639" y="590.62" as="targetPoint"/>
<mxPoint x="419" y="500.62" as="sourcePoint"/>
<Array as="points">
<mxPoint x="189" y="390.62"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="21" value="" style="group" vertex="1" connectable="0" parent="1">
<mxGeometry x="14" y="720.62" width="350" height="170" as="geometry"/>
</mxCell>
<mxCell id="17" value="" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;" vertex="1" parent="21">
<mxGeometry width="350" height="170" as="geometry"/>
</mxCell>
<mxCell id="18" value="<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(251, 251, 251); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;">Blocktorch substreams sink (node.js server)</span>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="21">
<mxGeometry x="49.998888888888885" y="10.001304347826085" width="260" height="30" as="geometry"/>
</mxCell>
<mxCell id="25" value="fetch .spkg" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="21">
<mxGeometry x="40" y="40" width="170" height="30" as="geometry"/>
</mxCell>
<mxCell id="26" value="initialize the stream through it" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="21">
<mxGeometry x="60" y="80" width="210" height="30" as="geometry"/>
</mxCell>
<mxCell id="27" value="sink data to SQL (or whatever else)" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="21">
<mxGeometry x="80" y="119.5" width="230" height="30" as="geometry"/>
</mxCell>
<mxCell id="22" value="" style="group" vertex="1" connectable="0" parent="1">
<mxGeometry x="214" y="480.62" width="600" height="197.5" as="geometry"/>
</mxCell>
<mxCell id="9" value="" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;" parent="22" vertex="1">
<mxGeometry width="600" height="197.5" as="geometry"/>
</mxCell>
<mxCell id="10" value="filter AA transactions" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" parent="22" vertex="1">
<mxGeometry x="80" y="50" width="266.66666666666663" height="30" as="geometry"/>
</mxCell>
<mxCell id="11" value="filter Chrocnicle transactions" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" parent="22" vertex="1">
<mxGeometry x="80" y="90" width="266.66666666666663" height="30" as="geometry"/>
</mxCell>
<mxCell id="19" value="<span style="">Blocktorch substreams package</span>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="22">
<mxGeometry x="173.33333333333331" y="7.5" width="190" height="30" as="geometry"/>
</mxCell>
<mxCell id="33" value="... any other filtering for specific ABIs" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="22">
<mxGeometry x="80" y="130" width="320" height="30" as="geometry"/>
</mxCell>
<mxCell id="34" value="combine<br>the results" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;rotation=0;" vertex="1" parent="22">
<mxGeometry x="440" y="74.38" width="98.75" height="61.25" as="geometry"/>
</mxCell>
<mxCell id="35" value="" style="shape=dimension;direction=north;whiteSpace=wrap;html=1;align=right;points=[];verticalAlign=middle;labelBackgroundColor=#ffffff;fontSize=15;" vertex="1" parent="22">
<mxGeometry x="253.33333333333331" y="50" width="186.66666666666666" height="110" as="geometry"/>
</mxCell>
<mxCell id="36" value="<meta charset="utf-8"><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;">can be run in parallel</span>" style="text;whiteSpace=wrap;html=1;fontSize=11;rotation=90;" vertex="1" parent="22">
<mxGeometry x="346.66999999999996" y="100" width="140" height="40" as="geometry"/>
</mxCell>
<mxCell id="23" value="request (initialize)<br>the strean" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="74" y="490.62" width="120" height="40" as="geometry"/>
</mxCell>
<mxCell id="31" style="edgeStyle=none;html=1;shape=flexArrow;entryX=1;entryY=0.25;entryDx=0;entryDy=0;exitX=0.435;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="1" source="9" target="17">
<mxGeometry relative="1" as="geometry">
<mxPoint x="524" y="809.62" as="targetPoint"/>
<mxPoint x="369" y="720.87" as="sourcePoint"/>
<Array as="points">
<mxPoint x="474" y="763.62"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="32" value="<font style="font-size: 15px;">stream</font>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="31">
<mxGeometry y="-2" relative="1" as="geometry">
<mxPoint x="-32" y="-11" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="41" style="edgeStyle=none;html=1;shape=flexArrow;entryX=0.559;entryY=-0.009;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="43" target="9">
<mxGeometry relative="1" as="geometry">
<mxPoint x="370.8000000000002" y="342.1700000000001" as="targetPoint"/>
<Array as="points">
<mxPoint x="550" y="256.87"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="42" value="<font style="font-size: 15px;">stream</font>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="41">
<mxGeometry y="-2" relative="1" as="geometry">
<mxPoint x="-32" y="-13" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="43" value="Polygon<br>Firehose Node" style="shape=tapeData;whiteSpace=wrap;html=1;perimeter=ellipsePerimeter;" vertex="1" parent="1">
<mxGeometry x="105" y="200" width="110" height="110" as="geometry"/>
</mxCell>
<mxCell id="44" style="edgeStyle=none;html=1;exitX=0.187;exitY=-0.01;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;exitPerimeter=0;" edge="1" parent="1" target="43" source="17">
<mxGeometry relative="1" as="geometry">
<mxPoint x="530" y="453.75" as="targetPoint"/>
<mxPoint x="79.99999999999977" y="583.75" as="sourcePoint"/>
<Array as="points">
<mxPoint x="80" y="253.75"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="45" style="edgeStyle=none;html=1;shape=flexArrow;dashed=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="47" target="9">
<mxGeometry relative="1" as="geometry">
<mxPoint x="340.8000000000002" y="222.17000000000007" as="targetPoint"/>
<Array as="points">
<mxPoint x="660" y="135"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="46" value="<font style="font-size: 15px;">stream</font>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="45">
<mxGeometry y="-2" relative="1" as="geometry">
<mxPoint x="-32" y="-13" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="47" value="&lt;Chain&gt;<br>Firehose Node" style="shape=tapeData;whiteSpace=wrap;html=1;perimeter=ellipsePerimeter;dashed=1;" vertex="1" parent="1">
<mxGeometry x="75" y="80" width="110" height="110" as="geometry"/>
</mxCell>
<mxCell id="48" style="edgeStyle=none;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;exitX=0.109;exitY=-0.014;exitDx=0;exitDy=0;exitPerimeter=0;dashed=1;" edge="1" parent="1" target="47" source="17">
<mxGeometry relative="1" as="geometry">
<mxPoint x="500" y="333.75" as="targetPoint"/>
<mxPoint x="49.99999999999977" y="463.75" as="sourcePoint"/>
<Array as="points">
<mxPoint x="50" y="133.75"/>
</Array>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>