Skip to content

Commit 9845ecc

Browse files
committed
adding drawing source and fixing scripts to with in c9
1 parent 37f914c commit 9845ecc

File tree

3 files changed

+128
-2
lines changed

3 files changed

+128
-2
lines changed

lib/allora/allora.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env node
2+
import 'dotenv/config';
23
import 'source-map-support/register';
34
import * as cdk from 'aws-cdk-lib';
45
import { AlloraStack } from './lib/allora-stack';
@@ -15,5 +16,5 @@ new AlloraStack(app, 'allora-single-node', {
1516
vpcMaxAzs: Number(process.env.AWS_VPC_MAX_AZS || 1),
1617
vpcNatGateways: Number(process.env.AWS_VPC_NAT_GATEWAYS || 0),
1718
vpcSubnetCidrMask: Number(process.env.AWS_VPC_CIDR_MASK),
18-
resourceNamePrefix: process.env.AWS_RESOURCE_NAME_PREFIX || 'AlloraWorkerxVpc'
19+
resourceNamePrefix: process.env.AWS_RESOURCE_NAME_PREFIX || 'AlloraWorkerx'
1920
});

lib/allora/cdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"app": "npx ts-node --prefer-ts-exts bin/allora.ts",
2+
"app": "npx ts-node --prefer-ts-exts allora.ts",
33
"watch": {
44
"include": [
55
"**"
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
<mxfile host="app.diagrams.net" modified="2024-07-03T15:46:34.332Z" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36" etag="28LXu3a8bohV5VOf4S6Y" version="24.6.4" type="google">
2+
<diagram name="Page-1" id="qMV03sZEVbvvdOTx7BUL">
3+
<mxGraphModel dx="3336" dy="1534" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
4+
<root>
5+
<mxCell id="0" />
6+
<mxCell id="1" parent="0" />
7+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-1" value="AWS Account" style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;fontSize=18.3;fontColor=#232f3e;spacing=0;strokeColor=#232f3e;strokeOpacity=100;fillOpacity=0;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#ffffff;strokeWidth=2.3;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;lucidId=_YvMQiWvPY6W;" parent="1" vertex="1">
8+
<mxGeometry x="915" y="195" width="1680" height="990" as="geometry" />
9+
</mxCell>
10+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-2" value="Region" style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;fontSize=18.3;fontColor=#147eba;spacing=0;strokeColor=#147eba;strokeOpacity=100;fillOpacity=0;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#ffffff;dashed=1;fixDash=1;dashPattern=6 5;strokeWidth=2.3;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;lucidId=9QJM80IVYh6_;" parent="1" vertex="1">
11+
<mxGeometry x="960" y="240" width="1590" height="900" as="geometry" />
12+
</mxCell>
13+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-3" value="Virtual Private Cloud (VPC)" style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;fontSize=18.3;fontColor=#248814;spacing=0;strokeColor=#248814;strokeOpacity=100;fillOpacity=0;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#ffffff;strokeWidth=2.3;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;lucidId=TXJMV_QqjrSG;" parent="1" vertex="1">
14+
<mxGeometry x="1005" y="285" width="1500" height="810" as="geometry" />
15+
</mxCell>
16+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-4" value="Public Subnet" style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;fontSize=18.3;fontColor=#248814;spacing=0;strokeColor=none;strokeOpacity=100;fillOpacity=13;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#248814;strokeWidth=0;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;lucidId=XgKM0bekm8-m;" parent="1" vertex="1">
17+
<mxGeometry x="1261" y="488" width="1034" height="428" as="geometry" />
18+
</mxCell>
19+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-5" value="Availability Zone (AZ)" style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;fontSize=18.3;fontColor=#147eba;spacing=0;strokeColor=#147eba;strokeOpacity=100;fillOpacity=0;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#ffffff;dashed=1;fixDash=1;dashPattern=6 5;strokeWidth=2.3;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;lucidId=CyLM2.gjfOU.;" parent="1" vertex="1">
20+
<mxGeometry x="1231" y="450" width="1094" height="499" as="geometry" />
21+
</mxCell>
22+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-6" value="EC2 Instance (Allora Worker Node running Docker)" style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;fontSize=18.5;fontColor=#d86613;spacing=0;verticalAlign=top;strokeColor=#d86613;strokeOpacity=100;fillOpacity=100;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#ffffff;strokeWidth=2.3;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;lucidId=-u2NlGh-AkDf;" parent="1" vertex="1">
23+
<mxGeometry x="1456" y="555" width="629" height="264" as="geometry" />
24+
</mxCell>
25+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-28" value="Elastic IP " style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;shape=mxgraph.aws3.elastic_ip;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;pointerEvents=1;fontSize=18.3;fontColor=#333333;spacing=3.8;strokeColor=none;strokeOpacity=100;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#f58536;dashed=1;fixDash=1;dashPattern=1 4;strokeWidth=0;lucidId=EzYO~SXN5R_3;" parent="rnTM9BWuJ4nTEVAYAD44-6" vertex="1">
26+
<mxGeometry x="14" y="49" width="90" height="41" as="geometry" />
27+
</mxCell>
28+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-7" value="" style="group;dropTarget=0;pointerEvents=0;" parent="1" vertex="1">
29+
<mxGeometry as="geometry" />
30+
</mxCell>
31+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-8" value="" style="group;dropTarget=0;pointerEvents=0;" parent="1" vertex="1">
32+
<mxGeometry as="geometry" />
33+
</mxCell>
34+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-9" value="" style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;fontSize=13;align=center;spacing=3.8;strokeColor=#unset;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#unset;strokeWidth=NaN;lucidId=7X7MiWF~K5Hu;" parent="1" vertex="1">
35+
<mxGeometry x="-75" y="525" width="420" height="330" as="geometry" />
36+
</mxCell>
37+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-10" value="" style="html=1;jettySize=18;whiteSpace=wrap;fontSize=13;strokeColor=#3a414a;strokeOpacity=100;strokeWidth=0.8;rounded=1;arcSize=24;edgeStyle=orthogonalEdgeStyle;startArrow=none;endArrow=block;endFill=1;entryX=0;entryY=0.156;entryPerimeter=0;lucidId=FY7MXUKkzTnU;" parent="1" target="rnTM9BWuJ4nTEVAYAD44-26" edge="1">
38+
<mxGeometry width="100" height="100" relative="1" as="geometry">
39+
<Array as="points" />
40+
<mxPoint x="675" y="689" as="sourcePoint" />
41+
</mxGeometry>
42+
</mxCell>
43+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-11" value="Request for Inferences" style="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;fontColor=#333333;fontSize=18.3;" parent="rnTM9BWuJ4nTEVAYAD44-10" vertex="1">
44+
<mxGeometry x="-0.7296296296296296" relative="1" as="geometry">
45+
<mxPoint as="offset" />
46+
</mxGeometry>
47+
</mxCell>
48+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-12" value="Allora Network&#xa;Public Head Nodes" style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;fontSize=18.3;align=center;spacing=0;verticalAlign=middle;strokeColor=#5a6c86;strokeOpacity=100;fillOpacity=0;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#ffffff;strokeWidth=2.3;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;lucidId=Q51NzTwxD9la;" parent="1" vertex="1">
49+
<mxGeometry x="495" y="675" width="165" height="75" as="geometry" />
50+
</mxCell>
51+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-13" value="" style="html=1;jettySize=18;whiteSpace=wrap;fontSize=13;strokeColor=#3a414a;strokeOpacity=100;strokeWidth=0.8;rounded=1;arcSize=24;edgeStyle=orthogonalEdgeStyle;startArrow=none;endArrow=block;endFill=1;exitX=0;exitY=0.657;exitPerimeter=0;entryX=1.007;entryY=0.788;entryPerimeter=0;lucidId=kj2NyueEfGJ9;" parent="1" source="rnTM9BWuJ4nTEVAYAD44-26" target="rnTM9BWuJ4nTEVAYAD44-12" edge="1">
52+
<mxGeometry width="100" height="100" relative="1" as="geometry">
53+
<Array as="points" />
54+
</mxGeometry>
55+
</mxCell>
56+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-14" value="Response with Inferences" style="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;fontColor=#333333;fontSize=18.3;" parent="rnTM9BWuJ4nTEVAYAD44-13" vertex="1">
57+
<mxGeometry x="0.6843987246741681" relative="1" as="geometry">
58+
<mxPoint as="offset" />
59+
</mxGeometry>
60+
</mxCell>
61+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-15" value="" style="html=1;jettySize=18;whiteSpace=wrap;fontSize=13;strokeColor=#3a414a;strokeOpacity=100;strokeWidth=0.8;rounded=1;arcSize=24;edgeStyle=orthogonalEdgeStyle;startArrow=none;endArrow=block;endFill=1;lucidId=3W2NCLsf5O8j;" parent="1" edge="1">
62+
<mxGeometry width="100" height="100" relative="1" as="geometry">
63+
<Array as="points" />
64+
<mxPoint x="345" y="692" as="sourcePoint" />
65+
<mxPoint x="495" y="692" as="targetPoint" />
66+
</mxGeometry>
67+
</mxCell>
68+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-16" value="Request" style="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;fontColor=#333333;fontSize=18.3;" parent="rnTM9BWuJ4nTEVAYAD44-15" vertex="1">
69+
<mxGeometry relative="1" as="geometry">
70+
<mxPoint as="offset" />
71+
</mxGeometry>
72+
</mxCell>
73+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-17" value="" style="html=1;jettySize=18;whiteSpace=wrap;fontSize=13;strokeColor=#3a414a;strokeOpacity=100;strokeWidth=0.8;rounded=1;arcSize=24;edgeStyle=orthogonalEdgeStyle;startArrow=none;endArrow=block;endFill=1;lucidId=BZ2N9~-V4MCM;" parent="1" edge="1">
74+
<mxGeometry width="100" height="100" relative="1" as="geometry">
75+
<Array as="points" />
76+
<mxPoint x="495" y="735" as="sourcePoint" />
77+
<mxPoint x="345" y="735" as="targetPoint" />
78+
</mxGeometry>
79+
</mxCell>
80+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-18" value="Response" style="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;fontColor=#333333;fontSize=18.3;" parent="rnTM9BWuJ4nTEVAYAD44-17" vertex="1">
81+
<mxGeometry x="-0.10999999999999999" relative="1" as="geometry">
82+
<mxPoint as="offset" />
83+
</mxGeometry>
84+
</mxCell>
85+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-19" value="VPC Internet Gateway" style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;shape=mxgraph.aws3.internet_gateway;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;pointerEvents=1;fontSize=18.3;fontColor=#3a414a;spacing=3.8;strokeColor=#3a414a;strokeOpacity=100;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#f58536;strokeWidth=0.8;lucidId=H07MxiphtlWI;" parent="1" vertex="1">
86+
<mxGeometry x="1035" y="645" width="120" height="135" as="geometry" />
87+
</mxCell>
88+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-20" value="" style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;shape=image;fontSize=13;spacing=0;verticalAlign=top;strokeColor=none;strokeOpacity=0;rounded=1;absoluteArcSize=1;arcSize=12;dashed=1;fixDash=1;dashPattern=1 4;strokeWidth=0;image=https://images.lucid.app/images/26d560da-be5f-4e5a-8a1f-d08955e03b65/content;imageAspect=0;lucidId=Nr3NNLmmP2up;" parent="1" vertex="1">
89+
<mxGeometry x="-13" y="600" width="266" height="110" as="geometry" />
90+
</mxCell>
91+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-21" value="" style="html=1;jettySize=18;whiteSpace=wrap;fontSize=13;strokeColor=#3a414a;strokeOpacity=100;strokeWidth=0.8;rounded=1;arcSize=24;edgeStyle=orthogonalEdgeStyle;startArrow=none;endArrow=block;endFill=1;exitX=1;exitY=0.167;exitPerimeter=0;lucidId=bD3NWywXu_YH;" parent="1" source="rnTM9BWuJ4nTEVAYAD44-26" edge="1">
92+
<mxGeometry width="100" height="100" relative="1" as="geometry">
93+
<Array as="points" />
94+
<mxPoint x="1858" y="690" as="targetPoint" />
95+
</mxGeometry>
96+
</mxCell>
97+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-22" value="Call Main.py" style="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;fontColor=#333333;fontSize=18.3;" parent="rnTM9BWuJ4nTEVAYAD44-21" vertex="1">
98+
<mxGeometry x="-0.1696745874502491" relative="1" as="geometry">
99+
<mxPoint as="offset" />
100+
</mxGeometry>
101+
</mxCell>
102+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-23" value="" style="html=1;jettySize=18;whiteSpace=wrap;fontSize=13;strokeColor=#3a414a;strokeOpacity=100;strokeWidth=0.8;rounded=1;arcSize=24;edgeStyle=orthogonalEdgeStyle;startArrow=none;endArrow=block;endFill=1;entryX=1;entryY=0.667;entryPerimeter=0;lucidId=jD3NIj7fWPk6;" parent="1" target="rnTM9BWuJ4nTEVAYAD44-26" edge="1">
103+
<mxGeometry width="100" height="100" relative="1" as="geometry">
104+
<Array as="points" />
105+
<mxPoint x="1860" y="735" as="sourcePoint" />
106+
</mxGeometry>
107+
</mxCell>
108+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-24" value="Return Inferences" style="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;fontColor=#333333;fontSize=18.3;" parent="rnTM9BWuJ4nTEVAYAD44-23" vertex="1">
109+
<mxGeometry relative="1" as="geometry">
110+
<mxPoint as="offset" />
111+
</mxGeometry>
112+
</mxCell>
113+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-25" value="A self-improviing decentralized AI network " style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;fontSize=21.7;spacing=3.8;verticalAlign=middle;strokeOpacity=0;fillOpacity=0;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#000000;strokeWidth=NaN;lucidId=WgfOnQqIrc8R;" parent="1" vertex="1">
114+
<mxGeometry y="659" width="255" height="127" as="geometry" />
115+
</mxCell>
116+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-26" value="Worker&#xa;Container" style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;shape=mxgraph.aws3.ec2_compute_container;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;pointerEvents=1;fontSize=18.3;fontColor=#333333;spacing=3.8;strokeColor=none;strokeOpacity=100;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#f58536;dashed=1;fixDash=1;dashPattern=1 4;strokeWidth=0;lucidId=2fYOvTz-elsl;" parent="1" vertex="1">
117+
<mxGeometry x="1500" y="675" width="135" height="90" as="geometry" />
118+
</mxCell>
119+
<mxCell id="rnTM9BWuJ4nTEVAYAD44-27" value="Inference Container" style="html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;shape=mxgraph.aws3.ec2_compute_container;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;pointerEvents=1;fontSize=18.3;fontColor=#333333;spacing=3.8;strokeColor=none;strokeOpacity=100;rounded=1;absoluteArcSize=1;arcSize=12;fillColor=#f58536;dashed=1;fixDash=1;dashPattern=1 4;strokeWidth=0;lucidId=ruYOFB6uyYjL;" parent="1" vertex="1">
120+
<mxGeometry x="1864" y="668" width="135" height="90" as="geometry" />
121+
</mxCell>
122+
</root>
123+
</mxGraphModel>
124+
</diagram>
125+
</mxfile>

0 commit comments

Comments
 (0)