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