Skip to content

Commit

Permalink
feat: add diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
catalyst17 committed Nov 30, 2023
1 parent 2259187 commit a7a3d9e
Showing 1 changed file with 135 additions and 19 deletions.
154 changes: 135 additions & 19 deletions diag.drawio
Original file line number Diff line number Diff line change
@@ -1,37 +1,153 @@
<mxfile host="65bd71144e">
<diagram id="KC7qV0bCD8HwIp1v-dRT" name="Page-1">
<mxGraphModel dx="1044" dy="691" 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">
<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="2" value="stream" style="shape=singleArrow;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="130" y="85" width="100" height="60" as="geometry"/>
<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="&lt;font style=&quot;font-size: 15px;&quot;&gt;stream&lt;/font&gt;" 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="Firehose Node" style="shape=tapeData;whiteSpace=wrap;html=1;perimeter=ellipsePerimeter;" vertex="1" parent="1">
<mxGeometry x="20" y="60" width="110" height="110" as="geometry"/>
<mxCell id="5" value="Ethereum&lt;br&gt;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=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="9" target="16">
<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="750" y="145" as="targetPoint"/>
<mxPoint x="704" y="415.62" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="9" value="Substreams modules&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;" vertex="1" parent="1">
<mxGeometry x="230" y="22.5" width="450" height="197.5" as="geometry"/>
<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="&lt;span style=&quot;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;&quot;&gt;Blocktorch substreams sink (node.js server)&lt;/span&gt;" 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="10" value="filter AA transactions" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="1">
<mxGeometry x="280" y="100" width="170" height="30" as="geometry"/>
<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="11" value="filter Oracles transactions" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="1">
<mxGeometry x="280" y="150" width="200" height="30" as="geometry"/>
<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="13" value="sink to SQL" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;rotation=0;" vertex="1" parent="1">
<mxGeometry x="440" y="100" width="170" height="30" as="geometry"/>
<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="14" value="sink to SQL" style="shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;" vertex="1" parent="1">
<mxGeometry x="470" y="150" width="160" height="30" as="geometry"/>
<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="16" value="Postgres" style="shape=datastore;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="380" y="300" width="150" height="150" as="geometry"/>
<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="&lt;span style=&quot;&quot;&gt;Blocktorch substreams package&lt;/span&gt;" 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&lt;br&gt;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="&lt;meta charset=&quot;utf-8&quot;&gt;&lt;span style=&quot;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;&quot;&gt;can be run in parallel&lt;/span&gt;" 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)&lt;br&gt;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="&lt;font style=&quot;font-size: 15px;&quot;&gt;stream&lt;/font&gt;" 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="&lt;font style=&quot;font-size: 15px;&quot;&gt;stream&lt;/font&gt;" 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&lt;br&gt;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="&lt;font style=&quot;font-size: 15px;&quot;&gt;stream&lt;/font&gt;" 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="&amp;lt;Chain&amp;gt;&lt;br&gt;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>
Expand Down

0 comments on commit a7a3d9e

Please sign in to comment.