tx · GwzisNzvovBpWiYkmGRb9B1f4s6y5Z4DscLeMXZTa3xj 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2: -0.01500000 Waves 2019.10.25 14:52 [735616] smart account 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2 > SELF 0.00000000 Waves
{ "type": 13, "id": "GwzisNzvovBpWiYkmGRb9B1f4s6y5Z4DscLeMXZTa3xj", "fee": 1500000, "feeAssetId": null, "timestamp": 1572004378475, "version": 1, "sender": "3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2", "senderPublicKey": "8y2Uc9uYf5gRD6Dzm1aC73zYe3LZvtVDUVAnAhNdN2mg", "proofs": [ "3XM5KbQ6xUXRQHUkXZDh7icKHGUJcUc62pZpSF11sM31j7HYV3zcNYZqEUrfVjQQXns7M51g1MtUpS3PnDu7k87W" ], "script": "base64:AAIDAAAAAAAAAD8IARIDCgEIEgMKAQgSBQoDAQEIEgQKAggBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgAAAAxAAAAAANkYXkAAAAAAAAABaAAAAAABVdBVkVTBQAAAAR1bml0AAAAAAR3QlRDAQAAACBs+mr/xe2qjAt/tSqT0qIML4KC23R6BIxT+/0TH3Og/wAAAAAEd0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABHdVU0QBAAAAIN0cvQHwz3UFMHgHsqi2OJjRRd1cH7ozWuNAb/pmWXD9AAAAAAlhdWN0VG9rZW4BAAAAAQAAAAAACXN0YXRlT3BlbgIAAAAGT3BlbmVkAAAAAA5zdGF0ZVN1Z2dlc3RlZAIAAAAJU3VnZ2VzdGVkAAAAAAtzdGF0ZUNhbmNlbAIAAAAIQ2FuY2VsZWQAAAAAD3N0YXRlSW5Qcm9ncmVzcwIAAAAKSW5Qcm9ncmVzcwAAAAARc3RhdGVXYWl0NENvbmZpcm0CAAAAE1dhaXRGb3JDb25maXJtYXRpb24AAAA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VzZXJ2ZWQEAAAAD3Jlc2VydmVkQmFsYW5jZQQAAAAHJG1hdGNoMQUAAAAUdmFsdWVSZXNlcnZlZEJhbGFuY2UDCQAAAQAAAAIFAAAAByRtYXRjaDECAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMQUAAAABYQAAAAAAAAAAAAQAAAAQYXZhaWxhYmxlQmFsYW5jZQkAAGUAAAACCQAD6wAAAAIFAAAABHRoaXMIBQAAAAN0dHgAAAAHYXNzZXRJZAUAAAAPcmVzZXJ2ZWRCYWxhbmNlCQAAZwAAAAIFAAAAEGF2YWlsYWJsZUJhbGFuY2UIBQAAAAN0dHgAAAAGYW1vdW50AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwBgcHvUufLg==", "chainId": 84, "height": 735616, "spentComplexity": 0 } View: original | compacted Prev: 2WqmjJ82SYj4UuVv2SVpWHxdqBRpZJYnLdF3We2WaWpB Next: 3ekyQ6357xiFkeVApnMBCFWbwgAZZDsSkEKtAD3EohZG Diff:
Old | New | Differences | |
---|---|---|---|
29 | 29 | ||
30 | 30 | let n = "DisputeResolved" | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "CL" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "FL" | |
35 | 35 | ||
36 | - | let q = " | |
36 | + | let q = "FneCJqM5BP2eAuyteMiuEEHYALrE4axhEfcpHVGbdr5s" | |
37 | 37 | ||
38 | - | let r = " | |
38 | + | let r = "6QAMdssb1GJjpQVQQcnx8fKU8WhtcF9ZsQhifdThAEK8" | |
39 | 39 | ||
40 | - | let s = " | |
40 | + | let s = "2ituwW7DSRsLP3Vcbnpr98QUQMGFRWKmyYPFqsUKRDoP" | |
41 | 41 | ||
42 | - | let t = " | |
42 | + | let t = "ANsPQocEESyLb3yQqk2pwCdoK7PJQxLoZVpYvsm3SxUG" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "13VixwQin1MzZCyY69NSWMSBNEV27Rzc159o7uZXR9VS" | |
45 | 45 | ||
46 | - | let v = "FL" | |
47 | - | ||
48 | - | let w = "FneCJqM5BP2eAuyteMiuEEHYALrE4axhEfcpHVGbdr5s" | |
49 | - | ||
50 | - | let x = "6QAMdssb1GJjpQVQQcnx8fKU8WhtcF9ZsQhifdThAEK8" | |
51 | - | ||
52 | - | let y = "2ituwW7DSRsLP3Vcbnpr98QUQMGFRWKmyYPFqsUKRDoP" | |
53 | - | ||
54 | - | let z = "ANsPQocEESyLb3yQqk2pwCdoK7PJQxLoZVpYvsm3SxUG" | |
55 | - | ||
56 | - | let A = "13VixwQin1MzZCyY69NSWMSBNEV27Rzc159o7uZXR9VS" | |
57 | - | ||
58 | - | func B (C) = { | |
59 | - | let D = getInteger(this, C) | |
60 | - | let E = D | |
61 | - | if ($isInstanceOf(E, "Int")) | |
46 | + | func v (w) = { | |
47 | + | let x = getInteger(this, w) | |
48 | + | let y = x | |
49 | + | if ($isInstanceOf(y, "Int")) | |
62 | 50 | then { | |
63 | - | let | |
64 | - | | |
51 | + | let z = y | |
52 | + | z | |
65 | 53 | } | |
66 | 54 | else 0 | |
67 | 55 | } | |
68 | 56 | ||
69 | 57 | ||
70 | - | func G (H) = if (if (if (if (if (if ((H == o)) | |
71 | - | then true | |
72 | - | else (H == p)) | |
73 | - | then true | |
74 | - | else (H == q)) | |
75 | - | then true | |
76 | - | else (H == r)) | |
77 | - | then true | |
78 | - | else (H == s)) | |
79 | - | then true | |
80 | - | else (H == t)) | |
81 | - | then H | |
82 | - | else throw("Category is invalid") | |
83 | - | ||
84 | - | ||
85 | - | func I (J) = if (!(isDefined(J))) | |
58 | + | func A (B) = if (!(isDefined(B))) | |
86 | 59 | then "WAVES" | |
87 | - | else if (( | |
60 | + | else if ((B == c)) | |
88 | 61 | then "BTC" | |
89 | - | else if (( | |
62 | + | else if ((B == d)) | |
90 | 63 | then "EUR" | |
91 | - | else if (( | |
64 | + | else if ((B == e)) | |
92 | 65 | then "USD" | |
93 | - | else if (( | |
66 | + | else if ((B == f)) | |
94 | 67 | then "AUCT" | |
95 | 68 | else throw("AssetId is incorrect") | |
96 | 69 | ||
97 | 70 | ||
98 | - | func | |
71 | + | func C (D) = if ((D == "WAVES")) | |
99 | 72 | then b | |
100 | - | else if (( | |
73 | + | else if ((D == "BTC")) | |
101 | 74 | then c | |
102 | - | else if (( | |
75 | + | else if ((D == "EUR")) | |
103 | 76 | then d | |
104 | - | else if (( | |
77 | + | else if ((D == "USD")) | |
105 | 78 | then e | |
106 | - | else if (( | |
79 | + | else if ((D == "AUCT")) | |
107 | 80 | then f | |
108 | 81 | else throw("Incorrect Asset Id") | |
109 | 82 | ||
110 | 83 | ||
111 | - | func | |
84 | + | func E (F,G,H) = ((F - G) > H) | |
112 | 85 | ||
113 | 86 | ||
114 | - | func | |
87 | + | func I (J,K) = if ((J > K)) | |
115 | 88 | then throw("Bid amount must be lower or equal than auctionPrice") | |
116 | - | else | |
89 | + | else J | |
117 | 90 | ||
118 | 91 | ||
119 | - | func | |
120 | - | let | |
121 | - | let | |
122 | - | let | |
123 | - | if ($isInstanceOf( | |
92 | + | func L (M,K) = { | |
93 | + | let N = getInteger(this, (M + "_Freezed")) | |
94 | + | let O = { | |
95 | + | let y = N | |
96 | + | if ($isInstanceOf(y, "Int")) | |
124 | 97 | then { | |
125 | - | let | |
126 | - | | |
98 | + | let z = y | |
99 | + | z | |
127 | 100 | } | |
128 | 101 | else 0 | |
129 | 102 | } | |
130 | - | ( | |
103 | + | (O + K) | |
131 | 104 | } | |
132 | 105 | ||
133 | 106 | ||
134 | - | func | |
135 | - | let | |
136 | - | let | |
137 | - | let | |
138 | - | if ($isInstanceOf( | |
107 | + | func P (M,K) = { | |
108 | + | let N = getInteger(this, (M + "_Freezed")) | |
109 | + | let O = { | |
110 | + | let y = N | |
111 | + | if ($isInstanceOf(y, "Int")) | |
139 | 112 | then { | |
140 | - | let | |
141 | - | | |
113 | + | let z = y | |
114 | + | z | |
142 | 115 | } | |
143 | 116 | else 0 | |
144 | 117 | } | |
145 | - | let | |
146 | - | if (( | |
147 | - | then | |
118 | + | let z = (O - K) | |
119 | + | if ((z >= 0)) | |
120 | + | then z | |
148 | 121 | else throw("Freezed amount couldn't be less than 0") | |
149 | 122 | } | |
150 | 123 | ||
151 | 124 | ||
152 | - | func | |
153 | - | let | |
154 | - | let | |
155 | - | if ($isInstanceOf( | |
125 | + | func Q (R) = { | |
126 | + | let S = getString(this, (R + "_Freelancer")) | |
127 | + | let y = S | |
128 | + | if ($isInstanceOf(y, "String")) | |
156 | 129 | then { | |
157 | - | let | |
158 | - | | |
130 | + | let z = y | |
131 | + | R | |
159 | 132 | } | |
160 | 133 | else throw("Only registered users can make bets") | |
161 | 134 | } | |
162 | 135 | ||
163 | 136 | ||
164 | - | func | |
165 | - | let | |
166 | - | let | |
167 | - | if ($isInstanceOf( | |
137 | + | func T (R) = { | |
138 | + | let S = getString(this, (R + "_Freelancer")) | |
139 | + | let y = S | |
140 | + | if ($isInstanceOf(y, "String")) | |
168 | 141 | then { | |
169 | - | let | |
170 | - | | |
142 | + | let z = y | |
143 | + | R | |
171 | 144 | } | |
172 | 145 | else throw("Only registered users can make bets") | |
173 | 146 | } | |
174 | 147 | ||
175 | 148 | ||
176 | - | func | |
177 | - | then | |
149 | + | func U (V) = if ((V > 0)) | |
150 | + | then V | |
178 | 151 | else throw("Amount must be higher then 0") | |
179 | 152 | ||
180 | 153 | ||
181 | - | func | |
182 | - | let | |
183 | - | let | |
184 | - | if ($isInstanceOf( | |
154 | + | func W (X) = { | |
155 | + | let Y = getString(this, (X + "_State")) | |
156 | + | let y = Y | |
157 | + | if ($isInstanceOf(y, "String")) | |
185 | 158 | then { | |
186 | - | let | |
187 | - | | |
159 | + | let z = y | |
160 | + | z | |
188 | 161 | } | |
189 | 162 | else throw("Auction State was not found") | |
190 | 163 | } | |
191 | 164 | ||
192 | 165 | ||
193 | - | func | |
194 | - | let | |
195 | - | let | |
196 | - | if ($isInstanceOf( | |
166 | + | func Z (X) = { | |
167 | + | let aa = getString(this, (X + "_AuctionClient")) | |
168 | + | let y = aa | |
169 | + | if ($isInstanceOf(y, "String")) | |
197 | 170 | then { | |
198 | - | let | |
199 | - | | |
171 | + | let z = y | |
172 | + | z | |
200 | 173 | } | |
201 | 174 | else throw("Auction Client was not found") | |
202 | 175 | } | |
203 | 176 | ||
204 | 177 | ||
205 | - | func | |
206 | - | let | |
207 | - | let | |
208 | - | if ($isInstanceOf( | |
178 | + | func ab (X) = { | |
179 | + | let ac = getInteger(this, (X + "_AuctionStart")) | |
180 | + | let y = ac | |
181 | + | if ($isInstanceOf(y, "Int")) | |
209 | 182 | then { | |
210 | - | let | |
211 | - | | |
183 | + | let z = y | |
184 | + | z | |
212 | 185 | } | |
213 | 186 | else throw("Auction Start time was not found") | |
214 | 187 | } | |
215 | 188 | ||
216 | 189 | ||
217 | - | func | |
218 | - | let | |
219 | - | let | |
220 | - | if ($isInstanceOf( | |
190 | + | func ad (X) = { | |
191 | + | let ae = getInteger(this, (X + "_AuctionDuration")) | |
192 | + | let y = ae | |
193 | + | if ($isInstanceOf(y, "Int")) | |
221 | 194 | then { | |
222 | - | let | |
223 | - | | |
195 | + | let z = y | |
196 | + | z | |
224 | 197 | } | |
225 | 198 | else throw("Auction duration time was not found") | |
226 | 199 | } | |
227 | 200 | ||
228 | 201 | ||
229 | - | func | |
230 | - | let | |
231 | - | let | |
232 | - | if ($isInstanceOf( | |
202 | + | func af (X) = { | |
203 | + | let ag = getInteger(this, (X + "_JobPerformance")) | |
204 | + | let y = ag | |
205 | + | if ($isInstanceOf(y, "Int")) | |
233 | 206 | then { | |
234 | - | let | |
235 | - | | |
207 | + | let z = y | |
208 | + | z | |
236 | 209 | } | |
237 | 210 | else throw("Auction job performance time was not found") | |
238 | 211 | } | |
239 | 212 | ||
240 | 213 | ||
241 | - | func | |
242 | - | let | |
243 | - | let | |
244 | - | if ($isInstanceOf( | |
214 | + | func ah (X) = { | |
215 | + | let ai = getString(this, (X + "_AssetName")) | |
216 | + | let y = ai | |
217 | + | if ($isInstanceOf(y, "String")) | |
245 | 218 | then { | |
246 | - | let | |
247 | - | | |
219 | + | let z = y | |
220 | + | z | |
248 | 221 | } | |
249 | 222 | else throw("Auction asset name was not found") | |
250 | 223 | } | |
251 | 224 | ||
252 | 225 | ||
253 | - | func | |
254 | - | let | |
255 | - | let | |
256 | - | if ($isInstanceOf( | |
226 | + | func aj (X) = { | |
227 | + | let ak = getInteger(this, (X + "_Price")) | |
228 | + | let y = ak | |
229 | + | if ($isInstanceOf(y, "Int")) | |
257 | 230 | then { | |
258 | - | let | |
259 | - | | |
231 | + | let z = y | |
232 | + | z | |
260 | 233 | } | |
261 | 234 | else throw("Auction price was not found") | |
262 | 235 | } | |
263 | 236 | ||
264 | 237 | ||
265 | - | func | |
266 | - | let | |
267 | - | let | |
268 | - | if ($isInstanceOf( | |
238 | + | func al (X) = { | |
239 | + | let am = getString(this, (X + "_HiredFreelancer")) | |
240 | + | let y = am | |
241 | + | if ($isInstanceOf(y, "String")) | |
269 | 242 | then { | |
270 | - | let | |
271 | - | | |
243 | + | let z = y | |
244 | + | z | |
272 | 245 | } | |
273 | 246 | else throw("Auction Client was not found") | |
274 | 247 | } | |
275 | 248 | ||
276 | 249 | ||
277 | - | func | |
278 | - | let | |
279 | - | let | |
280 | - | if ($isInstanceOf( | |
250 | + | func an (X) = { | |
251 | + | let ao = getString(this, (X + "_LowestBidderPub")) | |
252 | + | let y = ao | |
253 | + | if ($isInstanceOf(y, "String")) | |
281 | 254 | then { | |
282 | - | let | |
283 | - | | |
255 | + | let z = y | |
256 | + | z | |
284 | 257 | } | |
285 | 258 | else throw("Auction lowest bidder was not found") | |
286 | 259 | } | |
287 | 260 | ||
288 | 261 | ||
289 | - | func | |
290 | - | let | |
291 | - | let | |
292 | - | if ($isInstanceOf( | |
262 | + | func ap (X,aq) = { | |
263 | + | let ar = getInteger(this, ((X + "_Bid_") + aq)) | |
264 | + | let y = ar | |
265 | + | if ($isInstanceOf(y, "Int")) | |
293 | 266 | then { | |
294 | - | let | |
295 | - | | |
267 | + | let z = y | |
268 | + | z | |
296 | 269 | } | |
297 | 270 | else throw("Auction lowest bid was not found") | |
298 | 271 | } | |
299 | 272 | ||
300 | 273 | ||
301 | - | func | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | if ($isInstanceOf( | |
274 | + | func as (X,at,au,av) = { | |
275 | + | let aw = getInteger(this, ((X + "_Bid_") + at)) | |
276 | + | let ax = { | |
277 | + | let y = aw | |
278 | + | if ($isInstanceOf(y, "Int")) | |
306 | 279 | then { | |
307 | - | let | |
308 | - | | |
280 | + | let z = y | |
281 | + | z | |
309 | 282 | } | |
310 | 283 | else throw("Auction lowest bid was not found") | |
311 | 284 | } | |
312 | - | if (( | |
313 | - | then | |
314 | - | else | |
285 | + | if ((ax > au)) | |
286 | + | then av | |
287 | + | else at | |
315 | 288 | } | |
316 | 289 | ||
317 | 290 | ||
318 | - | func | |
319 | - | let | |
320 | - | let | |
321 | - | if ($isInstanceOf( | |
291 | + | func ay (X,az) = { | |
292 | + | let av = getInteger(this, ((X + "_Bid_") + az)) | |
293 | + | let y = av | |
294 | + | if ($isInstanceOf(y, "Int")) | |
322 | 295 | then { | |
323 | - | let | |
324 | - | | |
296 | + | let z = y | |
297 | + | az | |
325 | 298 | } | |
326 | 299 | else throw("Error: Incorrect freelancerPub") | |
327 | 300 | } | |
328 | 301 | ||
329 | 302 | ||
330 | - | func | |
331 | - | let | |
332 | - | if (( | |
333 | - | then | |
303 | + | func aA (aB,aC) = { | |
304 | + | let aD = (aB * a) | |
305 | + | if ((aD > aC)) | |
306 | + | then aD | |
334 | 307 | else throw("New execution time must more than current execution time") | |
335 | 308 | } | |
336 | 309 | ||
337 | 310 | ||
338 | - | func | |
339 | - | let | |
340 | - | let | |
341 | - | if ($isInstanceOf( | |
311 | + | func aE (aF) = { | |
312 | + | let aG = getInteger(this, (aF + "_Rating")) | |
313 | + | let y = aG | |
314 | + | if ($isInstanceOf(y, "Int")) | |
342 | 315 | then { | |
343 | - | let | |
344 | - | | |
316 | + | let z = y | |
317 | + | z | |
345 | 318 | } | |
346 | 319 | else 0 | |
347 | 320 | } | |
348 | 321 | ||
349 | 322 | ||
350 | - | func | |
323 | + | func aH (R) = if (if (if (if (if ((R == q)) | |
351 | 324 | then true | |
352 | - | else ( | |
325 | + | else (R == r)) | |
353 | 326 | then true | |
354 | - | else ( | |
327 | + | else (R == s)) | |
355 | 328 | then true | |
356 | - | else ( | |
329 | + | else (R == t)) | |
357 | 330 | then true | |
358 | - | else ( | |
359 | - | then | |
331 | + | else (R == u)) | |
332 | + | then R | |
360 | 333 | else throw("Only defined ambassadors can vote in disputes") | |
361 | 334 | ||
362 | 335 | ||
363 | - | func | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | if ($isInstanceOf( | |
336 | + | func aI (X,aJ,aK) = { | |
337 | + | let aL = ((X + "_DiputeVote_") + aJ) | |
338 | + | let aM = getString(this, aL) | |
339 | + | let aN = { | |
340 | + | let y = aM | |
341 | + | if ($isInstanceOf(y, "String")) | |
369 | 342 | then { | |
370 | - | let | |
343 | + | let z = y | |
371 | 344 | true | |
372 | 345 | } | |
373 | 346 | else false | |
374 | 347 | } | |
375 | - | if ( | |
348 | + | if (aN) | |
376 | 349 | then throw("Ambassador voted already ") | |
377 | - | else if (if (( | |
350 | + | else if (if ((aK == o)) | |
378 | 351 | then true | |
379 | - | else ( | |
380 | - | then | |
381 | - | else throw(((("Vote is incorrect. Must be: " + | |
352 | + | else (aK == p)) | |
353 | + | then aK | |
354 | + | else throw(((("Vote is incorrect. Must be: " + o) + " or ") + p)) | |
382 | 355 | } | |
383 | 356 | ||
384 | 357 | ||
385 | - | func | |
386 | - | let | |
387 | - | let | |
388 | - | if ($isInstanceOf( | |
358 | + | func aO (X) = { | |
359 | + | let aP = getInteger(this, (X + "_DisputeVotes")) | |
360 | + | let y = aP | |
361 | + | if ($isInstanceOf(y, "Int")) | |
389 | 362 | then { | |
390 | - | let | |
391 | - | | |
363 | + | let z = y | |
364 | + | z | |
392 | 365 | } | |
393 | 366 | else throw("VotesNumber was not found") | |
394 | 367 | } | |
395 | 368 | ||
396 | 369 | ||
397 | - | func | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
370 | + | func aQ (X,aR,aS,aF) = { | |
371 | + | let aT = getString(this, ((X + "_DiputeVote_") + q)) | |
372 | + | let aU = getString(this, ((X + "_DiputeVote_") + r)) | |
373 | + | let aV = getString(this, ((X + "_DiputeVote_") + s)) | |
374 | + | let aW = getString(this, ((X + "_DiputeVote_") + t)) | |
375 | + | let aX = getString(this, ((X + "_DiputeVote_") + u)) | |
376 | + | let aY = if ((aT == o)) | |
404 | 377 | then 1 | |
405 | 378 | else 0 | |
406 | - | let | |
379 | + | let aZ = if ((aU == o)) | |
407 | 380 | then 1 | |
408 | 381 | else 0 | |
409 | - | let | |
382 | + | let ba = if ((aV == o)) | |
410 | 383 | then 1 | |
411 | 384 | else 0 | |
412 | - | let | |
385 | + | let bb = if ((aW == o)) | |
413 | 386 | then 1 | |
414 | 387 | else 0 | |
415 | - | let | |
388 | + | let bc = if ((aX == o)) | |
416 | 389 | then 1 | |
417 | 390 | else 0 | |
418 | - | let | |
391 | + | let bd = if ((aR == o)) | |
419 | 392 | then 1 | |
420 | 393 | else 0 | |
421 | - | let | |
422 | - | if (( | |
423 | - | then | |
424 | - | else | |
394 | + | let be = (((((aY + aZ) + ba) + bb) + bc) + bd) | |
395 | + | if ((be > 2)) | |
396 | + | then aS | |
397 | + | else aF | |
425 | 398 | } | |
426 | 399 | ||
427 | 400 | ||
428 | - | @Callable(bn) | |
429 | - | func freelancerSignUp (bo) = { | |
430 | - | let bp = toBase58String(bn.callerPublicKey) | |
431 | - | let bq = getString(this, (bp + "_Freelancer")) | |
432 | - | if (isDefined(bq)) | |
433 | - | then throw("User already registered") | |
434 | - | else WriteSet([DataEntry((bp + "_Freelancer"), bo), DataEntry((bp + "_PendingEarnings"), 0), DataEntry((bp + "_PaidEarnings"), 0), DataEntry((bp + "_TotalEarnings"), 0), DataEntry((bp + "_JobsPending"), 0), DataEntry((bp + "_JobsCompleted"), 0), DataEntry((bp + "_JobsTotal"), 0)]) | |
401 | + | @Callable(bf) | |
402 | + | func freelancerSignUp (bg) = { | |
403 | + | let bh = toBase58String(bf.callerPublicKey) | |
404 | + | WriteSet([DataEntry((bh + "_Freelancer"), bg), DataEntry((bh + "_PendingEarnings"), 0), DataEntry((bh + "_PaidEarnings"), 0), DataEntry((bh + "_TotalEarnings"), 0), DataEntry((bh + "_JobsPending"), 0), DataEntry((bh + "_JobsCompleted"), 0), DataEntry((bh + "_JobsTotal"), 0)]) | |
435 | 405 | } | |
436 | 406 | ||
437 | 407 | ||
438 | 408 | ||
439 | - | @Callable(bn) | |
440 | - | func clientSignUp (bo) = { | |
441 | - | let bp = toBase58String(bn.callerPublicKey) | |
442 | - | let bq = getString(this, (bp + "_Client")) | |
443 | - | if (isDefined(bq)) | |
444 | - | then throw("User already registered") | |
445 | - | else WriteSet([DataEntry((bp + "_Client"), bo), DataEntry((bp + "_JobsCreated"), 0), DataEntry((bp + "_JobsOnGoing"), 0), DataEntry((bp + "_JobInDispute"), 0)]) | |
409 | + | @Callable(bf) | |
410 | + | func clientSignUp (bg) = { | |
411 | + | let bh = toBase58String(bf.callerPublicKey) | |
412 | + | WriteSet([DataEntry((bh + "_Client"), bg), DataEntry((bh + "_JobsCreated"), 0), DataEntry((bh + "_JobsOnGoing"), 0), DataEntry((bh + "_JobInDispute"), 0)]) | |
446 | 413 | } | |
447 | 414 | ||
448 | 415 | ||
449 | 416 | ||
450 | - | @Callable(bn) | |
451 | - | func createAuction (br,bs,bt,H) = { | |
452 | - | let Z = toBase58String(bn.callerPublicKey) | |
453 | - | let af = toBase58String(bn.transactionId) | |
454 | - | let ba = Y(Z) | |
455 | - | let bu = extract(bn.payment) | |
456 | - | let ad = bu.amount | |
457 | - | let S = ac(ad) | |
458 | - | let bv = height | |
459 | - | let bw = (bs * a) | |
460 | - | let bx = (br * a) | |
461 | - | let U = I(bu.assetId) | |
462 | - | let by = B((ba + "_JobsCreated")) | |
463 | - | let bz = G(H) | |
464 | - | let bA = T(U, S) | |
465 | - | WriteSet([DataEntry((af + "_State"), g), DataEntry((af + "_Info"), bt), DataEntry((af + "_AuctionClient"), ba), DataEntry((af + "_AuctionStart"), bv), DataEntry((af + "_AuctionDuration"), bw), DataEntry((af + "_JobPerformance"), bx), DataEntry((af + "_AssetName"), U), DataEntry((af + "_Price"), S), DataEntry((af + "_Category"), bz), DataEntry((U + "_Freezed"), bA), DataEntry((ba + "_JobsCreated"), (by + 1))]) | |
417 | + | @Callable(bf) | |
418 | + | func createAuction (bi,bj,bk) = { | |
419 | + | let R = toBase58String(bf.callerPublicKey) | |
420 | + | let X = toBase58String(bf.transactionId) | |
421 | + | let aS = Q(R) | |
422 | + | let bl = extract(bf.payment) | |
423 | + | let V = bl.amount | |
424 | + | let K = U(V) | |
425 | + | let bm = height | |
426 | + | let bn = (bj * a) | |
427 | + | let bo = (bi * a) | |
428 | + | let M = A(bl.assetId) | |
429 | + | let bp = v((aS + "_JobsCreated")) | |
430 | + | let bq = L(M, K) | |
431 | + | WriteSet([DataEntry((X + "_State"), g), DataEntry((X + "_Info"), bk), DataEntry((X + "_AuctionClient"), aS), DataEntry((X + "_AuctionStart"), bm), DataEntry((X + "_AuctionDuration"), bn), DataEntry((X + "_JobPerformance"), bo), DataEntry((X + "_AssetName"), M), DataEntry((X + "_Price"), K), DataEntry((M + "_Freezed"), bq), DataEntry((aS + "_JobsCreated"), (bp + 1))]) | |
466 | 432 | } | |
467 | 433 | ||
468 | 434 | ||
469 | 435 | ||
470 | - | @Callable( | |
471 | - | func makeBid ( | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | if ( | |
487 | - | then if (( | |
488 | - | then ScriptResult(WriteSet([DataEntry(( | |
489 | - | else if (( | |
436 | + | @Callable(bf) | |
437 | + | func makeBid (X,J) = { | |
438 | + | let R = toBase58String(bf.callerPublicKey) | |
439 | + | let br = W(X) | |
440 | + | let aS = Z(X) | |
441 | + | let bm = ab(X) | |
442 | + | let bs = ad(X) | |
443 | + | let aC = af(X) | |
444 | + | let D = ah(X) | |
445 | + | let K = aj(X) | |
446 | + | let bt = C(D) | |
447 | + | let av = T(R) | |
448 | + | let bu = ((K * 3) / 100) | |
449 | + | let bq = P(D, K) | |
450 | + | let au = I(J, K) | |
451 | + | let bv = E(height, bm, bs) | |
452 | + | if (bv) | |
453 | + | then if ((br == g)) | |
454 | + | then ScriptResult(WriteSet([DataEntry((X + "_State"), i), DataEntry((D + "_Freezed"), bq)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aS)), (K - bu), bt)])) | |
455 | + | else if ((br == h)) | |
490 | 456 | then { | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | ScriptResult(WriteSet([DataEntry(( | |
457 | + | let aq = an(X) | |
458 | + | let bw = ap(X, aq) | |
459 | + | let bx = ((K - bw) - bu) | |
460 | + | ScriptResult(WriteSet([DataEntry((X + "_State"), j), DataEntry((X + "_HiredFreelancer"), aq), DataEntry((X + "_Price"), bw)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aS)), bx, bt)])) | |
495 | 461 | } | |
496 | 462 | else throw("Incorrect auction state") | |
497 | - | else if (( | |
498 | - | then WriteSet([DataEntry((( | |
499 | - | else if (( | |
463 | + | else if ((br == g)) | |
464 | + | then WriteSet([DataEntry(((X + "_Bid_") + av), au), DataEntry((X + "_State"), h), DataEntry((X + "_LowestBidderPub"), R)]) | |
465 | + | else if ((br == h)) | |
500 | 466 | then { | |
501 | - | let | |
502 | - | let | |
503 | - | WriteSet([DataEntry(( | |
467 | + | let at = an(X) | |
468 | + | let by = as(X, at, au, av) | |
469 | + | WriteSet([DataEntry((X + "_LowestBidderPub"), by), DataEntry(((X + "_Bid_") + av), au)]) | |
504 | 470 | } | |
505 | - | else throw(((((("Incorrect jobId state. Now: " + | |
471 | + | else throw(((((("Incorrect jobId state. Now: " + br) + ", must be: ") + g) + " or ") + h)) | |
506 | 472 | } | |
507 | 473 | ||
508 | 474 | ||
509 | 475 | ||
510 | - | @Callable( | |
511 | - | func chooseFreelancer ( | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | if (( | |
527 | - | then if ( | |
528 | - | then if (( | |
476 | + | @Callable(bf) | |
477 | + | func chooseFreelancer (X,az) = { | |
478 | + | let R = toBase58String(bf.callerPublicKey) | |
479 | + | let br = W(X) | |
480 | + | let aS = Z(X) | |
481 | + | let bm = ab(X) | |
482 | + | let bs = ad(X) | |
483 | + | let D = ah(X) | |
484 | + | let K = aj(X) | |
485 | + | let bt = C(D) | |
486 | + | let av = ay(X, az) | |
487 | + | let bz = ap(X, av) | |
488 | + | let bv = E(height, bm, bs) | |
489 | + | let bA = v((aS + "_JobsOnGoing")) | |
490 | + | let bB = v((az + "_PendingEarnings")) | |
491 | + | let bC = v((az + "_TotalEarnings")) | |
492 | + | if ((R == aS)) | |
493 | + | then if (bv) | |
494 | + | then if ((br == g)) | |
529 | 495 | then { | |
530 | - | let | |
531 | - | let | |
532 | - | ScriptResult(WriteSet([DataEntry(( | |
496 | + | let bq = P(D, K) | |
497 | + | let bu = ((K * 3) / 100) | |
498 | + | ScriptResult(WriteSet([DataEntry((X + "_State"), i), DataEntry((D + "_Freezed"), bq)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aS)), (K - bu), bt)])) | |
533 | 499 | } | |
534 | - | else if (( | |
500 | + | else if ((br == h)) | |
535 | 501 | then { | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | ScriptResult(WriteSet([DataEntry(( | |
502 | + | let aq = an(X) | |
503 | + | let bw = ap(X, aq) | |
504 | + | let bx = (K - bw) | |
505 | + | let bq = P(D, bx) | |
506 | + | ScriptResult(WriteSet([DataEntry((X + "_State"), j), DataEntry((X + "_HiredFreelancer"), aq), DataEntry((X + "_Price"), bw), DataEntry((D + "_Freezed"), bq), DataEntry((aS + "_JobsOnGoing"), (bA + 1)), DataEntry((az + "_PendingEarnings"), (bB + bw)), DataEntry((az + "_TotalEarnings"), (bC + bw))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aS)), bx, bt)])) | |
541 | 507 | } | |
542 | 508 | else throw("Incorrect auction state") | |
543 | - | else if (if (( | |
509 | + | else if (if ((br == g)) | |
544 | 510 | then true | |
545 | - | else ( | |
511 | + | else (br == h)) | |
546 | 512 | then { | |
547 | - | let | |
548 | - | let | |
549 | - | ScriptResult(WriteSet([DataEntry(( | |
513 | + | let bx = (K - bz) | |
514 | + | let bq = P(D, bx) | |
515 | + | ScriptResult(WriteSet([DataEntry((X + "_State"), j), DataEntry((X + "_HiredFreelancer"), av), DataEntry((X + "_Price"), bz), DataEntry((D + "_Freezed"), bq), DataEntry((aS + "_JobsOnGoing"), (bA + 1)), DataEntry((az + "_PendingEarnings"), (bB + bz)), DataEntry((az + "_TotalEarnings"), (bC + bz))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aS)), (bx + 1), bt)])) | |
550 | 516 | } | |
551 | 517 | else throw("Incorrect auction state") | |
552 | 518 | else throw("Only auction customer can choose a freelancer") | |
554 | 520 | ||
555 | 521 | ||
556 | 522 | ||
557 | - | @Callable( | |
558 | - | func increaseExecutionTime ( | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | if (( | |
565 | - | then if (if (if (( | |
523 | + | @Callable(bf) | |
524 | + | func increaseExecutionTime (X,aB) = { | |
525 | + | let bD = toBase58String(bf.callerPublicKey) | |
526 | + | let br = W(X) | |
527 | + | let aS = Z(X) | |
528 | + | let aC = af(X) | |
529 | + | let bE = aA(aB, aC) | |
530 | + | if ((bD == aS)) | |
531 | + | then if (if (if ((br == g)) | |
566 | 532 | then true | |
567 | - | else ( | |
533 | + | else (br == h)) | |
568 | 534 | then true | |
569 | - | else ( | |
570 | - | then WriteSet([DataEntry(( | |
535 | + | else (br == j)) | |
536 | + | then WriteSet([DataEntry((X + "_JobPerformance"), bE)]) | |
571 | 537 | else throw("Incorrect state") | |
572 | 538 | else throw("Only Client can increase execution time") | |
573 | 539 | } | |
574 | 540 | ||
575 | 541 | ||
576 | 542 | ||
577 | - | @Callable( | |
578 | - | func cancelAuction ( | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | if (( | |
589 | - | then if (( | |
590 | - | then ScriptResult(WriteSet([DataEntry(( | |
543 | + | @Callable(bf) | |
544 | + | func cancelAuction (X) = { | |
545 | + | let R = toBase58String(bf.callerPublicKey) | |
546 | + | let br = W(X) | |
547 | + | let aS = Z(X) | |
548 | + | let D = ah(X) | |
549 | + | let K = aj(X) | |
550 | + | let bt = C(D) | |
551 | + | let bu = ((K * 3) / 100) | |
552 | + | let bF = (K - bu) | |
553 | + | let bq = P(D, K) | |
554 | + | if ((R == aS)) | |
555 | + | then if ((br == g)) | |
556 | + | then ScriptResult(WriteSet([DataEntry((X + "_State"), i), DataEntry((D + "_Freezed"), bq)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aS)), bF, bt)])) | |
591 | 557 | else throw("Auction can be canceled only by auction owner.") | |
592 | 558 | else throw("Only Client can cancel auction") | |
593 | 559 | } | |
594 | 560 | ||
595 | 561 | ||
596 | 562 | ||
597 | - | @Callable( | |
598 | - | func openDispute ( | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | if (if (( | |
563 | + | @Callable(bf) | |
564 | + | func openDispute (X) = { | |
565 | + | let bD = toBase58String(bf.callerPublicKey) | |
566 | + | let br = W(X) | |
567 | + | let aS = Z(X) | |
568 | + | let aF = al(X) | |
569 | + | let bG = v((aS + "_JobsInDispute")) | |
570 | + | if (if ((br == j)) | |
605 | 571 | then true | |
606 | - | else ( | |
607 | - | then if (if (( | |
572 | + | else (br == k)) | |
573 | + | then if (if ((bD == aS)) | |
608 | 574 | then true | |
609 | - | else ( | |
610 | - | then WriteSet([DataEntry(( | |
575 | + | else (bD == aF)) | |
576 | + | then WriteSet([DataEntry((X + "_State"), m), DataEntry((X + "_DisputeVotes"), 0), DataEntry((aS + "_JobsInDispute"), (bG + 1))]) | |
611 | 577 | else throw("Only Client and Freelancer can open dispute") | |
612 | 578 | else throw("Incorrect auction state for dispute opening") | |
613 | 579 | } | |
614 | 580 | ||
615 | 581 | ||
616 | 582 | ||
617 | - | @Callable( | |
618 | - | func voteDispute ( | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | let | |
633 | - | if (( | |
634 | - | then if (( | |
583 | + | @Callable(bf) | |
584 | + | func voteDispute (X,aK) = { | |
585 | + | let R = toBase58String(bf.callerPublicKey) | |
586 | + | let br = W(X) | |
587 | + | let aS = Z(X) | |
588 | + | let D = ah(X) | |
589 | + | let K = aj(X) | |
590 | + | let aF = al(X) | |
591 | + | let bH = ((K * 3) / 100) | |
592 | + | let bt = C(D) | |
593 | + | let aJ = aH(R) | |
594 | + | let bI = aI(X, aJ, aK) | |
595 | + | let bJ = aO(X) | |
596 | + | let bG = v((aS + "_JobsInDispute")) | |
597 | + | let bB = v((aF + "_PendingEarnings")) | |
598 | + | let bC = v((aF + "_TotalEarnings")) | |
599 | + | if ((br == m)) | |
600 | + | then if ((bJ == 4)) | |
635 | 601 | then { | |
636 | - | let | |
637 | - | let | |
638 | - | if (( | |
602 | + | let bK = aQ(X, bI, aS, aF) | |
603 | + | let bq = P(D, K) | |
604 | + | if ((bK == aS)) | |
639 | 605 | then { | |
640 | - | let | |
641 | - | ScriptResult(WriteSet([DataEntry(( | |
606 | + | let bL = (K - bH) | |
607 | + | ScriptResult(WriteSet([DataEntry((X + "_DisputeVotes"), (bJ + 1)), DataEntry((X + "_State"), n), DataEntry(((X + "_DiputeVote_") + aJ), bI), DataEntry((D + "_Freezed"), bq), DataEntry((aS + "_JobsInDispute"), (bG - 1)), DataEntry((aF + "_PendingEarnings"), (bB - K)), DataEntry((aF + "_TotalEarnings"), (bC - K))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(bK)), bL, bt)])) | |
642 | 608 | } | |
643 | 609 | else { | |
644 | - | let | |
645 | - | ScriptResult(WriteSet([DataEntry(( | |
610 | + | let bL = (K - (bH * 2)) | |
611 | + | ScriptResult(WriteSet([DataEntry((X + "_DisputeVotes"), (bJ + 1)), DataEntry((X + "_State"), n), DataEntry(((X + "_DiputeVote_") + aJ), bI), DataEntry((D + "_Freezed"), bq), DataEntry((aS + "_JobsInDispute"), (bG - 1)), DataEntry((aF + "_PendingEarnings"), (bB - K))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(bK)), bL, bt)])) | |
646 | 612 | } | |
647 | 613 | } | |
648 | - | else WriteSet([DataEntry(( | |
614 | + | else WriteSet([DataEntry((X + "_DisputeVotes"), (bJ + 1)), DataEntry(((X + "_DiputeVote_") + aJ), bI)]) | |
649 | 615 | else throw(("Incorrect state. Must be: " + m)) | |
650 | 616 | } | |
651 | 617 | ||
652 | 618 | ||
653 | 619 | ||
654 | - | @Callable( | |
655 | - | func workHandOver ( | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | if (( | |
666 | - | then if (( | |
667 | - | then if ( | |
668 | - | then WriteSet([DataEntry(( | |
669 | - | else WriteSet([DataEntry(( | |
620 | + | @Callable(bf) | |
621 | + | func workHandOver (X) = { | |
622 | + | let R = toBase58String(bf.callerPublicKey) | |
623 | + | let br = W(X) | |
624 | + | let aS = Z(X) | |
625 | + | let bm = ab(X) | |
626 | + | let bs = ad(X) | |
627 | + | let aC = af(X) | |
628 | + | let aF = al(X) | |
629 | + | let bM = ((height - bm) > aC) | |
630 | + | let bG = v((aS + "_JobsInDispute")) | |
631 | + | if ((R == aF)) | |
632 | + | then if ((br == j)) | |
633 | + | then if (bM) | |
634 | + | then WriteSet([DataEntry((X + "_State"), m), DataEntry((X + "_DisputeVotes"), "0"), DataEntry((aS + "_JobInDispute"), (bG + 1))]) | |
635 | + | else WriteSet([DataEntry((X + "_State"), k)]) | |
670 | 636 | else throw("Auction state is incorrect") | |
671 | 637 | else throw("Only a freelancer can indicate that the work is done") | |
672 | 638 | } | |
673 | 639 | ||
674 | 640 | ||
675 | 641 | ||
676 | - | @Callable( | |
677 | - | func acceptWork ( | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | let | |
685 | - | let | |
686 | - | let | |
687 | - | let | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | if (( | |
695 | - | then if (( | |
696 | - | then ScriptResult(WriteSet([DataEntry(( | |
642 | + | @Callable(bf) | |
643 | + | func acceptWork (X) = { | |
644 | + | let R = toBase58String(bf.callerPublicKey) | |
645 | + | let br = W(X) | |
646 | + | let aS = Z(X) | |
647 | + | let bm = ab(X) | |
648 | + | let bs = ad(X) | |
649 | + | let D = ah(X) | |
650 | + | let K = aj(X) | |
651 | + | let aF = al(X) | |
652 | + | let bA = v((aS + "_JobsOnGoing")) | |
653 | + | let bB = v((aF + "_PendingEarnings")) | |
654 | + | let bN = v((aF + "_PaidEarnings")) | |
655 | + | let bu = ((K * 3) / 100) | |
656 | + | let bF = (K - (bu * 2)) | |
657 | + | let bt = C(D) | |
658 | + | let bq = P(D, K) | |
659 | + | let bO = aE(aF) | |
660 | + | if ((R == aS)) | |
661 | + | then if ((br == k)) | |
662 | + | then ScriptResult(WriteSet([DataEntry((X + "_State"), l), DataEntry((aF + "_Rating"), (bO + 1)), DataEntry((D + "_Freezed"), bq), DataEntry((aS + "_JobsOnGoing"), (bA - 1)), DataEntry((aF + "_PendingEarnings"), (bB - K)), DataEntry((aF + "_PaidEarnings"), (bN + K))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aF)), bF, bt)])) | |
697 | 663 | else throw(("Incorrect state. Must be: " + k)) | |
698 | 664 | else throw("Only auction customer can use this function") | |
699 | 665 | } | |
700 | 666 | ||
701 | 667 | ||
702 | - | @Verifier( | |
703 | - | func | |
668 | + | @Verifier(bP) | |
669 | + | func bQ () = if (sigVerify(bP.bodyBytes, bP.proofs[0], bP.senderPublicKey)) | |
704 | 670 | then { | |
705 | - | let | |
706 | - | if ($isInstanceOf( | |
671 | + | let y = bP | |
672 | + | if ($isInstanceOf(y, "TransferTransaction")) | |
707 | 673 | then { | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | let | |
713 | - | if ($isInstanceOf( | |
674 | + | let bR = y | |
675 | + | let bS = A(bR.assetId) | |
676 | + | let bT = getInteger(this, (bS + "_Reserved")) | |
677 | + | let bU = { | |
678 | + | let bV = bT | |
679 | + | if ($isInstanceOf(bV, "Int")) | |
714 | 680 | then { | |
715 | - | let | |
716 | - | | |
681 | + | let z = bV | |
682 | + | z | |
717 | 683 | } | |
718 | 684 | else 0 | |
719 | 685 | } | |
720 | - | let | |
721 | - | ( | |
686 | + | let bW = (assetBalance(this, bR.assetId) - bU) | |
687 | + | (bW >= bR.amount) | |
722 | 688 | } | |
723 | - | else if ($isInstanceOf( | |
689 | + | else if ($isInstanceOf(y, "SetScriptTransaction")) | |
724 | 690 | then { | |
725 | - | let | |
691 | + | let bX = y | |
726 | 692 | true | |
727 | 693 | } | |
728 | 694 | else false |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1440 | |
5 | 5 | ||
6 | 6 | let b = unit | |
7 | 7 | ||
8 | 8 | let c = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS' | |
9 | 9 | ||
10 | 10 | let d = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU' | |
11 | 11 | ||
12 | 12 | let e = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck' | |
13 | 13 | ||
14 | 14 | let f = base58'1' | |
15 | 15 | ||
16 | 16 | let g = "Opened" | |
17 | 17 | ||
18 | 18 | let h = "Suggested" | |
19 | 19 | ||
20 | 20 | let i = "Canceled" | |
21 | 21 | ||
22 | 22 | let j = "InProgress" | |
23 | 23 | ||
24 | 24 | let k = "WaitForConfirmation" | |
25 | 25 | ||
26 | 26 | let l = "Completed" | |
27 | 27 | ||
28 | 28 | let m = "Dispute" | |
29 | 29 | ||
30 | 30 | let n = "DisputeResolved" | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "CL" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "FL" | |
35 | 35 | ||
36 | - | let q = " | |
36 | + | let q = "FneCJqM5BP2eAuyteMiuEEHYALrE4axhEfcpHVGbdr5s" | |
37 | 37 | ||
38 | - | let r = " | |
38 | + | let r = "6QAMdssb1GJjpQVQQcnx8fKU8WhtcF9ZsQhifdThAEK8" | |
39 | 39 | ||
40 | - | let s = " | |
40 | + | let s = "2ituwW7DSRsLP3Vcbnpr98QUQMGFRWKmyYPFqsUKRDoP" | |
41 | 41 | ||
42 | - | let t = " | |
42 | + | let t = "ANsPQocEESyLb3yQqk2pwCdoK7PJQxLoZVpYvsm3SxUG" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "13VixwQin1MzZCyY69NSWMSBNEV27Rzc159o7uZXR9VS" | |
45 | 45 | ||
46 | - | let v = "FL" | |
47 | - | ||
48 | - | let w = "FneCJqM5BP2eAuyteMiuEEHYALrE4axhEfcpHVGbdr5s" | |
49 | - | ||
50 | - | let x = "6QAMdssb1GJjpQVQQcnx8fKU8WhtcF9ZsQhifdThAEK8" | |
51 | - | ||
52 | - | let y = "2ituwW7DSRsLP3Vcbnpr98QUQMGFRWKmyYPFqsUKRDoP" | |
53 | - | ||
54 | - | let z = "ANsPQocEESyLb3yQqk2pwCdoK7PJQxLoZVpYvsm3SxUG" | |
55 | - | ||
56 | - | let A = "13VixwQin1MzZCyY69NSWMSBNEV27Rzc159o7uZXR9VS" | |
57 | - | ||
58 | - | func B (C) = { | |
59 | - | let D = getInteger(this, C) | |
60 | - | let E = D | |
61 | - | if ($isInstanceOf(E, "Int")) | |
46 | + | func v (w) = { | |
47 | + | let x = getInteger(this, w) | |
48 | + | let y = x | |
49 | + | if ($isInstanceOf(y, "Int")) | |
62 | 50 | then { | |
63 | - | let | |
64 | - | | |
51 | + | let z = y | |
52 | + | z | |
65 | 53 | } | |
66 | 54 | else 0 | |
67 | 55 | } | |
68 | 56 | ||
69 | 57 | ||
70 | - | func G (H) = if (if (if (if (if (if ((H == o)) | |
71 | - | then true | |
72 | - | else (H == p)) | |
73 | - | then true | |
74 | - | else (H == q)) | |
75 | - | then true | |
76 | - | else (H == r)) | |
77 | - | then true | |
78 | - | else (H == s)) | |
79 | - | then true | |
80 | - | else (H == t)) | |
81 | - | then H | |
82 | - | else throw("Category is invalid") | |
83 | - | ||
84 | - | ||
85 | - | func I (J) = if (!(isDefined(J))) | |
58 | + | func A (B) = if (!(isDefined(B))) | |
86 | 59 | then "WAVES" | |
87 | - | else if (( | |
60 | + | else if ((B == c)) | |
88 | 61 | then "BTC" | |
89 | - | else if (( | |
62 | + | else if ((B == d)) | |
90 | 63 | then "EUR" | |
91 | - | else if (( | |
64 | + | else if ((B == e)) | |
92 | 65 | then "USD" | |
93 | - | else if (( | |
66 | + | else if ((B == f)) | |
94 | 67 | then "AUCT" | |
95 | 68 | else throw("AssetId is incorrect") | |
96 | 69 | ||
97 | 70 | ||
98 | - | func | |
71 | + | func C (D) = if ((D == "WAVES")) | |
99 | 72 | then b | |
100 | - | else if (( | |
73 | + | else if ((D == "BTC")) | |
101 | 74 | then c | |
102 | - | else if (( | |
75 | + | else if ((D == "EUR")) | |
103 | 76 | then d | |
104 | - | else if (( | |
77 | + | else if ((D == "USD")) | |
105 | 78 | then e | |
106 | - | else if (( | |
79 | + | else if ((D == "AUCT")) | |
107 | 80 | then f | |
108 | 81 | else throw("Incorrect Asset Id") | |
109 | 82 | ||
110 | 83 | ||
111 | - | func | |
84 | + | func E (F,G,H) = ((F - G) > H) | |
112 | 85 | ||
113 | 86 | ||
114 | - | func | |
87 | + | func I (J,K) = if ((J > K)) | |
115 | 88 | then throw("Bid amount must be lower or equal than auctionPrice") | |
116 | - | else | |
89 | + | else J | |
117 | 90 | ||
118 | 91 | ||
119 | - | func | |
120 | - | let | |
121 | - | let | |
122 | - | let | |
123 | - | if ($isInstanceOf( | |
92 | + | func L (M,K) = { | |
93 | + | let N = getInteger(this, (M + "_Freezed")) | |
94 | + | let O = { | |
95 | + | let y = N | |
96 | + | if ($isInstanceOf(y, "Int")) | |
124 | 97 | then { | |
125 | - | let | |
126 | - | | |
98 | + | let z = y | |
99 | + | z | |
127 | 100 | } | |
128 | 101 | else 0 | |
129 | 102 | } | |
130 | - | ( | |
103 | + | (O + K) | |
131 | 104 | } | |
132 | 105 | ||
133 | 106 | ||
134 | - | func | |
135 | - | let | |
136 | - | let | |
137 | - | let | |
138 | - | if ($isInstanceOf( | |
107 | + | func P (M,K) = { | |
108 | + | let N = getInteger(this, (M + "_Freezed")) | |
109 | + | let O = { | |
110 | + | let y = N | |
111 | + | if ($isInstanceOf(y, "Int")) | |
139 | 112 | then { | |
140 | - | let | |
141 | - | | |
113 | + | let z = y | |
114 | + | z | |
142 | 115 | } | |
143 | 116 | else 0 | |
144 | 117 | } | |
145 | - | let | |
146 | - | if (( | |
147 | - | then | |
118 | + | let z = (O - K) | |
119 | + | if ((z >= 0)) | |
120 | + | then z | |
148 | 121 | else throw("Freezed amount couldn't be less than 0") | |
149 | 122 | } | |
150 | 123 | ||
151 | 124 | ||
152 | - | func | |
153 | - | let | |
154 | - | let | |
155 | - | if ($isInstanceOf( | |
125 | + | func Q (R) = { | |
126 | + | let S = getString(this, (R + "_Freelancer")) | |
127 | + | let y = S | |
128 | + | if ($isInstanceOf(y, "String")) | |
156 | 129 | then { | |
157 | - | let | |
158 | - | | |
130 | + | let z = y | |
131 | + | R | |
159 | 132 | } | |
160 | 133 | else throw("Only registered users can make bets") | |
161 | 134 | } | |
162 | 135 | ||
163 | 136 | ||
164 | - | func | |
165 | - | let | |
166 | - | let | |
167 | - | if ($isInstanceOf( | |
137 | + | func T (R) = { | |
138 | + | let S = getString(this, (R + "_Freelancer")) | |
139 | + | let y = S | |
140 | + | if ($isInstanceOf(y, "String")) | |
168 | 141 | then { | |
169 | - | let | |
170 | - | | |
142 | + | let z = y | |
143 | + | R | |
171 | 144 | } | |
172 | 145 | else throw("Only registered users can make bets") | |
173 | 146 | } | |
174 | 147 | ||
175 | 148 | ||
176 | - | func | |
177 | - | then | |
149 | + | func U (V) = if ((V > 0)) | |
150 | + | then V | |
178 | 151 | else throw("Amount must be higher then 0") | |
179 | 152 | ||
180 | 153 | ||
181 | - | func | |
182 | - | let | |
183 | - | let | |
184 | - | if ($isInstanceOf( | |
154 | + | func W (X) = { | |
155 | + | let Y = getString(this, (X + "_State")) | |
156 | + | let y = Y | |
157 | + | if ($isInstanceOf(y, "String")) | |
185 | 158 | then { | |
186 | - | let | |
187 | - | | |
159 | + | let z = y | |
160 | + | z | |
188 | 161 | } | |
189 | 162 | else throw("Auction State was not found") | |
190 | 163 | } | |
191 | 164 | ||
192 | 165 | ||
193 | - | func | |
194 | - | let | |
195 | - | let | |
196 | - | if ($isInstanceOf( | |
166 | + | func Z (X) = { | |
167 | + | let aa = getString(this, (X + "_AuctionClient")) | |
168 | + | let y = aa | |
169 | + | if ($isInstanceOf(y, "String")) | |
197 | 170 | then { | |
198 | - | let | |
199 | - | | |
171 | + | let z = y | |
172 | + | z | |
200 | 173 | } | |
201 | 174 | else throw("Auction Client was not found") | |
202 | 175 | } | |
203 | 176 | ||
204 | 177 | ||
205 | - | func | |
206 | - | let | |
207 | - | let | |
208 | - | if ($isInstanceOf( | |
178 | + | func ab (X) = { | |
179 | + | let ac = getInteger(this, (X + "_AuctionStart")) | |
180 | + | let y = ac | |
181 | + | if ($isInstanceOf(y, "Int")) | |
209 | 182 | then { | |
210 | - | let | |
211 | - | | |
183 | + | let z = y | |
184 | + | z | |
212 | 185 | } | |
213 | 186 | else throw("Auction Start time was not found") | |
214 | 187 | } | |
215 | 188 | ||
216 | 189 | ||
217 | - | func | |
218 | - | let | |
219 | - | let | |
220 | - | if ($isInstanceOf( | |
190 | + | func ad (X) = { | |
191 | + | let ae = getInteger(this, (X + "_AuctionDuration")) | |
192 | + | let y = ae | |
193 | + | if ($isInstanceOf(y, "Int")) | |
221 | 194 | then { | |
222 | - | let | |
223 | - | | |
195 | + | let z = y | |
196 | + | z | |
224 | 197 | } | |
225 | 198 | else throw("Auction duration time was not found") | |
226 | 199 | } | |
227 | 200 | ||
228 | 201 | ||
229 | - | func | |
230 | - | let | |
231 | - | let | |
232 | - | if ($isInstanceOf( | |
202 | + | func af (X) = { | |
203 | + | let ag = getInteger(this, (X + "_JobPerformance")) | |
204 | + | let y = ag | |
205 | + | if ($isInstanceOf(y, "Int")) | |
233 | 206 | then { | |
234 | - | let | |
235 | - | | |
207 | + | let z = y | |
208 | + | z | |
236 | 209 | } | |
237 | 210 | else throw("Auction job performance time was not found") | |
238 | 211 | } | |
239 | 212 | ||
240 | 213 | ||
241 | - | func | |
242 | - | let | |
243 | - | let | |
244 | - | if ($isInstanceOf( | |
214 | + | func ah (X) = { | |
215 | + | let ai = getString(this, (X + "_AssetName")) | |
216 | + | let y = ai | |
217 | + | if ($isInstanceOf(y, "String")) | |
245 | 218 | then { | |
246 | - | let | |
247 | - | | |
219 | + | let z = y | |
220 | + | z | |
248 | 221 | } | |
249 | 222 | else throw("Auction asset name was not found") | |
250 | 223 | } | |
251 | 224 | ||
252 | 225 | ||
253 | - | func | |
254 | - | let | |
255 | - | let | |
256 | - | if ($isInstanceOf( | |
226 | + | func aj (X) = { | |
227 | + | let ak = getInteger(this, (X + "_Price")) | |
228 | + | let y = ak | |
229 | + | if ($isInstanceOf(y, "Int")) | |
257 | 230 | then { | |
258 | - | let | |
259 | - | | |
231 | + | let z = y | |
232 | + | z | |
260 | 233 | } | |
261 | 234 | else throw("Auction price was not found") | |
262 | 235 | } | |
263 | 236 | ||
264 | 237 | ||
265 | - | func | |
266 | - | let | |
267 | - | let | |
268 | - | if ($isInstanceOf( | |
238 | + | func al (X) = { | |
239 | + | let am = getString(this, (X + "_HiredFreelancer")) | |
240 | + | let y = am | |
241 | + | if ($isInstanceOf(y, "String")) | |
269 | 242 | then { | |
270 | - | let | |
271 | - | | |
243 | + | let z = y | |
244 | + | z | |
272 | 245 | } | |
273 | 246 | else throw("Auction Client was not found") | |
274 | 247 | } | |
275 | 248 | ||
276 | 249 | ||
277 | - | func | |
278 | - | let | |
279 | - | let | |
280 | - | if ($isInstanceOf( | |
250 | + | func an (X) = { | |
251 | + | let ao = getString(this, (X + "_LowestBidderPub")) | |
252 | + | let y = ao | |
253 | + | if ($isInstanceOf(y, "String")) | |
281 | 254 | then { | |
282 | - | let | |
283 | - | | |
255 | + | let z = y | |
256 | + | z | |
284 | 257 | } | |
285 | 258 | else throw("Auction lowest bidder was not found") | |
286 | 259 | } | |
287 | 260 | ||
288 | 261 | ||
289 | - | func | |
290 | - | let | |
291 | - | let | |
292 | - | if ($isInstanceOf( | |
262 | + | func ap (X,aq) = { | |
263 | + | let ar = getInteger(this, ((X + "_Bid_") + aq)) | |
264 | + | let y = ar | |
265 | + | if ($isInstanceOf(y, "Int")) | |
293 | 266 | then { | |
294 | - | let | |
295 | - | | |
267 | + | let z = y | |
268 | + | z | |
296 | 269 | } | |
297 | 270 | else throw("Auction lowest bid was not found") | |
298 | 271 | } | |
299 | 272 | ||
300 | 273 | ||
301 | - | func | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | if ($isInstanceOf( | |
274 | + | func as (X,at,au,av) = { | |
275 | + | let aw = getInteger(this, ((X + "_Bid_") + at)) | |
276 | + | let ax = { | |
277 | + | let y = aw | |
278 | + | if ($isInstanceOf(y, "Int")) | |
306 | 279 | then { | |
307 | - | let | |
308 | - | | |
280 | + | let z = y | |
281 | + | z | |
309 | 282 | } | |
310 | 283 | else throw("Auction lowest bid was not found") | |
311 | 284 | } | |
312 | - | if (( | |
313 | - | then | |
314 | - | else | |
285 | + | if ((ax > au)) | |
286 | + | then av | |
287 | + | else at | |
315 | 288 | } | |
316 | 289 | ||
317 | 290 | ||
318 | - | func | |
319 | - | let | |
320 | - | let | |
321 | - | if ($isInstanceOf( | |
291 | + | func ay (X,az) = { | |
292 | + | let av = getInteger(this, ((X + "_Bid_") + az)) | |
293 | + | let y = av | |
294 | + | if ($isInstanceOf(y, "Int")) | |
322 | 295 | then { | |
323 | - | let | |
324 | - | | |
296 | + | let z = y | |
297 | + | az | |
325 | 298 | } | |
326 | 299 | else throw("Error: Incorrect freelancerPub") | |
327 | 300 | } | |
328 | 301 | ||
329 | 302 | ||
330 | - | func | |
331 | - | let | |
332 | - | if (( | |
333 | - | then | |
303 | + | func aA (aB,aC) = { | |
304 | + | let aD = (aB * a) | |
305 | + | if ((aD > aC)) | |
306 | + | then aD | |
334 | 307 | else throw("New execution time must more than current execution time") | |
335 | 308 | } | |
336 | 309 | ||
337 | 310 | ||
338 | - | func | |
339 | - | let | |
340 | - | let | |
341 | - | if ($isInstanceOf( | |
311 | + | func aE (aF) = { | |
312 | + | let aG = getInteger(this, (aF + "_Rating")) | |
313 | + | let y = aG | |
314 | + | if ($isInstanceOf(y, "Int")) | |
342 | 315 | then { | |
343 | - | let | |
344 | - | | |
316 | + | let z = y | |
317 | + | z | |
345 | 318 | } | |
346 | 319 | else 0 | |
347 | 320 | } | |
348 | 321 | ||
349 | 322 | ||
350 | - | func | |
323 | + | func aH (R) = if (if (if (if (if ((R == q)) | |
351 | 324 | then true | |
352 | - | else ( | |
325 | + | else (R == r)) | |
353 | 326 | then true | |
354 | - | else ( | |
327 | + | else (R == s)) | |
355 | 328 | then true | |
356 | - | else ( | |
329 | + | else (R == t)) | |
357 | 330 | then true | |
358 | - | else ( | |
359 | - | then | |
331 | + | else (R == u)) | |
332 | + | then R | |
360 | 333 | else throw("Only defined ambassadors can vote in disputes") | |
361 | 334 | ||
362 | 335 | ||
363 | - | func | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | if ($isInstanceOf( | |
336 | + | func aI (X,aJ,aK) = { | |
337 | + | let aL = ((X + "_DiputeVote_") + aJ) | |
338 | + | let aM = getString(this, aL) | |
339 | + | let aN = { | |
340 | + | let y = aM | |
341 | + | if ($isInstanceOf(y, "String")) | |
369 | 342 | then { | |
370 | - | let | |
343 | + | let z = y | |
371 | 344 | true | |
372 | 345 | } | |
373 | 346 | else false | |
374 | 347 | } | |
375 | - | if ( | |
348 | + | if (aN) | |
376 | 349 | then throw("Ambassador voted already ") | |
377 | - | else if (if (( | |
350 | + | else if (if ((aK == o)) | |
378 | 351 | then true | |
379 | - | else ( | |
380 | - | then | |
381 | - | else throw(((("Vote is incorrect. Must be: " + | |
352 | + | else (aK == p)) | |
353 | + | then aK | |
354 | + | else throw(((("Vote is incorrect. Must be: " + o) + " or ") + p)) | |
382 | 355 | } | |
383 | 356 | ||
384 | 357 | ||
385 | - | func | |
386 | - | let | |
387 | - | let | |
388 | - | if ($isInstanceOf( | |
358 | + | func aO (X) = { | |
359 | + | let aP = getInteger(this, (X + "_DisputeVotes")) | |
360 | + | let y = aP | |
361 | + | if ($isInstanceOf(y, "Int")) | |
389 | 362 | then { | |
390 | - | let | |
391 | - | | |
363 | + | let z = y | |
364 | + | z | |
392 | 365 | } | |
393 | 366 | else throw("VotesNumber was not found") | |
394 | 367 | } | |
395 | 368 | ||
396 | 369 | ||
397 | - | func | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
370 | + | func aQ (X,aR,aS,aF) = { | |
371 | + | let aT = getString(this, ((X + "_DiputeVote_") + q)) | |
372 | + | let aU = getString(this, ((X + "_DiputeVote_") + r)) | |
373 | + | let aV = getString(this, ((X + "_DiputeVote_") + s)) | |
374 | + | let aW = getString(this, ((X + "_DiputeVote_") + t)) | |
375 | + | let aX = getString(this, ((X + "_DiputeVote_") + u)) | |
376 | + | let aY = if ((aT == o)) | |
404 | 377 | then 1 | |
405 | 378 | else 0 | |
406 | - | let | |
379 | + | let aZ = if ((aU == o)) | |
407 | 380 | then 1 | |
408 | 381 | else 0 | |
409 | - | let | |
382 | + | let ba = if ((aV == o)) | |
410 | 383 | then 1 | |
411 | 384 | else 0 | |
412 | - | let | |
385 | + | let bb = if ((aW == o)) | |
413 | 386 | then 1 | |
414 | 387 | else 0 | |
415 | - | let | |
388 | + | let bc = if ((aX == o)) | |
416 | 389 | then 1 | |
417 | 390 | else 0 | |
418 | - | let | |
391 | + | let bd = if ((aR == o)) | |
419 | 392 | then 1 | |
420 | 393 | else 0 | |
421 | - | let | |
422 | - | if (( | |
423 | - | then | |
424 | - | else | |
394 | + | let be = (((((aY + aZ) + ba) + bb) + bc) + bd) | |
395 | + | if ((be > 2)) | |
396 | + | then aS | |
397 | + | else aF | |
425 | 398 | } | |
426 | 399 | ||
427 | 400 | ||
428 | - | @Callable(bn) | |
429 | - | func freelancerSignUp (bo) = { | |
430 | - | let bp = toBase58String(bn.callerPublicKey) | |
431 | - | let bq = getString(this, (bp + "_Freelancer")) | |
432 | - | if (isDefined(bq)) | |
433 | - | then throw("User already registered") | |
434 | - | else WriteSet([DataEntry((bp + "_Freelancer"), bo), DataEntry((bp + "_PendingEarnings"), 0), DataEntry((bp + "_PaidEarnings"), 0), DataEntry((bp + "_TotalEarnings"), 0), DataEntry((bp + "_JobsPending"), 0), DataEntry((bp + "_JobsCompleted"), 0), DataEntry((bp + "_JobsTotal"), 0)]) | |
401 | + | @Callable(bf) | |
402 | + | func freelancerSignUp (bg) = { | |
403 | + | let bh = toBase58String(bf.callerPublicKey) | |
404 | + | WriteSet([DataEntry((bh + "_Freelancer"), bg), DataEntry((bh + "_PendingEarnings"), 0), DataEntry((bh + "_PaidEarnings"), 0), DataEntry((bh + "_TotalEarnings"), 0), DataEntry((bh + "_JobsPending"), 0), DataEntry((bh + "_JobsCompleted"), 0), DataEntry((bh + "_JobsTotal"), 0)]) | |
435 | 405 | } | |
436 | 406 | ||
437 | 407 | ||
438 | 408 | ||
439 | - | @Callable(bn) | |
440 | - | func clientSignUp (bo) = { | |
441 | - | let bp = toBase58String(bn.callerPublicKey) | |
442 | - | let bq = getString(this, (bp + "_Client")) | |
443 | - | if (isDefined(bq)) | |
444 | - | then throw("User already registered") | |
445 | - | else WriteSet([DataEntry((bp + "_Client"), bo), DataEntry((bp + "_JobsCreated"), 0), DataEntry((bp + "_JobsOnGoing"), 0), DataEntry((bp + "_JobInDispute"), 0)]) | |
409 | + | @Callable(bf) | |
410 | + | func clientSignUp (bg) = { | |
411 | + | let bh = toBase58String(bf.callerPublicKey) | |
412 | + | WriteSet([DataEntry((bh + "_Client"), bg), DataEntry((bh + "_JobsCreated"), 0), DataEntry((bh + "_JobsOnGoing"), 0), DataEntry((bh + "_JobInDispute"), 0)]) | |
446 | 413 | } | |
447 | 414 | ||
448 | 415 | ||
449 | 416 | ||
450 | - | @Callable(bn) | |
451 | - | func createAuction (br,bs,bt,H) = { | |
452 | - | let Z = toBase58String(bn.callerPublicKey) | |
453 | - | let af = toBase58String(bn.transactionId) | |
454 | - | let ba = Y(Z) | |
455 | - | let bu = extract(bn.payment) | |
456 | - | let ad = bu.amount | |
457 | - | let S = ac(ad) | |
458 | - | let bv = height | |
459 | - | let bw = (bs * a) | |
460 | - | let bx = (br * a) | |
461 | - | let U = I(bu.assetId) | |
462 | - | let by = B((ba + "_JobsCreated")) | |
463 | - | let bz = G(H) | |
464 | - | let bA = T(U, S) | |
465 | - | WriteSet([DataEntry((af + "_State"), g), DataEntry((af + "_Info"), bt), DataEntry((af + "_AuctionClient"), ba), DataEntry((af + "_AuctionStart"), bv), DataEntry((af + "_AuctionDuration"), bw), DataEntry((af + "_JobPerformance"), bx), DataEntry((af + "_AssetName"), U), DataEntry((af + "_Price"), S), DataEntry((af + "_Category"), bz), DataEntry((U + "_Freezed"), bA), DataEntry((ba + "_JobsCreated"), (by + 1))]) | |
417 | + | @Callable(bf) | |
418 | + | func createAuction (bi,bj,bk) = { | |
419 | + | let R = toBase58String(bf.callerPublicKey) | |
420 | + | let X = toBase58String(bf.transactionId) | |
421 | + | let aS = Q(R) | |
422 | + | let bl = extract(bf.payment) | |
423 | + | let V = bl.amount | |
424 | + | let K = U(V) | |
425 | + | let bm = height | |
426 | + | let bn = (bj * a) | |
427 | + | let bo = (bi * a) | |
428 | + | let M = A(bl.assetId) | |
429 | + | let bp = v((aS + "_JobsCreated")) | |
430 | + | let bq = L(M, K) | |
431 | + | WriteSet([DataEntry((X + "_State"), g), DataEntry((X + "_Info"), bk), DataEntry((X + "_AuctionClient"), aS), DataEntry((X + "_AuctionStart"), bm), DataEntry((X + "_AuctionDuration"), bn), DataEntry((X + "_JobPerformance"), bo), DataEntry((X + "_AssetName"), M), DataEntry((X + "_Price"), K), DataEntry((M + "_Freezed"), bq), DataEntry((aS + "_JobsCreated"), (bp + 1))]) | |
466 | 432 | } | |
467 | 433 | ||
468 | 434 | ||
469 | 435 | ||
470 | - | @Callable( | |
471 | - | func makeBid ( | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | if ( | |
487 | - | then if (( | |
488 | - | then ScriptResult(WriteSet([DataEntry(( | |
489 | - | else if (( | |
436 | + | @Callable(bf) | |
437 | + | func makeBid (X,J) = { | |
438 | + | let R = toBase58String(bf.callerPublicKey) | |
439 | + | let br = W(X) | |
440 | + | let aS = Z(X) | |
441 | + | let bm = ab(X) | |
442 | + | let bs = ad(X) | |
443 | + | let aC = af(X) | |
444 | + | let D = ah(X) | |
445 | + | let K = aj(X) | |
446 | + | let bt = C(D) | |
447 | + | let av = T(R) | |
448 | + | let bu = ((K * 3) / 100) | |
449 | + | let bq = P(D, K) | |
450 | + | let au = I(J, K) | |
451 | + | let bv = E(height, bm, bs) | |
452 | + | if (bv) | |
453 | + | then if ((br == g)) | |
454 | + | then ScriptResult(WriteSet([DataEntry((X + "_State"), i), DataEntry((D + "_Freezed"), bq)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aS)), (K - bu), bt)])) | |
455 | + | else if ((br == h)) | |
490 | 456 | then { | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | ScriptResult(WriteSet([DataEntry(( | |
457 | + | let aq = an(X) | |
458 | + | let bw = ap(X, aq) | |
459 | + | let bx = ((K - bw) - bu) | |
460 | + | ScriptResult(WriteSet([DataEntry((X + "_State"), j), DataEntry((X + "_HiredFreelancer"), aq), DataEntry((X + "_Price"), bw)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aS)), bx, bt)])) | |
495 | 461 | } | |
496 | 462 | else throw("Incorrect auction state") | |
497 | - | else if (( | |
498 | - | then WriteSet([DataEntry((( | |
499 | - | else if (( | |
463 | + | else if ((br == g)) | |
464 | + | then WriteSet([DataEntry(((X + "_Bid_") + av), au), DataEntry((X + "_State"), h), DataEntry((X + "_LowestBidderPub"), R)]) | |
465 | + | else if ((br == h)) | |
500 | 466 | then { | |
501 | - | let | |
502 | - | let | |
503 | - | WriteSet([DataEntry(( | |
467 | + | let at = an(X) | |
468 | + | let by = as(X, at, au, av) | |
469 | + | WriteSet([DataEntry((X + "_LowestBidderPub"), by), DataEntry(((X + "_Bid_") + av), au)]) | |
504 | 470 | } | |
505 | - | else throw(((((("Incorrect jobId state. Now: " + | |
471 | + | else throw(((((("Incorrect jobId state. Now: " + br) + ", must be: ") + g) + " or ") + h)) | |
506 | 472 | } | |
507 | 473 | ||
508 | 474 | ||
509 | 475 | ||
510 | - | @Callable( | |
511 | - | func chooseFreelancer ( | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | if (( | |
527 | - | then if ( | |
528 | - | then if (( | |
476 | + | @Callable(bf) | |
477 | + | func chooseFreelancer (X,az) = { | |
478 | + | let R = toBase58String(bf.callerPublicKey) | |
479 | + | let br = W(X) | |
480 | + | let aS = Z(X) | |
481 | + | let bm = ab(X) | |
482 | + | let bs = ad(X) | |
483 | + | let D = ah(X) | |
484 | + | let K = aj(X) | |
485 | + | let bt = C(D) | |
486 | + | let av = ay(X, az) | |
487 | + | let bz = ap(X, av) | |
488 | + | let bv = E(height, bm, bs) | |
489 | + | let bA = v((aS + "_JobsOnGoing")) | |
490 | + | let bB = v((az + "_PendingEarnings")) | |
491 | + | let bC = v((az + "_TotalEarnings")) | |
492 | + | if ((R == aS)) | |
493 | + | then if (bv) | |
494 | + | then if ((br == g)) | |
529 | 495 | then { | |
530 | - | let | |
531 | - | let | |
532 | - | ScriptResult(WriteSet([DataEntry(( | |
496 | + | let bq = P(D, K) | |
497 | + | let bu = ((K * 3) / 100) | |
498 | + | ScriptResult(WriteSet([DataEntry((X + "_State"), i), DataEntry((D + "_Freezed"), bq)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aS)), (K - bu), bt)])) | |
533 | 499 | } | |
534 | - | else if (( | |
500 | + | else if ((br == h)) | |
535 | 501 | then { | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | ScriptResult(WriteSet([DataEntry(( | |
502 | + | let aq = an(X) | |
503 | + | let bw = ap(X, aq) | |
504 | + | let bx = (K - bw) | |
505 | + | let bq = P(D, bx) | |
506 | + | ScriptResult(WriteSet([DataEntry((X + "_State"), j), DataEntry((X + "_HiredFreelancer"), aq), DataEntry((X + "_Price"), bw), DataEntry((D + "_Freezed"), bq), DataEntry((aS + "_JobsOnGoing"), (bA + 1)), DataEntry((az + "_PendingEarnings"), (bB + bw)), DataEntry((az + "_TotalEarnings"), (bC + bw))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aS)), bx, bt)])) | |
541 | 507 | } | |
542 | 508 | else throw("Incorrect auction state") | |
543 | - | else if (if (( | |
509 | + | else if (if ((br == g)) | |
544 | 510 | then true | |
545 | - | else ( | |
511 | + | else (br == h)) | |
546 | 512 | then { | |
547 | - | let | |
548 | - | let | |
549 | - | ScriptResult(WriteSet([DataEntry(( | |
513 | + | let bx = (K - bz) | |
514 | + | let bq = P(D, bx) | |
515 | + | ScriptResult(WriteSet([DataEntry((X + "_State"), j), DataEntry((X + "_HiredFreelancer"), av), DataEntry((X + "_Price"), bz), DataEntry((D + "_Freezed"), bq), DataEntry((aS + "_JobsOnGoing"), (bA + 1)), DataEntry((az + "_PendingEarnings"), (bB + bz)), DataEntry((az + "_TotalEarnings"), (bC + bz))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aS)), (bx + 1), bt)])) | |
550 | 516 | } | |
551 | 517 | else throw("Incorrect auction state") | |
552 | 518 | else throw("Only auction customer can choose a freelancer") | |
553 | 519 | } | |
554 | 520 | ||
555 | 521 | ||
556 | 522 | ||
557 | - | @Callable( | |
558 | - | func increaseExecutionTime ( | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | if (( | |
565 | - | then if (if (if (( | |
523 | + | @Callable(bf) | |
524 | + | func increaseExecutionTime (X,aB) = { | |
525 | + | let bD = toBase58String(bf.callerPublicKey) | |
526 | + | let br = W(X) | |
527 | + | let aS = Z(X) | |
528 | + | let aC = af(X) | |
529 | + | let bE = aA(aB, aC) | |
530 | + | if ((bD == aS)) | |
531 | + | then if (if (if ((br == g)) | |
566 | 532 | then true | |
567 | - | else ( | |
533 | + | else (br == h)) | |
568 | 534 | then true | |
569 | - | else ( | |
570 | - | then WriteSet([DataEntry(( | |
535 | + | else (br == j)) | |
536 | + | then WriteSet([DataEntry((X + "_JobPerformance"), bE)]) | |
571 | 537 | else throw("Incorrect state") | |
572 | 538 | else throw("Only Client can increase execution time") | |
573 | 539 | } | |
574 | 540 | ||
575 | 541 | ||
576 | 542 | ||
577 | - | @Callable( | |
578 | - | func cancelAuction ( | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | if (( | |
589 | - | then if (( | |
590 | - | then ScriptResult(WriteSet([DataEntry(( | |
543 | + | @Callable(bf) | |
544 | + | func cancelAuction (X) = { | |
545 | + | let R = toBase58String(bf.callerPublicKey) | |
546 | + | let br = W(X) | |
547 | + | let aS = Z(X) | |
548 | + | let D = ah(X) | |
549 | + | let K = aj(X) | |
550 | + | let bt = C(D) | |
551 | + | let bu = ((K * 3) / 100) | |
552 | + | let bF = (K - bu) | |
553 | + | let bq = P(D, K) | |
554 | + | if ((R == aS)) | |
555 | + | then if ((br == g)) | |
556 | + | then ScriptResult(WriteSet([DataEntry((X + "_State"), i), DataEntry((D + "_Freezed"), bq)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aS)), bF, bt)])) | |
591 | 557 | else throw("Auction can be canceled only by auction owner.") | |
592 | 558 | else throw("Only Client can cancel auction") | |
593 | 559 | } | |
594 | 560 | ||
595 | 561 | ||
596 | 562 | ||
597 | - | @Callable( | |
598 | - | func openDispute ( | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | if (if (( | |
563 | + | @Callable(bf) | |
564 | + | func openDispute (X) = { | |
565 | + | let bD = toBase58String(bf.callerPublicKey) | |
566 | + | let br = W(X) | |
567 | + | let aS = Z(X) | |
568 | + | let aF = al(X) | |
569 | + | let bG = v((aS + "_JobsInDispute")) | |
570 | + | if (if ((br == j)) | |
605 | 571 | then true | |
606 | - | else ( | |
607 | - | then if (if (( | |
572 | + | else (br == k)) | |
573 | + | then if (if ((bD == aS)) | |
608 | 574 | then true | |
609 | - | else ( | |
610 | - | then WriteSet([DataEntry(( | |
575 | + | else (bD == aF)) | |
576 | + | then WriteSet([DataEntry((X + "_State"), m), DataEntry((X + "_DisputeVotes"), 0), DataEntry((aS + "_JobsInDispute"), (bG + 1))]) | |
611 | 577 | else throw("Only Client and Freelancer can open dispute") | |
612 | 578 | else throw("Incorrect auction state for dispute opening") | |
613 | 579 | } | |
614 | 580 | ||
615 | 581 | ||
616 | 582 | ||
617 | - | @Callable( | |
618 | - | func voteDispute ( | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | let | |
633 | - | if (( | |
634 | - | then if (( | |
583 | + | @Callable(bf) | |
584 | + | func voteDispute (X,aK) = { | |
585 | + | let R = toBase58String(bf.callerPublicKey) | |
586 | + | let br = W(X) | |
587 | + | let aS = Z(X) | |
588 | + | let D = ah(X) | |
589 | + | let K = aj(X) | |
590 | + | let aF = al(X) | |
591 | + | let bH = ((K * 3) / 100) | |
592 | + | let bt = C(D) | |
593 | + | let aJ = aH(R) | |
594 | + | let bI = aI(X, aJ, aK) | |
595 | + | let bJ = aO(X) | |
596 | + | let bG = v((aS + "_JobsInDispute")) | |
597 | + | let bB = v((aF + "_PendingEarnings")) | |
598 | + | let bC = v((aF + "_TotalEarnings")) | |
599 | + | if ((br == m)) | |
600 | + | then if ((bJ == 4)) | |
635 | 601 | then { | |
636 | - | let | |
637 | - | let | |
638 | - | if (( | |
602 | + | let bK = aQ(X, bI, aS, aF) | |
603 | + | let bq = P(D, K) | |
604 | + | if ((bK == aS)) | |
639 | 605 | then { | |
640 | - | let | |
641 | - | ScriptResult(WriteSet([DataEntry(( | |
606 | + | let bL = (K - bH) | |
607 | + | ScriptResult(WriteSet([DataEntry((X + "_DisputeVotes"), (bJ + 1)), DataEntry((X + "_State"), n), DataEntry(((X + "_DiputeVote_") + aJ), bI), DataEntry((D + "_Freezed"), bq), DataEntry((aS + "_JobsInDispute"), (bG - 1)), DataEntry((aF + "_PendingEarnings"), (bB - K)), DataEntry((aF + "_TotalEarnings"), (bC - K))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(bK)), bL, bt)])) | |
642 | 608 | } | |
643 | 609 | else { | |
644 | - | let | |
645 | - | ScriptResult(WriteSet([DataEntry(( | |
610 | + | let bL = (K - (bH * 2)) | |
611 | + | ScriptResult(WriteSet([DataEntry((X + "_DisputeVotes"), (bJ + 1)), DataEntry((X + "_State"), n), DataEntry(((X + "_DiputeVote_") + aJ), bI), DataEntry((D + "_Freezed"), bq), DataEntry((aS + "_JobsInDispute"), (bG - 1)), DataEntry((aF + "_PendingEarnings"), (bB - K))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(bK)), bL, bt)])) | |
646 | 612 | } | |
647 | 613 | } | |
648 | - | else WriteSet([DataEntry(( | |
614 | + | else WriteSet([DataEntry((X + "_DisputeVotes"), (bJ + 1)), DataEntry(((X + "_DiputeVote_") + aJ), bI)]) | |
649 | 615 | else throw(("Incorrect state. Must be: " + m)) | |
650 | 616 | } | |
651 | 617 | ||
652 | 618 | ||
653 | 619 | ||
654 | - | @Callable( | |
655 | - | func workHandOver ( | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | if (( | |
666 | - | then if (( | |
667 | - | then if ( | |
668 | - | then WriteSet([DataEntry(( | |
669 | - | else WriteSet([DataEntry(( | |
620 | + | @Callable(bf) | |
621 | + | func workHandOver (X) = { | |
622 | + | let R = toBase58String(bf.callerPublicKey) | |
623 | + | let br = W(X) | |
624 | + | let aS = Z(X) | |
625 | + | let bm = ab(X) | |
626 | + | let bs = ad(X) | |
627 | + | let aC = af(X) | |
628 | + | let aF = al(X) | |
629 | + | let bM = ((height - bm) > aC) | |
630 | + | let bG = v((aS + "_JobsInDispute")) | |
631 | + | if ((R == aF)) | |
632 | + | then if ((br == j)) | |
633 | + | then if (bM) | |
634 | + | then WriteSet([DataEntry((X + "_State"), m), DataEntry((X + "_DisputeVotes"), "0"), DataEntry((aS + "_JobInDispute"), (bG + 1))]) | |
635 | + | else WriteSet([DataEntry((X + "_State"), k)]) | |
670 | 636 | else throw("Auction state is incorrect") | |
671 | 637 | else throw("Only a freelancer can indicate that the work is done") | |
672 | 638 | } | |
673 | 639 | ||
674 | 640 | ||
675 | 641 | ||
676 | - | @Callable( | |
677 | - | func acceptWork ( | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | let | |
685 | - | let | |
686 | - | let | |
687 | - | let | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | if (( | |
695 | - | then if (( | |
696 | - | then ScriptResult(WriteSet([DataEntry(( | |
642 | + | @Callable(bf) | |
643 | + | func acceptWork (X) = { | |
644 | + | let R = toBase58String(bf.callerPublicKey) | |
645 | + | let br = W(X) | |
646 | + | let aS = Z(X) | |
647 | + | let bm = ab(X) | |
648 | + | let bs = ad(X) | |
649 | + | let D = ah(X) | |
650 | + | let K = aj(X) | |
651 | + | let aF = al(X) | |
652 | + | let bA = v((aS + "_JobsOnGoing")) | |
653 | + | let bB = v((aF + "_PendingEarnings")) | |
654 | + | let bN = v((aF + "_PaidEarnings")) | |
655 | + | let bu = ((K * 3) / 100) | |
656 | + | let bF = (K - (bu * 2)) | |
657 | + | let bt = C(D) | |
658 | + | let bq = P(D, K) | |
659 | + | let bO = aE(aF) | |
660 | + | if ((R == aS)) | |
661 | + | then if ((br == k)) | |
662 | + | then ScriptResult(WriteSet([DataEntry((X + "_State"), l), DataEntry((aF + "_Rating"), (bO + 1)), DataEntry((D + "_Freezed"), bq), DataEntry((aS + "_JobsOnGoing"), (bA - 1)), DataEntry((aF + "_PendingEarnings"), (bB - K)), DataEntry((aF + "_PaidEarnings"), (bN + K))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aF)), bF, bt)])) | |
697 | 663 | else throw(("Incorrect state. Must be: " + k)) | |
698 | 664 | else throw("Only auction customer can use this function") | |
699 | 665 | } | |
700 | 666 | ||
701 | 667 | ||
702 | - | @Verifier( | |
703 | - | func | |
668 | + | @Verifier(bP) | |
669 | + | func bQ () = if (sigVerify(bP.bodyBytes, bP.proofs[0], bP.senderPublicKey)) | |
704 | 670 | then { | |
705 | - | let | |
706 | - | if ($isInstanceOf( | |
671 | + | let y = bP | |
672 | + | if ($isInstanceOf(y, "TransferTransaction")) | |
707 | 673 | then { | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | let | |
713 | - | if ($isInstanceOf( | |
674 | + | let bR = y | |
675 | + | let bS = A(bR.assetId) | |
676 | + | let bT = getInteger(this, (bS + "_Reserved")) | |
677 | + | let bU = { | |
678 | + | let bV = bT | |
679 | + | if ($isInstanceOf(bV, "Int")) | |
714 | 680 | then { | |
715 | - | let | |
716 | - | | |
681 | + | let z = bV | |
682 | + | z | |
717 | 683 | } | |
718 | 684 | else 0 | |
719 | 685 | } | |
720 | - | let | |
721 | - | ( | |
686 | + | let bW = (assetBalance(this, bR.assetId) - bU) | |
687 | + | (bW >= bR.amount) | |
722 | 688 | } | |
723 | - | else if ($isInstanceOf( | |
689 | + | else if ($isInstanceOf(y, "SetScriptTransaction")) | |
724 | 690 | then { | |
725 | - | let | |
691 | + | let bX = y | |
726 | 692 | true | |
727 | 693 | } | |
728 | 694 | else false | |
729 | 695 | } | |
730 | 696 | else false | |
731 | 697 |
github/deemru/w8io/026f985 221.41 ms ◑