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