-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.$Telos-Native<->EVM.drawio.bkp
161 lines (161 loc) · 18.6 KB
/
.$Telos-Native<->EVM.drawio.bkp
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
<mxfile host="Electron" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/26.0.3 Chrome/130.0.6723.137 Electron/33.2.1 Safari/537.36" version="26.0.3">
<diagram name="Page-1" id="oMX-HPsqIfJamrMMESxb">
<mxGraphModel dx="2261" dy="2143" 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="kYRyo_h60_AEEvOUtYnw-3" value="<b>token.boid</b><div>owner: dac.boid@active</div><div>active: dac.boid@active<br>BOID token smart contract</div>" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-60" y="150" width="155" height="60" as="geometry" />
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-4" value="<b>eosio.token</b><div><div>owner: eosio@active</div><div>active: eosio@active</div>TLOS token smart contract</div>" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="125" y="150" width="155" height="60" as="geometry" />
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-5" value="<b>evm.boid</b><div><div>owner: dac.boid@active</div><div>active: dac.boid@active</div>tokenBridge smart contract<div><span><font style="color: rgb(0, 0, 0);">0x<span style="font-family: Montserrat, sans-serif; text-align: left;">245ae39b8bd7074febfbf94a8310498e015cc0cb</span></font></span></div><div><span><font style="color: rgb(0, 0, 0);">acc</font></span><span style="background-color: transparent; color: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"> on evm</span></div></div>" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-17.5" y="370" width="275" height="90" as="geometry" />
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-6" value="<b>xsend.boid</b><div><div>owner: dac.boid@active</div><div>active: dac.boid@active</div><div>feeForwarder smart contract</div></div>" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="30" y="260" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-9" value="<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>User" style="points=[];aspect=fixed;html=1;align=center;shadow=0;dashed=0;fillColor=#FF6A00;strokeColor=none;shape=mxgraph.alibaba_cloud.user;" parent="1" vertex="1">
<mxGeometry x="90" y="20" width="60" height="60" as="geometry" />
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-11" value="<font style="font-size: 14px;">Telos Native</font>" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" parent="1" vertex="1">
<mxGeometry y="-20" width="240" height="30" as="geometry" />
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-17" value="" style="endArrow=classic;startArrow=classic;html=1;rounded=0;entryX=0.05;entryY=0.517;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" parent="1" source="kYRyo_h60_AEEvOUtYnw-3" target="kYRyo_h60_AEEvOUtYnw-9" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-50" y="130" as="sourcePoint" />
<mxPoint y="80" as="targetPoint" />
<Array as="points" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-20" value="to be bridged<div>token</div>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="kYRyo_h60_AEEvOUtYnw-17" vertex="1" connectable="0">
<mxGeometry x="-0.0056" y="1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-18" value="" style="endArrow=classic;startArrow=classic;html=1;rounded=0;entryX=0.967;entryY=0.517;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" parent="1" source="kYRyo_h60_AEEvOUtYnw-4" target="kYRyo_h60_AEEvOUtYnw-9" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="270" y="110" as="sourcePoint" />
<mxPoint x="320" y="60" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-19" value="fee" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="kYRyo_h60_AEEvOUtYnw-18" vertex="1" connectable="0">
<mxGeometry x="0.0131" y="1" relative="1" as="geometry">
<mxPoint x="-1" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-21" value="" style="endArrow=classic;startArrow=classic;html=1;rounded=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;exitX=0.706;exitY=-0.017;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="kYRyo_h60_AEEvOUtYnw-6" target="kYRyo_h60_AEEvOUtYnw-4" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="310" y="270" as="sourcePoint" />
<mxPoint x="360" y="220" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-22" value="first exact fee<div>transfer</div>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="kYRyo_h60_AEEvOUtYnw-21" vertex="1" connectable="0">
<mxGeometry x="-0.0015" y="-1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-23" value="" style="endArrow=classic;startArrow=classic;html=1;rounded=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;exitX=0.356;exitY=-0.033;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="kYRyo_h60_AEEvOUtYnw-6" target="kYRyo_h60_AEEvOUtYnw-3" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="120" y="260" as="sourcePoint" />
<mxPoint x="50" y="260" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-24" value="<div><br></div><div><br></div>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="kYRyo_h60_AEEvOUtYnw-23" vertex="1" connectable="0">
<mxGeometry x="-0.0087" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-25" value="second trx" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="kYRyo_h60_AEEvOUtYnw-23" vertex="1" connectable="0">
<mxGeometry x="0.0468" y="-1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-26" value="" style="endArrow=classic;startArrow=classic;html=1;rounded=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" parent="1" target="kYRyo_h60_AEEvOUtYnw-6" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="105" y="370" as="sourcePoint" />
<mxPoint x="50" y="350" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-27" value="transfer of BOID tokens and lock" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="kYRyo_h60_AEEvOUtYnw-26" vertex="1" connectable="0">
<mxGeometry x="0.04" relative="1" as="geometry">
<mxPoint y="6" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-30" value="<b>eosio.evm</b><div><div>owner: eosio@active</div><div>active: eosio@active</div>where Telos EVM runs</div>" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-20" y="560" width="190" height="60" as="geometry" />
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-32" value="" style="endArrow=classic;startArrow=classic;html=1;rounded=0;entryX=0.475;entryY=1.044;entryDx=0;entryDy=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryPerimeter=0;" parent="1" source="kYRyo_h60_AEEvOUtYnw-30" target="kYRyo_h60_AEEvOUtYnw-5" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-30" y="540" as="sourcePoint" />
<mxPoint x="105" y="450" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-33" value="raw action is called" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="kYRyo_h60_AEEvOUtYnw-32" vertex="1" connectable="0">
<mxGeometry x="0.1" y="2" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-34" value="Telos EVM" style="swimlane;horizontal=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="330" y="220" width="660" height="320" as="geometry" />
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-29" value="0x8fD5ae7223dAfCc28F99195f31ca917A4a3B6F63<br><div><b>token bridge smart contract (TokenBridge.sol)</b></div><div><span style="font-family: Menlo, Monaco, &quot;Courier New&quot;, monospace; white-space: pre; background-color: light-dark(#ffffff, var(--ge-dark-color, #121212));"><font style="color: rgb(0, 0, 0);">owner: </font></span><span style="font-family: Menlo, Monaco, &quot;Courier New&quot;, monospace; white-space: pre; color: rgb(106, 153, 85); background-color: rgb(31, 31, 31);">0x1D8F40d91602DF5117Bd6D97D2aC4EDE5C9FB300</span></div>" style="rounded=1;whiteSpace=wrap;html=1;" parent="kYRyo_h60_AEEvOUtYnw-34" vertex="1">
<mxGeometry x="127" y="220" width="370" height="60" as="geometry" />
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-7" value="<div style="line-height: 18px;"><span style="font-family: Menlo, Monaco, &quot;Courier New&quot;, monospace; white-space: pre; background-color: rgb(255, 255, 255);"><b>BOID token smart contract (OFT standard - TokenContract.sol)</b></span><font face="Menlo, Monaco, Courier New, monospace"><span style="white-space: pre;"></span></font></div><div style="line-height: 18px;"><font face="Menlo, Monaco, Courier New, monospace"><span style="white-space: pre;">Contract: </span></font><span style="font-family: Menlo, Monaco, &quot;Courier New&quot;, monospace; white-space: pre;"><font style="color: rgb(0, 0, 0);">0xacE76e8611319C443f4DF90FaEEdc48286563D17</font></span><span style="white-space: pre; font-family: Menlo, Monaco, &quot;Courier New&quot;, monospace; background-color: transparent; color: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));"> (unverified)</span><br></div><div style="font-family: Menlo, Monaco, &quot;Courier New&quot;, monospace; line-height: 18px; white-space: pre;"><span style="background-color: light-dark(#ffffff, var(--ge-dark-color, #121212));"><font><font style="color: rgb(0, 0, 0);">owner: </font></font></span><span style="color: rgb(106, 153, 85); background-color: rgb(31, 31, 31);">0x1D8F40d91602DF5117Bd6D97D2aC4EDE5C9FB300</span></div><div style="font-family: Menlo, Monaco, &quot;Courier New&quot;, monospace; line-height: 18px; white-space: pre;"><span style="background-color: light-dark(rgb(31, 31, 31), rgb(31, 31, 31)); color: light-dark(rgb(204, 204, 204), rgb(204, 204, 204));">BRIDGE_ROLE: </span><span style="background-color: rgb(31, 31, 31); color: rgb(106, 153, 85);">0x1D8F40d91602DF5117Bd6D97D2aC4EDE5C9FB300</span><span style="background-color: light-dark(rgb(31, 31, 31), rgb(31, 31, 31)); color: light-dark(rgb(204, 204, 204), rgb(204, 204, 204));"> </span></div><div style="font-family: Menlo, Monaco, &quot;Courier New&quot;, monospace; line-height: 18px; white-space: pre;"><span style="background-color: light-dark(rgb(31, 31, 31), rgb(31, 31, 31)); color: light-dark(rgb(204, 204, 204), rgb(204, 204, 204));">DEFAULT_ADMIN_ROLE: </span><span style="background-color: rgb(31, 31, 31); color: rgb(106, 153, 85);">0x1D8F40d91602DF5117Bd6D97D2aC4EDE5C9FB300</span><span style="background-color: light-dark(rgb(31, 31, 31), rgb(31, 31, 31)); color: light-dark(rgb(204, 204, 204), rgb(204, 204, 204));"> </span></div>" style="rounded=1;whiteSpace=wrap;html=1;" parent="kYRyo_h60_AEEvOUtYnw-34" vertex="1">
<mxGeometry x="100" y="60" width="480" height="100" as="geometry" />
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-87" value="" style="endArrow=classic;startArrow=classic;html=1;rounded=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="kYRyo_h60_AEEvOUtYnw-34" target="kYRyo_h60_AEEvOUtYnw-7" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="30" y="210" as="sourcePoint" />
<mxPoint x="150" y="230" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-89" value="" style="endArrow=classic;startArrow=classic;html=1;rounded=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="kYRyo_h60_AEEvOUtYnw-34" target="kYRyo_h60_AEEvOUtYnw-29" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="30" y="220" as="sourcePoint" />
<mxPoint x="130" y="310" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-90" value="" style="endArrow=classic;startArrow=classic;html=1;rounded=0;entryX=0.458;entryY=0.99;entryDx=0;entryDy=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryPerimeter=0;" parent="kYRyo_h60_AEEvOUtYnw-34" source="kYRyo_h60_AEEvOUtYnw-29" target="kYRyo_h60_AEEvOUtYnw-7" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="570" y="320" as="sourcePoint" />
<mxPoint x="335" y="260" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-37" value="bridge worker" style="sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;align=center;fillColor=#505050;shape=mxgraph.mscae.intune.user_management" parent="1" vertex="1">
<mxGeometry x="-260" y="400" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-38" value="" style="endArrow=classic;startArrow=classic;html=1;rounded=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;exitX=0.68;exitY=0;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="kYRyo_h60_AEEvOUtYnw-37" target="kYRyo_h60_AEEvOUtYnw-6" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-150" y="530" as="sourcePoint" />
<mxPoint x="-100" y="480" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-39" value="<div style="font-family: Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 18px; white-space-collapse: preserve;"><span><font>withdrawfees action</font></span></div><div style="font-family: Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 18px; white-space-collapse: preserve;"><span><font>sends TLOS from fees</font></span></div><div style="font-family: Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 18px; white-space-collapse: preserve;"><span><font>to evm.boid's evm acc</font></span></div>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="kYRyo_h60_AEEvOUtYnw-38" vertex="1" connectable="0">
<mxGeometry x="-0.0425" y="1" relative="1" as="geometry">
<mxPoint x="-1" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-40" value="" style="endArrow=classic;startArrow=classic;html=1;rounded=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;exitX=1;exitY=0.77;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="kYRyo_h60_AEEvOUtYnw-37" target="kYRyo_h60_AEEvOUtYnw-30" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-60" y="560" as="sourcePoint" />
<mxPoint x="-10" y="510" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-41" value="TO DO<div>checks on EVM if bridge trx tokens arrived</div><div>relays the info and&nbsp;</div><div>executes a raw evm action???</div>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="kYRyo_h60_AEEvOUtYnw-40" vertex="1" connectable="0">
<mxGeometry x="-0.0322" y="1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="kYRyo_h60_AEEvOUtYnw-42" value="" style="endArrow=classic;startArrow=classic;html=1;rounded=0;entryX=-0.003;entryY=0.477;entryDx=0;entryDy=0;entryPerimeter=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;fillColor=#dae8fc;strokeColor=#6c8ebf;gradientColor=none;strokeWidth=4;" parent="1" source="kYRyo_h60_AEEvOUtYnw-30" target="kYRyo_h60_AEEvOUtYnw-34" edge="1">
<mxGeometry width="100" height="100" relative="1" as="geometry">
<mxPoint x="190" y="680" as="sourcePoint" />
<mxPoint x="290" y="580" as="targetPoint" />
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>