-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes_on_ropsten_deployment.txt
341 lines (314 loc) · 14 KB
/
notes_on_ropsten_deployment.txt
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
########################################################################################################################
# Deployment on the ropsten network on 03-Jun-2020
###
truffle(ropsten)> (await web3.eth.getAccounts())[0]
'0x81b9EB22f1a96D30d7Afd1eC9975546008e3008D'
truffle(ropsten)> let defaultOpts = {from: '0x81b9EB22f1a96D30d7Afd1eC9975546008e3008D', gas: 5000000, gasPrice: 10000000 }
truffle(ropsten)> let ledgerImpl = await LaborLedgerImpl.new(defaultOpts)
truffle(ropsten)> ledgerImpl.address
'0x09a7CE766bA473Ac61ab60c800956ab75c45A3D5'
truffle(ropsten)> ledgerImpl.transactionHash
'0xa4f336de1e96356ad11129356c3cb8fefa2036157c6bd6f34ab3283f17d1a6df'
########################################################################################################################
# Deployment on the ropsten network on 02-Jun-2020
###
audacity-dao/ethereum$ source .env.sh
audacity-dao/ethereum$ truffle console --network ropsten
truffle(ropsten)> (await web3.eth.getAccounts())[0]
'0x81b9EB22f1a96D30d7Afd1eC9975546008e3008D'
truffle(ropsten)> let defaultOpts = {from: '0x81b9EB22f1a96D30d7Afd1eC9975546008e3008D', gas: 5000000, gasPrice: 10000000 }
truffle(ropsten)> let ledgerImpl = await LaborLedgerImpl.new(defaultOpts)
truffle(ropsten)> ledgerImpl.address
'0xA972dCCfCb9EA75E7a2262820fB8fbFFf1a51F2e'
truffle(ropsten)> ledgerImpl.transactionHash
'0xbd2f85654502b40fb6308ffcc14a991630a6b8053e5754c702ab67eda1c6177e'
########################################################################################################################
# Deployment on the ropsten network on 22-Apr-2020
###
audacity-dao/ethereum$ source .env.sh
audacity-dao/ethereum$ truffle console --network ropsten
truffle(ropsten)> (await web3.eth.getAccounts())[0]
'0x81b9EB22f1a96D30d7Afd1eC9975546008e3008D'
truffle(ropsten)> let defaultOpts = {from: '0x81b9EB22f1a96D30d7Afd1eC9975546008e3008D', gas: 5000000, gasPrice: 20000000000 }
truffle(ropsten)> let proxyAdmin = await OzProxyAdmin.new(defaultOpts)
truffle(ropsten)> proxyAdmin.address
'0xf1374e8Cb3B93a355f4564e85F5CEeB390e409C4'
truffle(ropsten)> proxyAdmin.transactionHash
'0xf7d7b2c660c733110bfcde62da8d3aa0686480cb49b9f9ed8ef989c10104f541'
truffle(ropsten)> await proxyAdmin.owner()
'0x81b9EB22f1a96D30d7Afd1eC9975546008e3008D'
truffle(ropsten)> let collabImpl = await CollaborationImpl.new(defaultOpts)
truffle(ropsten)> collabImpl.address
'0xE58826C55efb0c494361b3EF82ee97873A5325b4'
truffle(ropsten)> collabImpl.transactionHash
'0x673fab7056bf1b44dafccd35c2b3b9c24a7bd1a48722a8a7aa996c5b410c90f5'
truffle(ropsten)> ledgerImpl.address
'0xC87753BE484c52b6396feB3a422aA616E1142c70'
truffle(ropsten)> ledgerImpl.transactionHash
'0x125b784a07361d0e522634c5705b6c3e64952387fa952eca2e7ea1872c5fd2eb'
########################################################################################################################
# Deployment on the repsten network on 28-Dec-2019
###
audacity-dao/ethereum$ source .env.sh
audacity-dao/ethereum$ truffle console --network ropsten
truffle(ropsten)> await web3.eth.getAccounts()
[
'0x81b9EB22f1a96D30d7Afd1eC9975546008e3008D',
...
]
truffle(ropsten)> compile
Compiling your contracts...
===========================
> Compiling ./contracts/LaborLedgerCaller.sol
> Compiling ./contracts/lib/Proxy.sol
> Compiling ./contracts/lib/UpgradableProxy.sol
> Artifacts written to /home/konstantinovv/source/audacity-dao/ethereum/build/contracts
> Compiled successfully using:
- solc: 0.5.13+commit.5b0b510c.Emscripten.clang
truffle(ropsten)> collaboration = {address: '0xDBd81be39794969714774260C90481A449783D34'}
truffle(ropsten)> const implementation = await LaborLedgerImplementation.new()
truffle(ropsten)> implementation.address
'0x04b30B5790D1E714Ff33d76B42bCdF8aEd9b9520'
truffle(ropsten)> implementation.transactionHash
'0x802d72eb42f40d827e20acde7b1557b3bf81b8fba79f80abb61a9eb63eff7fe1'
truffle(ropsten)> // test LaborRegister instance
truffle(ropsten)> const projectLeadAddress = '0x7d30E251bb9B003ca231A4b4f7BD7fB300ba71E0'
truffle(ropsten)> const c1 = await LaborLedgerCaller.new(implementation.address, collaboration.address, projectLeadAddress, 0, 0, 0, [0,0,0,0])
truffle(ropsten)> c1.address
'0x1683BA72B4d8dce4416DdCE69521CFA13d4A9238'
truffle(ropsten)> c1.transactionHash
'0x00b30f629b9adc14af1052be347b8a234a971ea04914d4a8194d43112ba880da'
truffle(ropsten)> const labReg = new web3.eth.Contract(implementation.abi, c1.address)
truffle(ropsten)> await labReg.methods.birthBlock().call()
'7044998'
truffle(ropsten)> await labReg.getPastEvents({fromBlock: '7044998', toBlock:'latest'})
[
{
address: '0x1683BA72B4d8dce4416DdCE69521CFA13d4A9238',
blockHash: '0x719ae5df5ccd36054fc4eec192e00660a5381856cc46b8af2e7a9bbe7d7d26aa',
blockNumber: 7044998,
logIndex: 18,
removed: false,
transactionHash: '0x00b30f629b9adc14af1052be347b8a234a971ea04914d4a8194d43112ba880da',
transactionIndex: 7,
id: 'log_fc0828f3',
returnValues: Result {},
event: undefined,
signature: null,
raw: { data: '0x', topics: [Array] }
},
{
address: '0x1683BA72B4d8dce4416DdCE69521CFA13d4A9238',
blockHash: '0x719ae5df5ccd36054fc4eec192e00660a5381856cc46b8af2e7a9bbe7d7d26aa',
blockNumber: 7044998,
logIndex: 20,
removed: false,
transactionHash: '0x00b30f629b9adc14af1052be347b8a234a971ea04914d4a8194d43112ba880da',
transactionIndex: 7,
id: 'log_97077379',
returnValues: Result {
'0': '0x7d30E251bb9B003ca231A4b4f7BD7fB300ba71E0',
account: '0x7d30E251bb9B003ca231A4b4f7BD7fB300ba71E0'
},
event: 'ProjectLeadAdded',
signature: '0x1bccbd93fc5df6b4ce19a0899fdd845439aa809d36aa308c3cbe1cd0f2fa1d8f',
raw: { data: '0x', topics: [Array] }
},
{
address: '0x1683BA72B4d8dce4416DdCE69521CFA13d4A9238',
blockHash: '0x719ae5df5ccd36054fc4eec192e00660a5381856cc46b8af2e7a9bbe7d7d26aa',
blockNumber: 7044998,
logIndex: 21,
removed: false,
transactionHash: '0x00b30f629b9adc14af1052be347b8a234a971ea04914d4a8194d43112ba880da',
transactionIndex: 7,
id: 'log_162e7f22',
returnValues: Result {
'0': '0x7d30E251bb9B003ca231A4b4f7BD7fB300ba71E0',
account: '0x7d30E251bb9B003ca231A4b4f7BD7fB300ba71E0'
},
event: 'ProjectQuorumAdded',
signature: '0x9e875cf4c0cc996851b56b5b5c6e70e5c1fb3c724d3290c99450c722641c60dc',
raw: { data: '0x', topics: [Array] }
},
{
address: '0x1683BA72B4d8dce4416DdCE69521CFA13d4A9238',
blockHash: '0x719ae5df5ccd36054fc4eec192e00660a5381856cc46b8af2e7a9bbe7d7d26aa',
blockNumber: 7044998,
logIndex: 22,
removed: false,
transactionHash: '0x00b30f629b9adc14af1052be347b8a234a971ea04914d4a8194d43112ba880da',
transactionIndex: 7,
id: 'log_a2aac28e',
returnValues: Result {
'0': '100000',
'1': '900000',
'2': '0',
newLaborEquity: '100000',
newManagerEquity: '900000',
newInvestorEquity: '0'
},
event: 'EquityModified',
signature: '0x2771dae93c2d46e7c297bb80fd6ab859a06a6b09912c1aca067adfde4a96b36a',
raw: {
data: '0x00000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000dbba00000000000000000000000000000000000000000000000000000000000000000',
topics: [Array]
}
}
]
truffle(ropsten)> web3.eth.getStorageAt(labReg.options.address,0)
// implementor
'0x00000000000000000000000081b9eb22f1a96d30d7afd1ec9975546008e3008d'
truffle(ropsten)> web3.eth.getStorageAt(labReg.options.address,1)
// _implementation
'0x00000000000000000000000004b30b5790d1e714ff33d76b42bcdf8aed9b9520'
truffle(ropsten)> web3.eth.getStorageAt(labReg.options.address,2)
// collaboration
'0x000000000000000000000000dbd81be39794969714774260c90481a449783d34'
truffle(ropsten)> web3.eth.getStorageAt(labReg.options.address,3)
// reserved
'0x0000000000000000000000000000000000000000000000000000000000000000'
truffle(ropsten)> web3.eth.getStorageAt(labReg.options.address,4)
// investorEquity (0), managerEquity (0x000dbba0), laborEquity 0x000186a0,
// _unused, totalWeightedTime, totalTime,
// _memberWeights 0x40302000, startWeek 0x0a2f, birthBlock 006b7f86
'0x00000000000dbba0000186a000000000000000000000040302000a2f006b7f86'
truffle(ropsten)> web3.eth.getStorageAt(labReg.options.address,5)
// mapping(address => Member) private _members
'0x0000000000000000000000000000000000000000000000000000000000000000'
########################################################################################################################
# Deployment on the repsten network on 22-Dec-2019
###
audacity-dao/ethereum$ source .env.sh
audacity-dao/ethereum$ truffle console --network ropsten
truffle(ropsten)> await web3.eth.getAccounts()
[
'0x81b9EB22f1a96D30d7Afd1eC9975546008e3008D',
'0x7d30E251bb9B003ca231A4b4f7BD7fB300ba71E0',
...
truffle(ropsten)> compile
Compiling your contracts...
===========================
> Compiling ./contracts/LaborLedgerCaller.sol
> Compiling ./contracts/lib/Proxy.sol
> Compiling ./contracts/lib/UpgradableProxy.sol
> Artifacts written to /home/konstantinovv/source/audacity-dao/ethereum/build/contracts
> Compiled successfully using:
- solc: 0.5.13+commit.5b0b510c.Emscripten.clang
# Collaboration deployment
# time: Dec-22-2019 04:54:56 PM +UTC
# txHash: 0x0d3682b5f28d9d1707c865dc606d7f39d6fbffa1dbdbd8c505dd578404192226
truffle(ropsten)> const collaboration = await Collaboration.new()
truffle(ropsten)> collaboration.address
'0xDBd81be39794969714774260C90481A449783D34'
# LaborLedgerImplementation deployment
# time: Dec-22-2019 04:55:52 PM +UTC
# txHash: 0x13795a35ad0338121cc9df6464aa5978c2a65af51841a728f812cb3219b8c73a
truffle(ropsten)> const implementation = await LaborLedgerImplementation.new()
truffle(ropsten)> implementation.address
'0xc843FEE2978e394B6D321CE44d072aFEDa4e977C'
# test LaborRegister instance
# time: Dec-22-2019 04:56:28 PM +UTC
# txHash: 0xd26cb2494dfad39c4634da199860d10e20c1ba77d45dad2f179a15b88625a0ce
truffle(ropsten)> const projectLeadAddress = '0x7d30E251bb9B003ca231A4b4f7BD7fB300ba71E0'
truffle(ropsten)> const c1 = await LaborLedgerCaller.new(implementation.address, collaboration.address, projectLeadAddress, 0, 0, 0, [0,0,0,0])
truffle(ropsten)> c1.address
'0xD7d6A97ddBb44629907D086d31f21404fC5a13CD'
truffle(ropsten)> const labReg = new web3.eth.Contract(implementation.abi, c1.address)
truffle(ropsten)> await labReg.methods.birthBlock().call()
'7013662'
truffle(ropsten)> await labReg.getPastEvents({fromBlock: '7013662', toBlock:'latest'})
[
{
address: '0xE3610e07730E1225b18af10d7Bc82b5d9480E383',
blockHash: '0x63280f1b50d194bb1a5146a6d0adb7509bef94c5f90d8711a2053db44a6f64d8',
blockNumber: 7013662,
logIndex: 0,
removed: false,
transactionHash: '0xd26cb2494dfad39c4634da199860d10e20c1ba77d45dad2f179a15b88625a0ce',
transactionIndex: 1,
id: 'log_fcaf4416',
returnValues: Result {},
event: undefined,
signature: null,
raw: { data: '0x', topics: [Array] }
},
{
address: '0xE3610e07730E1225b18af10d7Bc82b5d9480E383',
blockHash: '0x63280f1b50d194bb1a5146a6d0adb7509bef94c5f90d8711a2053db44a6f64d8',
blockNumber: 7013662,
logIndex: 2,
removed: false,
transactionHash: '0xd26cb2494dfad39c4634da199860d10e20c1ba77d45dad2f179a15b88625a0ce',
transactionIndex: 1,
id: 'log_ed9be2fb',
returnValues: Result {
'0': '0x7d30E251bb9B003ca231A4b4f7BD7fB300ba71E0',
account: '0x7d30E251bb9B003ca231A4b4f7BD7fB300ba71E0'
},
event: 'ProjectLeadAdded',
signature: '0x1bccbd93fc5df6b4ce19a0899fdd845439aa809d36aa308c3cbe1cd0f2fa1d8f',
raw: { data: '0x', topics: [Array] }
},
{
address: '0xE3610e07730E1225b18af10d7Bc82b5d9480E383',
blockHash: '0x63280f1b50d194bb1a5146a6d0adb7509bef94c5f90d8711a2053db44a6f64d8',
blockNumber: 7013662,
logIndex: 3,
removed: false,
transactionHash: '0xd26cb2494dfad39c4634da199860d10e20c1ba77d45dad2f179a15b88625a0ce',
transactionIndex: 1,
id: 'log_8f9eddde',
returnValues: Result {
'0': '0x7d30E251bb9B003ca231A4b4f7BD7fB300ba71E0',
account: '0x7d30E251bb9B003ca231A4b4f7BD7fB300ba71E0'
},
event: 'ProjectQuorumAdded',
signature: '0x9e875cf4c0cc996851b56b5b5c6e70e5c1fb3c724d3290c99450c722641c60dc',
raw: { data: '0x', topics: [Array] }
},
{
address: '0xE3610e07730E1225b18af10d7Bc82b5d9480E383',
blockHash: '0x63280f1b50d194bb1a5146a6d0adb7509bef94c5f90d8711a2053db44a6f64d8',
blockNumber: 7013662,
logIndex: 4,
removed: false,
transactionHash: '0xd26cb2494dfad39c4634da199860d10e20c1ba77d45dad2f179a15b88625a0ce',
transactionIndex: 1,
id: 'log_3ccdf19b',
returnValues: Result {
'0': '100000',
'1': '900000',
'2': '0',
newLaborEquity: '100000',
newManagerEquity: '900000',
newInvestorEquity: '0'
},
event: 'EquityModified',
signature: '0x2771dae93c2d46e7c297bb80fd6ab859a06a6b09912c1aca067adfde4a96b36a',
raw: {
data: '0x00000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000dbba00000000000000000000000000000000000000000000000000000000000000000',
topics: [Array]
}
}
]
truffle(ropsten)> web3.eth.getStorageAt(labReg.options.address,0)
// implementor
'0x00000000000000000000000081b9eb22f1a96d30d7afd1ec9975546008e3008d'
truffle(ropsten)> web3.eth.getStorageAt(labReg.options.address,1)
// _implementation
'0x000000000000000000000000c843fee2978e394b6d321ce44d072afeda4e977c'
truffle(ropsten)> web3.eth.getStorageAt(labReg.options.address,2)
// collaboration
'0x000000000000000000000000ca27a4611af5c7e2aa939630c0d7ba43bc8c24c8'
truffle(ropsten)> web3.eth.getStorageAt(labReg.options.address,3)
// reserved
'0x0000000000000000000000000000000000000000000000000000000000000000'
truffle(ropsten)> web3.eth.getStorageAt(labReg.options.address,4)
// investorEquity (0), managerEquity (0x000dbba0), laborEquity 0x000186a0,
// _unused, totalWeightedTime, totalTime,
// _memberWeights 0x40302000, startWeek 0x0a2e, birthBlock 0x006b051e
'0x00000000000dbba0000186a000000000000000000000040302000a2e006b051e'
ruffle(ropsten)> web3.eth.getStorageAt(labReg.options.address,5)
// mapping(address => Member) private _members
'0x0000000000000000000000000000000000000000000000000000000000000000'