/
gasCost.tex
173 lines (138 loc) · 4.5 KB
/
gasCost.tex
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
162
163
164
165
166
167
168
169
170
171
172
173
% Preamble: \
\documentclass{standalone}
\usepackage{pgfplots}
\usepackage{tikz}
\pgfplotsset{width=7cm,compat=1.16}
\usepackage{color}
\definecolor{mypink1}{rgb}{0.858, 0.188, 0.478}
\definecolor{blacktext}{HTML}{000000}
\definecolor{mainnet}{HTML}{29B6AF}
\definecolor{kovan}{HTML}{7057ff}
\definecolor{rinkeby}{HTML}{F6C343}
\definecolor{ropsten}{HTML}{FF4A8D}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
x tick label style={
/pgf/number format/1000 sep=},
%xlabel=Smart Contracts,
ylabel=Gas Limits (Units),
%enlargelimits=0.15,
%legend style={cells={align=left}}
legend style={at={(0.4,-0.30)},
anchor=north,legend columns=3,cells={align=left}},
ybar,
bar width=7pt,
ytick={0,1.25e6,2.5e6,3.75e6,5e6, 6.25e6,7.5e6, 8.75e6,10e6},
ymin = 0,
ymax = 9.75e6,
xticklabels={ERC20,ERC721,StoreFront,Registry,Deployer},xtick={1930,1940,1950,1960,1970},
x tick label style={rotate=35,anchor=east}]
]
\addplot coordinates {
(1930,28e5) (1940,26e5)
(1950,49e5) (1960,59e5) (1970,0)
};
\addplot coordinates {
(1930,26e5) (1940,24e5)
(1950,41e5) (1960,46e5) (1970,0)
};
\addplot coordinates {
(1930,28e5) (1940,26e5)
(1950,25e5) (1960,36e5) (1970,28e5)
};
\addplot [dashed, mainnet,line legend,
sharp plot,update limits=false,
] coordinates { (1910,80e5) (1950,80e5) }
node [above] at (1950,80e5) {\textcolor{mainnet}{Mainnet} \textcolor{blacktext}{and} \textcolor{kovan}{Kovan}};
\addplot [dashed,kovan,line legend,
sharp plot,update limits=false,
] coordinates { (1950,80e5) (1980,80e5) };
\addplot [dashed, ropsten,line legend,
sharp plot,update limits=false,
] coordinates { (1920,47e5) (1990,47e5) }
node [above,align=left] at (1940,47e5) {\textcolor{ropsten}{Ropsten} \\ \textcolor{ropsten}{(July 27)}};
\addplot [dashed, ropsten,line legend,
sharp plot,update limits=false,
] coordinates { (1910,94.8e5) (1990,94.8e5) }
node [below] at (1950,100.5e5) {\textcolor{ropsten}{Ropsten} \textcolor{ropsten} (July 29)};
\addplot [ dashed, rinkeby,line legend,
sharp plot,update limits=false,
] coordinates { (1910,76e5) (1990,76e5) }
node [below] at (1960,76e5) {\textcolor{rinkeby}{Rinkeby}};
\legend{Original, Finding \\ Efficiencies, Using \\ Deployer}
\end{axis}
\end{tikzpicture}
\end{document}
% Mainnet 8 mil 8000029
% Kovan 8 mil
% Rinkeby 7.6 mil
% Ropsten 4.7 mil July 27
% Renting out processing power to increase limits
% Ropsten 9.48 mil July 29
% Do unoptimizated
StoreFront Deployment costs
Gas Price is 20000000000 wei
gas estimation = 4924865 units
gas cost estimation = 98497300000000000 wei
gas cost estimation = 0.0984973 ether
HarvestSFRegistry Deployment cost.
Gas Price is 20000000000 wei
gas estimation = 5885566 units
gas cost estimation = 117711320000000000 wei
gas cost estimation = 0.11771132 ether
RewardToken Deployment cost.
Gas Price is 20000000000 wei
gas estimation = 2583571 units
gas cost estimation = 51671420000000000 wei
gas cost estimation = 0.05167142 ether
HarvestToken Deployment cost.
Gas Price is 20000000000 wei
gas estimation = 2780371 units
gas cost estimation = 55607420000000000 wei
gas cost estimation = 0.05560742 ether
% Opt by removing functionality
StoreFront Deployment costs
Gas Price is 20000000000 wei
gas estimation = 4154023 units
gas cost estimation = 98497300000000000 wei
gas cost estimation = 0.0984973 ether
HarvestSFRegistry Deployment cost.
Gas Price is 20000000000 wei
gas estimation = 4602312 units
gas cost estimation = 117711320000000000 wei
gas cost estimation = 0.11771132 ether
RewardToken Deployment cost.
Gas Price is 20000000000 wei
gas estimation = 2580571 units
gas cost estimation = 51671420000000000 wei
gas cost estimation = 0.05167142 ether
HarvestToken Deployment cost.
Gas Price is 20000000000 wei
gas estimation = 2750371 units
gas cost estimation = 55607420000000000 wei
gas cost estimation = 0.05560742 ether
% Optimizated by deployer
StoreFront Deployment costs
Gas Price is 20000000000 wei
gas estimation = 2154023 units
gas cost estimation = 98497300000000000 wei
gas cost estimation = 0.0984973 ether
HarvestSFRegistry Deployment cost.
Gas Price is 20000000000 wei
gas estimation = 2902312 units
gas cost estimation = 117711320000000000 wei
gas cost estimation = 0.11771132 ether
RewardToken Deployment cost.
Gas Price is 20000000000 wei
gas estimation = 2583571 units
gas cost estimation = 51671420000000000 wei
gas cost estimation = 0.05167142 ether
HarvestToken Deployment cost.
Gas Price is 20000000000 wei
gas estimation = 2750371 units
gas cost estimation = 55607420000000000 wei
gas cost estimation = 0.05560742 ether
Deployer 721 Cost
2825921 gas uints
% Using deployer