-
Notifications
You must be signed in to change notification settings - Fork 0
/
Uniswap-V2-架构图.drawio
95 lines (95 loc) · 7.79 KB
/
Uniswap-V2-架构图.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
<mxfile host="app.diagrams.net" modified="2023-08-25T09:10:02.308Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" etag="8PpuHio3aJKzEsMwdtMJ" version="21.6.9" type="github">
<diagram name="第 1 页" id="koWzIlelXBfN0tAOrRkD">
<mxGraphModel dx="1006" dy="564" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="kfU6DUed51PpgYBPSKgS-2" value="uniswap-interface" style="swimlane;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="440" y="200" width="200" height="80" as="geometry" />
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-1" value="<font style="font-size: 10px;">前端项目:包含<br style="font-size: 10px;">https://app.uniswap.org/所有页面</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;" vertex="1" parent="kfU6DUed51PpgYBPSKgS-2">
<mxGeometry x="-5" y="33" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="kfU6DUed51PpgYBPSKgS-4" value="uniswap-sdk-core" style="swimlane;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="600" y="320" width="200" height="80" as="geometry">
<mxRectangle x="600" y="320" width="140" height="30" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="kfU6DUed51PpgYBPSKgS-5" value="uniswap-v2-sdk" style="swimlane;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="280" y="320" width="200" height="80" as="geometry" />
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-12" value="SDK:封装method和param成库<br>供interface引用" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="kfU6DUed51PpgYBPSKgS-5">
<mxGeometry x="5" y="30" width="190" height="40" as="geometry" />
</mxCell>
<mxCell id="kfU6DUed51PpgYBPSKgS-7" value="uniswap-v2-periphery" style="swimlane;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="440" y="460" width="200" height="80" as="geometry" />
</mxCell>
<mxCell id="kfU6DUed51PpgYBPSKgS-8" value="uniswap-v2-core" style="swimlane;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="440" y="590" width="200" height="80" as="geometry" />
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-5" value="包含核心合约:pairs 、factory" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="kfU6DUed51PpgYBPSKgS-8">
<mxGeometry x="10" y="30" width="180" height="30" as="geometry" />
</mxCell>
<mxCell id="kfU6DUed51PpgYBPSKgS-9" value="uniswap-lib" style="swimlane;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="300" y="460" width="100" height="210" as="geometry" />
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-4" value="工具类" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="kfU6DUed51PpgYBPSKgS-9">
<mxGeometry x="20" y="58" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="kfU6DUed51PpgYBPSKgS-10" value="uniswap-info" style="swimlane;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="840" y="200" width="200" height="83" as="geometry" />
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-3" value="Uniswap Analytics:<br>统计分析项目<br>对应 info.uniswap.org" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="kfU6DUed51PpgYBPSKgS-10">
<mxGeometry x="20" y="23" width="140" height="60" as="geometry" />
</mxCell>
<mxCell id="kfU6DUed51PpgYBPSKgS-11" value="uniswap-v2-subgraph" style="swimlane;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="840" y="320" width="200" height="80" as="geometry" />
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-6" value="subgraph项目<br>为uniswap-info提供数据" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="kfU6DUed51PpgYBPSKgS-11">
<mxGeometry x="15" y="25" width="150" height="40" as="geometry" />
</mxCell>
<mxCell id="kfU6DUed51PpgYBPSKgS-13" value="" style="shape=link;html=1;rounded=0;" parent="1" edge="1">
<mxGeometry width="100" relative="1" as="geometry">
<mxPoint x="260" y="420" as="sourcePoint" />
<mxPoint x="1090" y="420" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="CsVXj2xBOCSqVsRRStVS-3">
<mxGeometry relative="1" as="geometry">
<mxPoint x="930" y="320" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-8" value="包含外围合约:Router、" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="480" y="488" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-9" value="链上" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="180" y="500" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-10" value="链下" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="180" y="320" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-11" value="SDK:封装常用类<br>供interface引用" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="640" y="353" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-13" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;entryX=0.424;entryY=-0.077;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" target="kfU6DUed51PpgYBPSKgS-4">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="650" y="283" as="sourcePoint" />
<mxPoint x="700" y="233" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-14" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="420" y="283" as="sourcePoint" />
<mxPoint x="380" y="310" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="CsVXj2xBOCSqVsRRStVS-15" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="539.64" y="545" as="sourcePoint" />
<mxPoint x="539.64" y="585" as="targetPoint" />
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>