tx · FePiXoA2RFyePt7v3AAci7iSCNXhVj4Ag8VD65Vv6vkH 3NCBtz3MDVBU6G54EAvHRRQ6k2YE6TCuPUv: -0.01500000 Waves 2019.09.29 16:22 [697779] smart account 3NCBtz3MDVBU6G54EAvHRRQ6k2YE6TCuPUv > SELF 0.00000000 Waves
{ "type": 13, "id": "FePiXoA2RFyePt7v3AAci7iSCNXhVj4Ag8VD65Vv6vkH", "fee": 1500000, "feeAssetId": null, "timestamp": 1569763370972, "version": 1, "sender": "3NCBtz3MDVBU6G54EAvHRRQ6k2YE6TCuPUv", "senderPublicKey": "9ft3D8mA7Qj2tvLPBg2resprWt2Gj2yvuanKNshrY6xb", "proofs": [ "3wu4tqMHuFoLgkKn8cxrM7fvnzcJEcx33ECZrNM3kfYA9XgNsvgHg8hPhti1F3JpuqzAotjxd6zxxzTyVNkQQ5B5" ], "script": "base64:AAIDAAAAAAAAAD8IARIDCgEIEgMKAQgSBQoDAQEIEgQKAggBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgAAAAjAAAAAANkYXkAAAAAAAAABaAAAAAABVdBVkVTBQAAAAR1bml0AAAAAAR3QlRDAQAAACBs+mr/xe2qjAt/tSqT0qIML4KC23R6BIxT+/0TH3Og/wAAAAAEd0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABHdVU0QBAAAAIN0cvQHwz3UFMHgHsqi2OJjRRd1cH7ozWuNAb/pmWXD9AAAAAAlzdGF0ZU9wZW4CAAAABk9wZW5lZAAAAAAOc3RhdGVTdWdnZXN0ZWQCAAAACVN1Z2dlc3RlZAAAAAALc3RhdGVDYW5jZWwCAAAACENhbmNlbGVkAAAAAA9zdGF0ZUluUHJvZ3Jlc3MCAAAACkluUHJvZ3Jlc3MAAAAAEXN0YXRlV2FpdDRDb25maXJtAgAAABNXYWl0Rm9yQ29uZmlybWF0aW9uAAAAAA1zdGF0ZUNvbXBsZXRlAgAAAAlD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AIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAN0dHgFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwBgcHJ5u+KQ==", "chainId": 84, "height": 697779, "spentComplexity": 0 } View: original | compacted Prev: AMAjavsEWaNWXhrJS5wktiNwYV5jk3oxp6QQjJVKg1BD Next: Bmx2sW7boaYrPAWkXw2pRc7ukuZ2jjpqhtBk4iERqoRC Diff:
Old | New | Differences | |
---|---|---|---|
44 | 44 | func u (v) = (v + "_AuctionData") | |
45 | 45 | ||
46 | 46 | ||
47 | - | func w (v) = { | |
48 | - | let x = getString(this, v) | |
49 | - | let y = { | |
50 | - | let z = x | |
51 | - | if ($isInstanceOf(z, "String")) | |
52 | - | then { | |
53 | - | let y = z | |
54 | - | y | |
55 | - | } | |
56 | - | else throw("AuctionId was not found") | |
57 | - | } | |
58 | - | split(y, "_") | |
59 | - | } | |
60 | - | ||
61 | - | ||
62 | - | func A (v) = { | |
63 | - | let B = ((v + "_") + l) | |
64 | - | let C = getString(this, B) | |
65 | - | let y = { | |
66 | - | let z = C | |
67 | - | if ($isInstanceOf(z, "String")) | |
68 | - | then { | |
69 | - | let y = z | |
70 | - | y | |
71 | - | } | |
72 | - | else throw("Dispute data was not found") | |
73 | - | } | |
74 | - | split(y, "/") | |
75 | - | } | |
76 | - | ||
77 | - | ||
78 | - | func D (E) = if ((E == "WAVES")) | |
47 | + | func w (x) = if ((x == "WAVES")) | |
79 | 48 | then b | |
80 | - | else if (( | |
49 | + | else if ((x == "BTC")) | |
81 | 50 | then c | |
82 | - | else if (( | |
51 | + | else if ((x == "EUR")) | |
83 | 52 | then d | |
84 | - | else if (( | |
53 | + | else if ((x == "USD")) | |
85 | 54 | then e | |
86 | 55 | else throw("Incorrect Asset Id") | |
87 | 56 | ||
88 | 57 | ||
89 | - | func | |
58 | + | func y (z,A,B) = ((z - A) > B) | |
90 | 59 | ||
91 | 60 | ||
92 | - | func | |
93 | - | let | |
94 | - | let | |
95 | - | let | |
96 | - | if ($isInstanceOf( | |
61 | + | func C (D,E) = { | |
62 | + | let F = getInteger(this, (D + "_Freezed")) | |
63 | + | let G = { | |
64 | + | let H = F | |
65 | + | if ($isInstanceOf(H, "Int")) | |
97 | 66 | then { | |
98 | - | let | |
99 | - | | |
67 | + | let I = H | |
68 | + | I | |
100 | 69 | } | |
101 | 70 | else 0 | |
102 | 71 | } | |
103 | - | ( | |
72 | + | (G + E) | |
104 | 73 | } | |
105 | 74 | ||
106 | 75 | ||
107 | - | func | |
108 | - | let | |
109 | - | let | |
110 | - | let | |
111 | - | if ($isInstanceOf( | |
76 | + | func J (D,E) = { | |
77 | + | let F = getInteger(this, (D + "_Freezed")) | |
78 | + | let G = { | |
79 | + | let H = F | |
80 | + | if ($isInstanceOf(H, "Int")) | |
112 | 81 | then { | |
113 | - | let | |
114 | - | | |
82 | + | let I = H | |
83 | + | I | |
115 | 84 | } | |
116 | 85 | else 0 | |
117 | 86 | } | |
118 | - | let | |
119 | - | if (( | |
120 | - | then | |
87 | + | let I = (G - E) | |
88 | + | if ((I > 0)) | |
89 | + | then I | |
121 | 90 | else throw("Freezed amount couldn't be less than 0") | |
122 | 91 | } | |
123 | 92 | ||
124 | 93 | ||
125 | - | func | |
126 | - | let | |
127 | - | let | |
128 | - | if ($isInstanceOf( | |
94 | + | func K (L) = { | |
95 | + | let K = getString(this, (L + "_Freelancer")) | |
96 | + | let H = K | |
97 | + | if ($isInstanceOf(H, "String")) | |
129 | 98 | then { | |
130 | - | let | |
131 | - | | |
99 | + | let I = H | |
100 | + | L | |
132 | 101 | } | |
133 | 102 | else throw("Only registered users can make bets") | |
134 | 103 | } | |
135 | 104 | ||
136 | 105 | ||
137 | - | @Callable(R) | |
138 | - | func freelancerSignUp (S) = { | |
139 | - | let T = toBase58String(R.callerPublicKey) | |
140 | - | let U = getString(this, (T + "_Freelancer")) | |
141 | - | if (isDefined(U)) | |
106 | + | func M (N) = if ((N > 0)) | |
107 | + | then N | |
108 | + | else throw("Amount must be higher then 0") | |
109 | + | ||
110 | + | ||
111 | + | func O (v) = { | |
112 | + | let P = getString(this, (v + "_State")) | |
113 | + | let H = P | |
114 | + | if ($isInstanceOf(H, "String")) | |
115 | + | then { | |
116 | + | let I = H | |
117 | + | I | |
118 | + | } | |
119 | + | else throw("Auction State was not found") | |
120 | + | } | |
121 | + | ||
122 | + | ||
123 | + | func Q (v) = { | |
124 | + | let R = getString(this, (v + "_Client")) | |
125 | + | let I = { | |
126 | + | let H = R | |
127 | + | if ($isInstanceOf(H, "String")) | |
128 | + | then { | |
129 | + | let I = H | |
130 | + | I | |
131 | + | } | |
132 | + | else throw("Auction Client was not found") | |
133 | + | } | |
134 | + | fromBase58String(I) | |
135 | + | } | |
136 | + | ||
137 | + | ||
138 | + | func S (v) = { | |
139 | + | let T = getInteger(this, (v + "_AuctionStart")) | |
140 | + | let H = T | |
141 | + | if ($isInstanceOf(H, "Int")) | |
142 | + | then { | |
143 | + | let I = H | |
144 | + | I | |
145 | + | } | |
146 | + | else throw("Auction Start time was not found") | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | func U (v) = { | |
151 | + | let V = getInteger(this, (v + "_AuctionDuration")) | |
152 | + | let H = V | |
153 | + | if ($isInstanceOf(H, "Int")) | |
154 | + | then { | |
155 | + | let I = H | |
156 | + | I | |
157 | + | } | |
158 | + | else throw("Auction duration time was not found") | |
159 | + | } | |
160 | + | ||
161 | + | ||
162 | + | func W (v) = { | |
163 | + | let X = getInteger(this, (v + "_JobPerformance")) | |
164 | + | let H = X | |
165 | + | if ($isInstanceOf(H, "Int")) | |
166 | + | then { | |
167 | + | let I = H | |
168 | + | I | |
169 | + | } | |
170 | + | else throw("Auction job performance time was not found") | |
171 | + | } | |
172 | + | ||
173 | + | ||
174 | + | func Y (v) = { | |
175 | + | let Z = getString(this, (v + "_AssetName")) | |
176 | + | let H = Z | |
177 | + | if ($isInstanceOf(H, "String")) | |
178 | + | then { | |
179 | + | let I = H | |
180 | + | I | |
181 | + | } | |
182 | + | else throw("Auction asset name was not found") | |
183 | + | } | |
184 | + | ||
185 | + | ||
186 | + | func aa (v) = { | |
187 | + | let ab = getInteger(this, (v + "_Price")) | |
188 | + | let H = ab | |
189 | + | if ($isInstanceOf(H, "Int")) | |
190 | + | then { | |
191 | + | let I = H | |
192 | + | I | |
193 | + | } | |
194 | + | else throw("Auction price was not found") | |
195 | + | } | |
196 | + | ||
197 | + | ||
198 | + | func ac (v) = { | |
199 | + | let R = getString(this, (v + "_Freelancer")) | |
200 | + | let I = { | |
201 | + | let H = R | |
202 | + | if ($isInstanceOf(H, "String")) | |
203 | + | then { | |
204 | + | let I = H | |
205 | + | I | |
206 | + | } | |
207 | + | else throw("Auction Client was not found") | |
208 | + | } | |
209 | + | fromBase58String(I) | |
210 | + | } | |
211 | + | ||
212 | + | ||
213 | + | @Callable(ad) | |
214 | + | func freelancerSignUp (ae) = { | |
215 | + | let af = toBase58String(ad.callerPublicKey) | |
216 | + | let ag = getString(this, (af + "_Freelancer")) | |
217 | + | if (isDefined(ag)) | |
142 | 218 | then throw("User already registered") | |
143 | - | else WriteSet([DataEntry(( | |
219 | + | else WriteSet([DataEntry((af + "_Freelancer"), ae)]) | |
144 | 220 | } | |
145 | 221 | ||
146 | 222 | ||
147 | 223 | ||
148 | - | @Callable( | |
149 | - | func clientSignUp ( | |
150 | - | let | |
151 | - | let | |
152 | - | if (isDefined( | |
224 | + | @Callable(ad) | |
225 | + | func clientSignUp (ae) = { | |
226 | + | let af = toBase58String(ad.callerPublicKey) | |
227 | + | let ag = getString(this, (af + "_Client")) | |
228 | + | if (isDefined(ag)) | |
153 | 229 | then throw("User already registered") | |
154 | - | else WriteSet([DataEntry(( | |
230 | + | else WriteSet([DataEntry((af + "_Client"), ae)]) | |
155 | 231 | } | |
156 | 232 | ||
157 | 233 | ||
158 | 234 | ||
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 | |
167 | - | else throw("Amount must be higher then 0") | |
168 | - | let ab = height | |
169 | - | let ac = (W * a) | |
170 | - | let ad = (V * a) | |
171 | - | let K = if (!(isDefined(Z.assetId))) | |
235 | + | @Callable(ad) | |
236 | + | func createAuction (ah,ai,aj) = { | |
237 | + | let v = toBase58String(ad.transactionId) | |
238 | + | let ak = toBase58String(ad.callerPublicKey) | |
239 | + | let al = extract(ad.payment) | |
240 | + | let N = al.amount | |
241 | + | let E = M(N) | |
242 | + | let am = height | |
243 | + | let an = (ai * a) | |
244 | + | let ao = (ah * a) | |
245 | + | let D = if (!(isDefined(al.assetId))) | |
172 | 246 | then "WAVES" | |
173 | - | else if (( | |
247 | + | else if ((al.assetId == c)) | |
174 | 248 | then "BTC" | |
175 | - | else if (( | |
249 | + | else if ((al.assetId == d)) | |
176 | 250 | then "EUR" | |
177 | - | else if (( | |
251 | + | else if ((al.assetId == e)) | |
178 | 252 | then "USD" | |
179 | 253 | else throw("AssetId is incorrect") | |
180 | - | let | |
181 | - | WriteSet([DataEntry((v + "_State"), f), DataEntry((v + "_Info"), | |
254 | + | let ap = C(D, E) | |
255 | + | WriteSet([DataEntry((v + "_State"), f), DataEntry((v + "_Info"), aj), DataEntry((v + "_Client"), ak), DataEntry((v + "_AuctionStart"), am), DataEntry((v + "_AuctionDuration"), an), DataEntry((v + "_JobPerformance"), ao), DataEntry((v + "_AssetName"), D), DataEntry((v + "_Price"), E), DataEntry((D + "_Freezed"), ap)]) | |
182 | 256 | } | |
183 | 257 | ||
184 | 258 | ||
185 | 259 | ||
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")) | |
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) | |
266 | + | let am = S(v) | |
267 | + | let at = U(v) | |
268 | + | 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)) | |
215 | 280 | then { | |
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")) | |
281 | + | let az = { | |
282 | + | let aA = getString(this, (v + "_LowestBidderPub")) | |
283 | + | let H = aA | |
284 | + | if ($isInstanceOf(H, "String")) | |
287 | 285 | then { | |
288 | - | let | |
289 | - | | |
286 | + | let I = H | |
287 | + | I | |
290 | 288 | } | |
291 | 289 | else throw("Auction lowest bidder was not found") | |
292 | 290 | } | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | if ($isInstanceOf( | |
291 | + | let aB = { | |
292 | + | let aC = getInteger(this, ((v + "_Bid_") + az)) | |
293 | + | let H = aC | |
294 | + | if ($isInstanceOf(H, "Int")) | |
297 | 295 | then { | |
298 | - | let | |
299 | - | | |
296 | + | let I = H | |
297 | + | I | |
300 | 298 | } | |
301 | 299 | else throw("Auction lowest bid was not found") | |
302 | 300 | } | |
303 | - | let | |
304 | - | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), | |
301 | + | let aD = ((E - aB) - ax) | |
302 | + | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), az), DataEntry((v + "_Price"), aB)]), TransferSet([ScriptTransfer(addressFromPublicKey(ak), aD, av)])) | |
305 | 303 | } | |
306 | 304 | else throw("Incorrect auction state") | |
307 | - | else if (( | |
308 | - | then WriteSet([DataEntry(((v + "_Bid_") + | |
309 | - | else if (( | |
305 | + | else if ((as == f)) | |
306 | + | then WriteSet([DataEntry(((v + "_Bid_") + aw), aq), DataEntry((v + "_State"), g), DataEntry((v + "_LowestBidderPub"), L)]) | |
307 | + | else if ((as == g)) | |
310 | 308 | then { | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | if ($isInstanceOf( | |
309 | + | let aE = { | |
310 | + | let aF = getString(this, (v + "_LowestBidderPub")) | |
311 | + | let H = aF | |
312 | + | if ($isInstanceOf(H, "String")) | |
315 | 313 | then { | |
316 | - | let | |
317 | - | | |
314 | + | let I = H | |
315 | + | I | |
318 | 316 | } | |
319 | 317 | else throw("Auction lowest bidder was not found") | |
320 | 318 | } | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | if ($isInstanceOf( | |
319 | + | let aG = { | |
320 | + | let aH = getInteger(this, ((v + "_Bid_") + aE)) | |
321 | + | let aI = { | |
322 | + | let H = aH | |
323 | + | if ($isInstanceOf(H, "Int")) | |
326 | 324 | then { | |
327 | - | let | |
328 | - | | |
325 | + | let I = H | |
326 | + | I | |
329 | 327 | } | |
330 | 328 | else throw("Auction lowest bid was not found") | |
331 | 329 | } | |
332 | - | if (( | |
333 | - | then | |
334 | - | else | |
330 | + | if ((aI > aq)) | |
331 | + | then aw | |
332 | + | else aE | |
335 | 333 | } | |
336 | - | WriteSet([DataEntry((v + "_LowestBidderPub"), | |
334 | + | WriteSet([DataEntry((v + "_LowestBidderPub"), aG), DataEntry(((v + "_Bid_") + aw), aq)]) | |
337 | 335 | } | |
338 | - | else throw(((((("Incorrect jobId state. Now: " + | |
336 | + | else throw(((((("Incorrect jobId state. Now: " + as) + ", must be: ") + f) + " or ") + g)) | |
339 | 337 | } | |
340 | 338 | ||
341 | 339 | ||
342 | 340 | ||
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")) | |
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 | + | 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")) | |
351 | 357 | 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 + "_Bid_") + aG) | |
413 | - | let aJ = getInteger(this, aI) | |
414 | - | let z = aJ | |
415 | - | if ($isInstanceOf(z, "Int")) | |
416 | - | then { | |
417 | - | let y = z | |
418 | - | y | |
358 | + | let I = H | |
359 | + | I | |
419 | 360 | } | |
420 | 361 | else throw("Freelancer's bet was not found") | |
421 | 362 | } | |
422 | - | let au = ((L * 3) / 100) | |
423 | - | let aA = ((L - aH) - au) | |
424 | - | let av = F(ag, ab, am) | |
425 | - | if ((Q == Y)) | |
426 | - | then if (av) | |
427 | - | then if ((ah == f)) | |
363 | + | let ax = ((aK * 3) / 100) | |
364 | + | let ay = y(ar, am, at) | |
365 | + | if ((L == ak)) | |
366 | + | then if (ay) | |
367 | + | then if ((as == f)) | |
428 | 368 | then { | |
429 | - | let aK = (L - au) | |
430 | - | let ae = O(E, aK) | |
431 | - | ScriptResult(WriteSet([DataEntry((v + "_State"), h), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), aK, as)])) | |
369 | + | let ap = J(x, E) | |
370 | + | ScriptResult(WriteSet([DataEntry((v + "_State"), h), DataEntry((x + "_Freezed"), ap)]), TransferSet([ScriptTransfer(addressFromPublicKey(ak), (E - ax), av)])) | |
432 | 371 | } | |
433 | - | else if (( | |
372 | + | else if ((as == g)) | |
434 | 373 | then { | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | if ($isInstanceOf( | |
374 | + | let az = { | |
375 | + | let aA = getString(this, (v + "_LowestBidderPub")) | |
376 | + | let H = aA | |
377 | + | if ($isInstanceOf(H, "String")) | |
439 | 378 | then { | |
440 | - | let | |
441 | - | | |
379 | + | let I = H | |
380 | + | I | |
442 | 381 | } | |
443 | 382 | else throw("Auction lowest bidder was not found") | |
444 | 383 | } | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | if ($isInstanceOf( | |
384 | + | let aB = { | |
385 | + | let aC = getInteger(this, ((v + "_Bid_") + az)) | |
386 | + | let H = aC | |
387 | + | if ($isInstanceOf(H, "Int")) | |
449 | 388 | then { | |
450 | - | let | |
451 | - | | |
389 | + | let I = H | |
390 | + | I | |
452 | 391 | } | |
453 | 392 | else throw("Auction lowest bid was not found") | |
454 | 393 | } | |
455 | - | WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aw), DataEntry((v + "_Price"), ay)]) | |
394 | + | let aD = (E - aB) | |
395 | + | let ap = J(x, aD) | |
396 | + | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), az), DataEntry((v + "_Price"), aB), DataEntry((x + "_Freezed"), ap)]), TransferSet([ScriptTransfer(addressFromPublicKey(ak), aD, av)])) | |
456 | 397 | } | |
457 | 398 | else throw("Incorrect auction state") | |
458 | 399 | else { | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | if ($isInstanceOf( | |
400 | + | let aN = { | |
401 | + | let aw = getInteger(this, ((v + "_Bid_") + aJ)) | |
402 | + | let H = aw | |
403 | + | if ($isInstanceOf(H, "Int")) | |
463 | 404 | then { | |
464 | - | let | |
465 | - | | |
405 | + | let I = H | |
406 | + | aJ | |
466 | 407 | } | |
467 | 408 | else throw("Error: Incorrect freelancerPub") | |
468 | 409 | } | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | if ($isInstanceOf( | |
410 | + | let aB = { | |
411 | + | let aO = getInteger(this, ((v + "_Bid_") + aJ)) | |
412 | + | let H = aO | |
413 | + | if ($isInstanceOf(H, "Int")) | |
473 | 414 | then { | |
474 | - | let | |
475 | - | | |
415 | + | let I = H | |
416 | + | I | |
476 | 417 | } | |
477 | 418 | else throw("Auction lowest bidder was not found") | |
478 | 419 | } | |
479 | - | let ae = O(E, aM) | |
480 | - | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aL), DataEntry((v + "_Price"), aM), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), aA, as)])) | |
420 | + | let aD = (E - aK) | |
421 | + | let ap = J(x, aD) | |
422 | + | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aN), DataEntry((v + "_Price"), aB), DataEntry((x + "_Freezed"), ap)]), TransferSet([ScriptTransfer(addressFromPublicKey(ak), (aD - ax), av)])) | |
481 | 423 | } | |
482 | 424 | else throw("Only auction customer can choose a freelancer") | |
483 | 425 | } | |
484 | 426 | ||
485 | 427 | ||
486 | 428 | ||
487 | - | @Callable(R) | |
488 | - | func increaseExecutionTime (v,aO) = { | |
489 | - | let aP = extract(R.callerPublicKey) | |
490 | - | let ah = { | |
491 | - | let ai = getString(this, (v + "_State")) | |
492 | - | let z = ai | |
493 | - | if ($isInstanceOf(z, "String")) | |
494 | - | then { | |
495 | - | let y = z | |
496 | - | y | |
497 | - | } | |
498 | - | else throw("Auction State was not found") | |
499 | - | } | |
500 | - | let Y = { | |
501 | - | let ak = getString(this, (v + "_Client")) | |
502 | - | let y = { | |
503 | - | let z = ak | |
504 | - | if ($isInstanceOf(z, "String")) | |
505 | - | then { | |
506 | - | let y = z | |
507 | - | y | |
508 | - | } | |
509 | - | else throw("Auction Client was not found") | |
510 | - | } | |
511 | - | fromBase58String(y) | |
512 | - | } | |
513 | - | let aQ = { | |
514 | - | let ap = getInteger(this, (v + "JobPerformance")) | |
515 | - | let z = ap | |
516 | - | if ($isInstanceOf(z, "Int")) | |
517 | - | then { | |
518 | - | let y = z | |
519 | - | y | |
520 | - | } | |
521 | - | else throw("Auction job performance time was not found") | |
522 | - | } | |
429 | + | @Callable(ad) | |
430 | + | func increaseExecutionTime (v,aP) = { | |
431 | + | let aQ = extract(ad.callerPublicKey) | |
432 | + | let as = O(v) | |
433 | + | let ak = Q(v) | |
434 | + | let au = W(v) | |
523 | 435 | let aR = { | |
524 | - | let aS = ( | |
525 | - | if ((aS > | |
436 | + | let aS = (aP * a) | |
437 | + | if ((aS > au)) | |
526 | 438 | then aS | |
527 | 439 | else throw("New execution time must more than current execution time") | |
528 | 440 | } | |
529 | - | if (( | |
530 | - | then if (if (if (( | |
441 | + | if ((aQ == ak)) | |
442 | + | then if (if (if ((as == f)) | |
531 | 443 | then true | |
532 | - | else ( | |
444 | + | else (as == g)) | |
533 | 445 | then true | |
534 | - | else ( | |
446 | + | else (as == i)) | |
535 | 447 | then WriteSet([DataEntry((v + "_JobPerformance"), aR)]) | |
536 | 448 | else throw("Incorrect state") | |
537 | 449 | else throw("Only Client can increase execution time") | |
539 | 451 | ||
540 | 452 | ||
541 | 453 | ||
542 | - | @Callable( | |
454 | + | @Callable(ad) | |
543 | 455 | func cancelAuction (v) = { | |
544 | - | let Q = extract(R.callerPublicKey) | |
545 | - | let ah = { | |
546 | - | let ai = getString(this, (v + "_State")) | |
547 | - | let z = ai | |
548 | - | if ($isInstanceOf(z, "String")) | |
549 | - | then { | |
550 | - | let y = z | |
551 | - | y | |
552 | - | } | |
553 | - | else throw("Auction State was not found") | |
554 | - | } | |
555 | - | let Y = { | |
556 | - | let ak = getString(this, (v + "_Client")) | |
557 | - | let y = { | |
558 | - | let z = ak | |
559 | - | if ($isInstanceOf(z, "String")) | |
560 | - | then { | |
561 | - | let y = z | |
562 | - | y | |
563 | - | } | |
564 | - | else throw("Auction Client was not found") | |
565 | - | } | |
566 | - | fromBase58String(y) | |
567 | - | } | |
568 | - | let aT = if ((Q == Y)) | |
456 | + | let L = extract(ad.callerPublicKey) | |
457 | + | let as = O(v) | |
458 | + | let ak = Q(v) | |
459 | + | let x = Y(v) | |
460 | + | let E = aa(v) | |
461 | + | let av = w(x) | |
462 | + | let ax = ((E * 3) / 100) | |
463 | + | let aT = (E - ax) | |
464 | + | let ap = J(x, E) | |
465 | + | let aU = if ((L == ak)) | |
569 | 466 | then true | |
570 | - | else throw("Auction can be canceled only by owner.") | |
571 | - | if ( | |
572 | - | then if (( | |
573 | - | then WriteSet([DataEntry((v + "_State"), h)]) | |
467 | + | else throw("Auction can be canceled only by auction owner.") | |
468 | + | if (aU) | |
469 | + | then if ((as == f)) | |
470 | + | then ScriptResult(WriteSet([DataEntry((v + "_State"), h), DataEntry((x + "_Freezed"), ap)]), TransferSet([ScriptTransfer(addressFromPublicKey(ak), aT, av)])) | |
574 | 471 | else throw("Incorrect auction state.") | |
575 | 472 | else throw("Only Client can cancel auction") | |
576 | 473 | } | |
577 | 474 | ||
578 | 475 | ||
579 | 476 | ||
580 | - | @Callable( | |
477 | + | @Callable(ad) | |
581 | 478 | func openDispute (v) = { | |
582 | - | let aP = extract(R.callerPublicKey) | |
583 | - | let ah = { | |
584 | - | let ai = getString(this, (v + "_State")) | |
585 | - | let z = ai | |
586 | - | if ($isInstanceOf(z, "String")) | |
587 | - | then { | |
588 | - | let y = z | |
589 | - | y | |
590 | - | } | |
591 | - | else throw("Auction State was not found") | |
592 | - | } | |
593 | - | let Y = { | |
594 | - | let ak = getString(this, (v + "_Client")) | |
595 | - | let y = { | |
596 | - | let z = ak | |
597 | - | if ($isInstanceOf(z, "String")) | |
598 | - | then { | |
599 | - | let y = z | |
600 | - | y | |
601 | - | } | |
602 | - | else throw("Auction Client was not found") | |
603 | - | } | |
604 | - | fromBase58String(y) | |
605 | - | } | |
606 | - | let aU = { | |
607 | - | let ak = getString(this, (v + "_Freelancer")) | |
608 | - | let y = { | |
609 | - | let z = ak | |
610 | - | if ($isInstanceOf(z, "String")) | |
611 | - | then { | |
612 | - | let y = z | |
613 | - | y | |
614 | - | } | |
615 | - | else throw("Auction Client was not found") | |
616 | - | } | |
617 | - | fromBase58String(y) | |
618 | - | } | |
619 | - | if (if ((ah == f)) | |
479 | + | let aQ = extract(ad.callerPublicKey) | |
480 | + | let as = O(v) | |
481 | + | let ak = Q(v) | |
482 | + | let aV = ac(v) | |
483 | + | if (if ((as == f)) | |
620 | 484 | then true | |
621 | - | else ( | |
485 | + | else (as == g)) | |
622 | 486 | then throw("Incorrect auction state for dispute opening") | |
623 | - | else if (if (( | |
487 | + | else if (if ((aQ == ak)) | |
624 | 488 | then true | |
625 | - | else ( | |
489 | + | else (aQ == aV)) | |
626 | 490 | then WriteSet([DataEntry((v + "_State"), l), DataEntry((v + "_DisputeVotes"), 0)]) | |
627 | 491 | else throw("Only customer and freelancer can open dispute") | |
628 | 492 | } | |
629 | 493 | ||
630 | 494 | ||
631 | 495 | ||
632 | - | @Callable(R) | |
633 | - | func voteDispute (v,aV) = { | |
634 | - | let Q = extract(R.callerPublicKey) | |
635 | - | let ah = { | |
636 | - | let ai = getString(this, (v + "_State")) | |
637 | - | let z = ai | |
638 | - | if ($isInstanceOf(z, "String")) | |
496 | + | @Callable(ad) | |
497 | + | func voteDispute (v,aW) = { | |
498 | + | let L = extract(ad.callerPublicKey) | |
499 | + | let as = O(v) | |
500 | + | let ak = Q(v) | |
501 | + | let x = Y(v) | |
502 | + | let E = aa(v) | |
503 | + | let aV = ac(v) | |
504 | + | let aX = ((E * 3) / 100) | |
505 | + | let av = w(x) | |
506 | + | let aY = if (if (if (if (if ((L == p)) | |
507 | + | then true | |
508 | + | else (L == q)) | |
509 | + | then true | |
510 | + | else (L == r)) | |
511 | + | then true | |
512 | + | else (L == s)) | |
513 | + | then true | |
514 | + | else (L == t)) | |
515 | + | then toBase58String(L) | |
516 | + | else throw("Only defined ambassadors can vote in disputes") | |
517 | + | let aZ = if (if ((aW == n)) | |
518 | + | then true | |
519 | + | else (aW == o)) | |
520 | + | then aW | |
521 | + | else throw(((("Vote is incorrect. Must be: " + n) + " or ") + o)) | |
522 | + | let ba = { | |
523 | + | let bb = ((v + "_DiputeVote_") + aY) | |
524 | + | let bc = getString(this, bb) | |
525 | + | let H = bc | |
526 | + | if ($isInstanceOf(H, "String")) | |
639 | 527 | then { | |
640 | - | let y = z | |
641 | - | y | |
642 | - | } | |
643 | - | else throw("Auction State was not found") | |
644 | - | } | |
645 | - | let Y = { | |
646 | - | let ak = getString(this, (v + "_Client")) | |
647 | - | let y = { | |
648 | - | let z = ak | |
649 | - | if ($isInstanceOf(z, "String")) | |
650 | - | then { | |
651 | - | let y = z | |
652 | - | y | |
653 | - | } | |
654 | - | else throw("Auction Client was not found") | |
655 | - | } | |
656 | - | fromBase58String(y) | |
657 | - | } | |
658 | - | let E = { | |
659 | - | let aq = getString(this, (v + "_AssetName")) | |
660 | - | let z = aq | |
661 | - | if ($isInstanceOf(z, "String")) | |
662 | - | then { | |
663 | - | let y = z | |
664 | - | y | |
665 | - | } | |
666 | - | else throw("Auction asset name was not found") | |
667 | - | } | |
668 | - | let L = { | |
669 | - | let ar = getInteger(this, (v + "_Price")) | |
670 | - | let z = ar | |
671 | - | if ($isInstanceOf(z, "Int")) | |
672 | - | then { | |
673 | - | let y = z | |
674 | - | y | |
675 | - | } | |
676 | - | else throw("Auction price was not found") | |
677 | - | } | |
678 | - | let aU = { | |
679 | - | let ak = getString(this, (v + "_Freelancer")) | |
680 | - | let y = { | |
681 | - | let z = ak | |
682 | - | if ($isInstanceOf(z, "String")) | |
683 | - | then { | |
684 | - | let y = z | |
685 | - | y | |
686 | - | } | |
687 | - | else throw("Auction Client was not found") | |
688 | - | } | |
689 | - | fromBase58String(y) | |
690 | - | } | |
691 | - | let aW = ((L * 3) / 100) | |
692 | - | let as = D(E) | |
693 | - | let aX = if (if (if (if (if ((Q == p)) | |
694 | - | then true | |
695 | - | else (Q == q)) | |
696 | - | then true | |
697 | - | else (Q == r)) | |
698 | - | then true | |
699 | - | else (Q == s)) | |
700 | - | then true | |
701 | - | else (Q == t)) | |
702 | - | then toBase58String(Q) | |
703 | - | else throw("Only defined ambassadors can vote in disputes") | |
704 | - | let aY = if (if ((aV == n)) | |
705 | - | then true | |
706 | - | else (aV == o)) | |
707 | - | then aV | |
708 | - | else throw(((("Vote is incorrect. Must be: " + n) + " or ") + o)) | |
709 | - | let aZ = { | |
710 | - | let ba = ((v + "_DiputeVote_") + aX) | |
711 | - | let bb = getString(this, ba) | |
712 | - | let z = bb | |
713 | - | if ($isInstanceOf(z, "String")) | |
714 | - | then { | |
715 | - | let y = z | |
528 | + | let I = H | |
716 | 529 | throw("User already voted") | |
717 | 530 | } | |
718 | - | else | |
531 | + | else aY | |
719 | 532 | } | |
720 | - | let | |
721 | - | let | |
722 | - | let | |
723 | - | if ($isInstanceOf( | |
533 | + | let bd = { | |
534 | + | let be = getInteger(this, (v + "_DisputeVotes")) | |
535 | + | let H = be | |
536 | + | if ($isInstanceOf(H, "Int")) | |
724 | 537 | then { | |
725 | - | let | |
726 | - | | |
538 | + | let I = H | |
539 | + | I | |
727 | 540 | } | |
728 | 541 | else throw("VotesNumber was not found") | |
729 | 542 | } | |
730 | - | if (( | |
731 | - | then if (( | |
543 | + | if ((as == l)) | |
544 | + | then if ((bd == 4)) | |
732 | 545 | then { | |
733 | - | let be = { | |
734 | - | let bf = getString(this, ((v + "_DiputeVote_") + toBase58String(p))) | |
735 | - | let bg = getString(this, ((v + "_DiputeVote_") + toBase58String(q))) | |
736 | - | let bh = getString(this, ((v + "_DiputeVote_") + toBase58String(r))) | |
737 | - | let bi = getString(this, ((v + "_DiputeVote_") + toBase58String(s))) | |
738 | - | let bj = getString(this, ((v + "_DiputeVote_") + toBase58String(t))) | |
739 | - | let bk = if ((bf == n)) | |
740 | - | then 1 | |
741 | - | else 0 | |
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))) | |
742 | 552 | let bl = if ((bg == n)) | |
743 | 553 | then 1 | |
744 | 554 | else 0 | |
751 | 561 | let bo = if ((bj == n)) | |
752 | 562 | then 1 | |
753 | 563 | else 0 | |
754 | - | let bp = if (( | |
564 | + | let bp = if ((bk == n)) | |
755 | 565 | then 1 | |
756 | 566 | else 0 | |
757 | - | let bq = (((((bk + bl) + bm) + bn) + bo) + bp) | |
758 | - | if ((bq > 2)) | |
759 | - | then Y | |
760 | - | else aU | |
567 | + | let bq = if ((aZ == n)) | |
568 | + | then 1 | |
569 | + | else 0 | |
570 | + | let br = (((((bl + bm) + bn) + bo) + bp) + bq) | |
571 | + | if ((br > 2)) | |
572 | + | then ak | |
573 | + | else aV | |
761 | 574 | } | |
762 | - | let | |
763 | - | then | |
764 | - | else ( | |
765 | - | let | |
766 | - | ScriptResult(WriteSet([DataEntry((v + "_DisputeVotes"), ( | |
575 | + | let bs = if ((bf == ak)) | |
576 | + | then E | |
577 | + | else (E - aX) | |
578 | + | let ap = J(x, E) | |
579 | + | ScriptResult(WriteSet([DataEntry((v + "_DisputeVotes"), (bd + 1)), DataEntry((v + "_State"), m), DataEntry(((v + "_DiputeVote_") + aY), aZ), DataEntry((x + "_Freezed"), ap)]), TransferSet([ScriptTransfer(addressFromPublicKey(bf), bs, av)])) | |
767 | 580 | } | |
768 | - | else WriteSet([DataEntry((v + "_DisputeVotes"), ( | |
581 | + | else WriteSet([DataEntry((v + "_DisputeVotes"), (bd + 1)), DataEntry(((v + "_DiputeVote_") + aY), aZ)]) | |
769 | 582 | else throw(("Incorrect state. Must be: " + l)) | |
770 | 583 | } | |
771 | 584 | ||
772 | 585 | ||
773 | 586 | ||
774 | - | @Callable( | |
587 | + | @Callable(ad) | |
775 | 588 | func workHandOver (v) = { | |
776 | - | let Q = extract(R.callerPublicKey) | |
777 | - | let ah = { | |
778 | - | let ai = getString(this, (v + "_State")) | |
779 | - | let z = ai | |
780 | - | if ($isInstanceOf(z, "String")) | |
781 | - | then { | |
782 | - | let y = z | |
783 | - | y | |
784 | - | } | |
785 | - | else throw("Auction State was not found") | |
786 | - | } | |
787 | - | let ab = { | |
788 | - | let al = getInteger(this, (v + "_AuctionStart")) | |
789 | - | let z = al | |
790 | - | if ($isInstanceOf(z, "Int")) | |
791 | - | then { | |
792 | - | let y = z | |
793 | - | y | |
794 | - | } | |
795 | - | else throw("Auction Start time was not found") | |
796 | - | } | |
797 | - | let am = { | |
798 | - | let an = getInteger(this, (v + "_AuctionDuration")) | |
799 | - | let z = an | |
800 | - | if ($isInstanceOf(z, "Int")) | |
801 | - | then { | |
802 | - | let y = z | |
803 | - | y | |
804 | - | } | |
805 | - | else throw("Auction duration time was not found") | |
806 | - | } | |
807 | - | let aQ = { | |
808 | - | let ap = getInteger(this, (v + "_JobPerformance")) | |
809 | - | let z = ap | |
810 | - | if ($isInstanceOf(z, "Int")) | |
811 | - | then { | |
812 | - | let y = z | |
813 | - | y | |
814 | - | } | |
815 | - | else throw("Auction job performance time was not found") | |
816 | - | } | |
817 | - | let aU = { | |
818 | - | let ak = getString(this, (v + "_Freelancer")) | |
819 | - | let y = { | |
820 | - | let z = ak | |
821 | - | if ($isInstanceOf(z, "String")) | |
822 | - | then { | |
823 | - | let y = z | |
824 | - | y | |
825 | - | } | |
826 | - | else throw("Auction Client was not found") | |
827 | - | } | |
828 | - | fromBase58String(y) | |
829 | - | } | |
830 | - | let G = height | |
831 | - | let bs = if ((Q == aU)) | |
832 | - | then Q | |
589 | + | let L = extract(ad.callerPublicKey) | |
590 | + | let as = O(v) | |
591 | + | let am = S(v) | |
592 | + | let at = U(v) | |
593 | + | let au = W(v) | |
594 | + | let aV = ac(v) | |
595 | + | let z = height | |
596 | + | let bt = if ((L == aV)) | |
597 | + | then L | |
833 | 598 | else throw("Only a freelancer can indicate that the work is done") | |
834 | - | let | |
835 | - | if (( | |
836 | - | then if ( | |
599 | + | let bu = ((z - am) > au) | |
600 | + | if ((as == i)) | |
601 | + | then if (bu) | |
837 | 602 | then WriteSet([DataEntry((v + "_State"), l), DataEntry((v + "_DisputeVotes"), "0")]) | |
838 | 603 | else WriteSet([DataEntry((v + "_State"), j)]) | |
839 | 604 | else throw("Auction state is incorrect") | |
841 | 606 | ||
842 | 607 | ||
843 | 608 | ||
844 | - | @Callable( | |
609 | + | @Callable(ad) | |
845 | 610 | func acceptWork (v) = { | |
846 | - | let Q = extract(R.callerPublicKey) | |
847 | - | let ah = { | |
848 | - | let ai = getString(this, (v + "_State")) | |
849 | - | let z = ai | |
850 | - | if ($isInstanceOf(z, "String")) | |
851 | - | then { | |
852 | - | let y = z | |
853 | - | y | |
854 | - | } | |
855 | - | else throw("Auction State was not found") | |
856 | - | } | |
857 | - | let Y = { | |
858 | - | let ak = getString(this, (v + "_Client")) | |
859 | - | let y = { | |
860 | - | let z = ak | |
861 | - | if ($isInstanceOf(z, "String")) | |
611 | + | let L = extract(ad.callerPublicKey) | |
612 | + | let as = O(v) | |
613 | + | let ak = Q(v) | |
614 | + | 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")) | |
862 | 628 | then { | |
863 | - | let y = z | |
864 | - | y | |
865 | - | } | |
866 | - | else throw("Auction Client was not found") | |
867 | - | } | |
868 | - | fromBase58String(y) | |
869 | - | } | |
870 | - | let ab = { | |
871 | - | let al = getInteger(this, (v + "_AuctionStart")) | |
872 | - | let z = al | |
873 | - | if ($isInstanceOf(z, "Int")) | |
874 | - | then { | |
875 | - | let y = z | |
876 | - | y | |
877 | - | } | |
878 | - | else throw("Auction Start time was not found") | |
879 | - | } | |
880 | - | let am = { | |
881 | - | let an = getInteger(this, (v + "_AuctionDuration")) | |
882 | - | let z = an | |
883 | - | if ($isInstanceOf(z, "Int")) | |
884 | - | then { | |
885 | - | let y = z | |
886 | - | y | |
887 | - | } | |
888 | - | else throw("Auction duration time was not found") | |
889 | - | } | |
890 | - | let aQ = { | |
891 | - | let ap = getInteger(this, (v + "_JobPerformance")) | |
892 | - | let z = ap | |
893 | - | if ($isInstanceOf(z, "Int")) | |
894 | - | then { | |
895 | - | let y = z | |
896 | - | y | |
897 | - | } | |
898 | - | else throw("Auction job performance time was not found") | |
899 | - | } | |
900 | - | let E = { | |
901 | - | let aq = getString(this, (v + "_AssetName")) | |
902 | - | let z = aq | |
903 | - | if ($isInstanceOf(z, "String")) | |
904 | - | then { | |
905 | - | let y = z | |
906 | - | y | |
907 | - | } | |
908 | - | else throw("Auction asset name was not found") | |
909 | - | } | |
910 | - | let L = { | |
911 | - | let ar = getInteger(this, (v + "_Price")) | |
912 | - | let z = ar | |
913 | - | if ($isInstanceOf(z, "Int")) | |
914 | - | then { | |
915 | - | let y = z | |
916 | - | y | |
917 | - | } | |
918 | - | else throw("Auction price was not found") | |
919 | - | } | |
920 | - | let aU = { | |
921 | - | let ak = getString(this, (v + "_Freelancer")) | |
922 | - | let y = { | |
923 | - | let z = ak | |
924 | - | if ($isInstanceOf(z, "String")) | |
925 | - | then { | |
926 | - | let y = z | |
927 | - | y | |
928 | - | } | |
929 | - | else throw("Auction Client was not found") | |
930 | - | } | |
931 | - | fromBase58String(y) | |
932 | - | } | |
933 | - | let au = ((L * 3) / 100) | |
934 | - | let bu = (L - au) | |
935 | - | let as = D(E) | |
936 | - | let bv = { | |
937 | - | let bw = getInteger(this, (toBase58String(aU) + "_Rating")) | |
938 | - | let bx = { | |
939 | - | let z = bw | |
940 | - | if ($isInstanceOf(z, "Int")) | |
941 | - | then { | |
942 | - | let y = z | |
943 | - | y | |
629 | + | let I = H | |
630 | + | I | |
944 | 631 | } | |
945 | 632 | else 0 | |
946 | 633 | } | |
947 | 634 | (bx + 1) | |
948 | 635 | } | |
949 | - | if (( | |
950 | - | then if (( | |
951 | - | then ScriptResult(WriteSet([DataEntry((v + "_State"), k), DataEntry((toBase58String( | |
636 | + | if ((L == ak)) | |
637 | + | then if ((as == j)) | |
638 | + | then ScriptResult(WriteSet([DataEntry((v + "_State"), k), DataEntry((toBase58String(aV) + "_Rating"), bv), DataEntry((x + "_Freezed"), ap)]), TransferSet([ScriptTransfer(addressFromPublicKey(aV), aT, av)])) | |
952 | 639 | else throw(("Incorrect state. Must be: " + j)) | |
953 | 640 | else throw("Only auction customer can use this function") | |
954 | 641 | } | |
957 | 644 | @Verifier(by) | |
958 | 645 | func bz () = if (sigVerify(by.bodyBytes, by.proofs[0], by.senderPublicKey)) | |
959 | 646 | then { | |
960 | - | let | |
961 | - | if ($isInstanceOf( | |
647 | + | let H = by | |
648 | + | if ($isInstanceOf(H, "TransferTransaction")) | |
962 | 649 | then { | |
963 | - | let bA = | |
650 | + | let bA = H | |
964 | 651 | true | |
965 | 652 | } | |
966 | - | else if ($isInstanceOf( | |
653 | + | else if ($isInstanceOf(H, "SetScriptTransaction")) | |
967 | 654 | then { | |
968 | - | let bB = | |
655 | + | let bB = H | |
969 | 656 | true | |
970 | 657 | } | |
971 | 658 | 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 | - | func w (v) = { | |
48 | - | let x = getString(this, v) | |
49 | - | let y = { | |
50 | - | let z = x | |
51 | - | if ($isInstanceOf(z, "String")) | |
52 | - | then { | |
53 | - | let y = z | |
54 | - | y | |
55 | - | } | |
56 | - | else throw("AuctionId was not found") | |
57 | - | } | |
58 | - | split(y, "_") | |
59 | - | } | |
60 | - | ||
61 | - | ||
62 | - | func A (v) = { | |
63 | - | let B = ((v + "_") + l) | |
64 | - | let C = getString(this, B) | |
65 | - | let y = { | |
66 | - | let z = C | |
67 | - | if ($isInstanceOf(z, "String")) | |
68 | - | then { | |
69 | - | let y = z | |
70 | - | y | |
71 | - | } | |
72 | - | else throw("Dispute data was not found") | |
73 | - | } | |
74 | - | split(y, "/") | |
75 | - | } | |
76 | - | ||
77 | - | ||
78 | - | func D (E) = if ((E == "WAVES")) | |
47 | + | func w (x) = if ((x == "WAVES")) | |
79 | 48 | then b | |
80 | - | else if (( | |
49 | + | else if ((x == "BTC")) | |
81 | 50 | then c | |
82 | - | else if (( | |
51 | + | else if ((x == "EUR")) | |
83 | 52 | then d | |
84 | - | else if (( | |
53 | + | else if ((x == "USD")) | |
85 | 54 | then e | |
86 | 55 | else throw("Incorrect Asset Id") | |
87 | 56 | ||
88 | 57 | ||
89 | - | func | |
58 | + | func y (z,A,B) = ((z - A) > B) | |
90 | 59 | ||
91 | 60 | ||
92 | - | func | |
93 | - | let | |
94 | - | let | |
95 | - | let | |
96 | - | if ($isInstanceOf( | |
61 | + | func C (D,E) = { | |
62 | + | let F = getInteger(this, (D + "_Freezed")) | |
63 | + | let G = { | |
64 | + | let H = F | |
65 | + | if ($isInstanceOf(H, "Int")) | |
97 | 66 | then { | |
98 | - | let | |
99 | - | | |
67 | + | let I = H | |
68 | + | I | |
100 | 69 | } | |
101 | 70 | else 0 | |
102 | 71 | } | |
103 | - | ( | |
72 | + | (G + E) | |
104 | 73 | } | |
105 | 74 | ||
106 | 75 | ||
107 | - | func | |
108 | - | let | |
109 | - | let | |
110 | - | let | |
111 | - | if ($isInstanceOf( | |
76 | + | func J (D,E) = { | |
77 | + | let F = getInteger(this, (D + "_Freezed")) | |
78 | + | let G = { | |
79 | + | let H = F | |
80 | + | if ($isInstanceOf(H, "Int")) | |
112 | 81 | then { | |
113 | - | let | |
114 | - | | |
82 | + | let I = H | |
83 | + | I | |
115 | 84 | } | |
116 | 85 | else 0 | |
117 | 86 | } | |
118 | - | let | |
119 | - | if (( | |
120 | - | then | |
87 | + | let I = (G - E) | |
88 | + | if ((I > 0)) | |
89 | + | then I | |
121 | 90 | else throw("Freezed amount couldn't be less than 0") | |
122 | 91 | } | |
123 | 92 | ||
124 | 93 | ||
125 | - | func | |
126 | - | let | |
127 | - | let | |
128 | - | if ($isInstanceOf( | |
94 | + | func K (L) = { | |
95 | + | let K = getString(this, (L + "_Freelancer")) | |
96 | + | let H = K | |
97 | + | if ($isInstanceOf(H, "String")) | |
129 | 98 | then { | |
130 | - | let | |
131 | - | | |
99 | + | let I = H | |
100 | + | L | |
132 | 101 | } | |
133 | 102 | else throw("Only registered users can make bets") | |
134 | 103 | } | |
135 | 104 | ||
136 | 105 | ||
137 | - | @Callable(R) | |
138 | - | func freelancerSignUp (S) = { | |
139 | - | let T = toBase58String(R.callerPublicKey) | |
140 | - | let U = getString(this, (T + "_Freelancer")) | |
141 | - | if (isDefined(U)) | |
106 | + | func M (N) = if ((N > 0)) | |
107 | + | then N | |
108 | + | else throw("Amount must be higher then 0") | |
109 | + | ||
110 | + | ||
111 | + | func O (v) = { | |
112 | + | let P = getString(this, (v + "_State")) | |
113 | + | let H = P | |
114 | + | if ($isInstanceOf(H, "String")) | |
115 | + | then { | |
116 | + | let I = H | |
117 | + | I | |
118 | + | } | |
119 | + | else throw("Auction State was not found") | |
120 | + | } | |
121 | + | ||
122 | + | ||
123 | + | func Q (v) = { | |
124 | + | let R = getString(this, (v + "_Client")) | |
125 | + | let I = { | |
126 | + | let H = R | |
127 | + | if ($isInstanceOf(H, "String")) | |
128 | + | then { | |
129 | + | let I = H | |
130 | + | I | |
131 | + | } | |
132 | + | else throw("Auction Client was not found") | |
133 | + | } | |
134 | + | fromBase58String(I) | |
135 | + | } | |
136 | + | ||
137 | + | ||
138 | + | func S (v) = { | |
139 | + | let T = getInteger(this, (v + "_AuctionStart")) | |
140 | + | let H = T | |
141 | + | if ($isInstanceOf(H, "Int")) | |
142 | + | then { | |
143 | + | let I = H | |
144 | + | I | |
145 | + | } | |
146 | + | else throw("Auction Start time was not found") | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | func U (v) = { | |
151 | + | let V = getInteger(this, (v + "_AuctionDuration")) | |
152 | + | let H = V | |
153 | + | if ($isInstanceOf(H, "Int")) | |
154 | + | then { | |
155 | + | let I = H | |
156 | + | I | |
157 | + | } | |
158 | + | else throw("Auction duration time was not found") | |
159 | + | } | |
160 | + | ||
161 | + | ||
162 | + | func W (v) = { | |
163 | + | let X = getInteger(this, (v + "_JobPerformance")) | |
164 | + | let H = X | |
165 | + | if ($isInstanceOf(H, "Int")) | |
166 | + | then { | |
167 | + | let I = H | |
168 | + | I | |
169 | + | } | |
170 | + | else throw("Auction job performance time was not found") | |
171 | + | } | |
172 | + | ||
173 | + | ||
174 | + | func Y (v) = { | |
175 | + | let Z = getString(this, (v + "_AssetName")) | |
176 | + | let H = Z | |
177 | + | if ($isInstanceOf(H, "String")) | |
178 | + | then { | |
179 | + | let I = H | |
180 | + | I | |
181 | + | } | |
182 | + | else throw("Auction asset name was not found") | |
183 | + | } | |
184 | + | ||
185 | + | ||
186 | + | func aa (v) = { | |
187 | + | let ab = getInteger(this, (v + "_Price")) | |
188 | + | let H = ab | |
189 | + | if ($isInstanceOf(H, "Int")) | |
190 | + | then { | |
191 | + | let I = H | |
192 | + | I | |
193 | + | } | |
194 | + | else throw("Auction price was not found") | |
195 | + | } | |
196 | + | ||
197 | + | ||
198 | + | func ac (v) = { | |
199 | + | let R = getString(this, (v + "_Freelancer")) | |
200 | + | let I = { | |
201 | + | let H = R | |
202 | + | if ($isInstanceOf(H, "String")) | |
203 | + | then { | |
204 | + | let I = H | |
205 | + | I | |
206 | + | } | |
207 | + | else throw("Auction Client was not found") | |
208 | + | } | |
209 | + | fromBase58String(I) | |
210 | + | } | |
211 | + | ||
212 | + | ||
213 | + | @Callable(ad) | |
214 | + | func freelancerSignUp (ae) = { | |
215 | + | let af = toBase58String(ad.callerPublicKey) | |
216 | + | let ag = getString(this, (af + "_Freelancer")) | |
217 | + | if (isDefined(ag)) | |
142 | 218 | then throw("User already registered") | |
143 | - | else WriteSet([DataEntry(( | |
219 | + | else WriteSet([DataEntry((af + "_Freelancer"), ae)]) | |
144 | 220 | } | |
145 | 221 | ||
146 | 222 | ||
147 | 223 | ||
148 | - | @Callable( | |
149 | - | func clientSignUp ( | |
150 | - | let | |
151 | - | let | |
152 | - | if (isDefined( | |
224 | + | @Callable(ad) | |
225 | + | func clientSignUp (ae) = { | |
226 | + | let af = toBase58String(ad.callerPublicKey) | |
227 | + | let ag = getString(this, (af + "_Client")) | |
228 | + | if (isDefined(ag)) | |
153 | 229 | then throw("User already registered") | |
154 | - | else WriteSet([DataEntry(( | |
230 | + | else WriteSet([DataEntry((af + "_Client"), ae)]) | |
155 | 231 | } | |
156 | 232 | ||
157 | 233 | ||
158 | 234 | ||
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 | |
167 | - | else throw("Amount must be higher then 0") | |
168 | - | let ab = height | |
169 | - | let ac = (W * a) | |
170 | - | let ad = (V * a) | |
171 | - | let K = if (!(isDefined(Z.assetId))) | |
235 | + | @Callable(ad) | |
236 | + | func createAuction (ah,ai,aj) = { | |
237 | + | let v = toBase58String(ad.transactionId) | |
238 | + | let ak = toBase58String(ad.callerPublicKey) | |
239 | + | let al = extract(ad.payment) | |
240 | + | let N = al.amount | |
241 | + | let E = M(N) | |
242 | + | let am = height | |
243 | + | let an = (ai * a) | |
244 | + | let ao = (ah * a) | |
245 | + | let D = if (!(isDefined(al.assetId))) | |
172 | 246 | then "WAVES" | |
173 | - | else if (( | |
247 | + | else if ((al.assetId == c)) | |
174 | 248 | then "BTC" | |
175 | - | else if (( | |
249 | + | else if ((al.assetId == d)) | |
176 | 250 | then "EUR" | |
177 | - | else if (( | |
251 | + | else if ((al.assetId == e)) | |
178 | 252 | then "USD" | |
179 | 253 | else throw("AssetId is incorrect") | |
180 | - | let | |
181 | - | WriteSet([DataEntry((v + "_State"), f), DataEntry((v + "_Info"), | |
254 | + | let ap = C(D, E) | |
255 | + | WriteSet([DataEntry((v + "_State"), f), DataEntry((v + "_Info"), aj), DataEntry((v + "_Client"), ak), DataEntry((v + "_AuctionStart"), am), DataEntry((v + "_AuctionDuration"), an), DataEntry((v + "_JobPerformance"), ao), DataEntry((v + "_AssetName"), D), DataEntry((v + "_Price"), E), DataEntry((D + "_Freezed"), ap)]) | |
182 | 256 | } | |
183 | 257 | ||
184 | 258 | ||
185 | 259 | ||
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")) | |
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) | |
266 | + | let am = S(v) | |
267 | + | let at = U(v) | |
268 | + | 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)) | |
215 | 280 | then { | |
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")) | |
281 | + | let az = { | |
282 | + | let aA = getString(this, (v + "_LowestBidderPub")) | |
283 | + | let H = aA | |
284 | + | if ($isInstanceOf(H, "String")) | |
287 | 285 | then { | |
288 | - | let | |
289 | - | | |
286 | + | let I = H | |
287 | + | I | |
290 | 288 | } | |
291 | 289 | else throw("Auction lowest bidder was not found") | |
292 | 290 | } | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | if ($isInstanceOf( | |
291 | + | let aB = { | |
292 | + | let aC = getInteger(this, ((v + "_Bid_") + az)) | |
293 | + | let H = aC | |
294 | + | if ($isInstanceOf(H, "Int")) | |
297 | 295 | then { | |
298 | - | let | |
299 | - | | |
296 | + | let I = H | |
297 | + | I | |
300 | 298 | } | |
301 | 299 | else throw("Auction lowest bid was not found") | |
302 | 300 | } | |
303 | - | let | |
304 | - | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), | |
301 | + | let aD = ((E - aB) - ax) | |
302 | + | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), az), DataEntry((v + "_Price"), aB)]), TransferSet([ScriptTransfer(addressFromPublicKey(ak), aD, av)])) | |
305 | 303 | } | |
306 | 304 | else throw("Incorrect auction state") | |
307 | - | else if (( | |
308 | - | then WriteSet([DataEntry(((v + "_Bid_") + | |
309 | - | else if (( | |
305 | + | else if ((as == f)) | |
306 | + | then WriteSet([DataEntry(((v + "_Bid_") + aw), aq), DataEntry((v + "_State"), g), DataEntry((v + "_LowestBidderPub"), L)]) | |
307 | + | else if ((as == g)) | |
310 | 308 | then { | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | if ($isInstanceOf( | |
309 | + | let aE = { | |
310 | + | let aF = getString(this, (v + "_LowestBidderPub")) | |
311 | + | let H = aF | |
312 | + | if ($isInstanceOf(H, "String")) | |
315 | 313 | then { | |
316 | - | let | |
317 | - | | |
314 | + | let I = H | |
315 | + | I | |
318 | 316 | } | |
319 | 317 | else throw("Auction lowest bidder was not found") | |
320 | 318 | } | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | if ($isInstanceOf( | |
319 | + | let aG = { | |
320 | + | let aH = getInteger(this, ((v + "_Bid_") + aE)) | |
321 | + | let aI = { | |
322 | + | let H = aH | |
323 | + | if ($isInstanceOf(H, "Int")) | |
326 | 324 | then { | |
327 | - | let | |
328 | - | | |
325 | + | let I = H | |
326 | + | I | |
329 | 327 | } | |
330 | 328 | else throw("Auction lowest bid was not found") | |
331 | 329 | } | |
332 | - | if (( | |
333 | - | then | |
334 | - | else | |
330 | + | if ((aI > aq)) | |
331 | + | then aw | |
332 | + | else aE | |
335 | 333 | } | |
336 | - | WriteSet([DataEntry((v + "_LowestBidderPub"), | |
334 | + | WriteSet([DataEntry((v + "_LowestBidderPub"), aG), DataEntry(((v + "_Bid_") + aw), aq)]) | |
337 | 335 | } | |
338 | - | else throw(((((("Incorrect jobId state. Now: " + | |
336 | + | else throw(((((("Incorrect jobId state. Now: " + as) + ", must be: ") + f) + " or ") + g)) | |
339 | 337 | } | |
340 | 338 | ||
341 | 339 | ||
342 | 340 | ||
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")) | |
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 | + | 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")) | |
351 | 357 | 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 + "_Bid_") + aG) | |
413 | - | let aJ = getInteger(this, aI) | |
414 | - | let z = aJ | |
415 | - | if ($isInstanceOf(z, "Int")) | |
416 | - | then { | |
417 | - | let y = z | |
418 | - | y | |
358 | + | let I = H | |
359 | + | I | |
419 | 360 | } | |
420 | 361 | else throw("Freelancer's bet was not found") | |
421 | 362 | } | |
422 | - | let au = ((L * 3) / 100) | |
423 | - | let aA = ((L - aH) - au) | |
424 | - | let av = F(ag, ab, am) | |
425 | - | if ((Q == Y)) | |
426 | - | then if (av) | |
427 | - | then if ((ah == f)) | |
363 | + | let ax = ((aK * 3) / 100) | |
364 | + | let ay = y(ar, am, at) | |
365 | + | if ((L == ak)) | |
366 | + | then if (ay) | |
367 | + | then if ((as == f)) | |
428 | 368 | then { | |
429 | - | let aK = (L - au) | |
430 | - | let ae = O(E, aK) | |
431 | - | ScriptResult(WriteSet([DataEntry((v + "_State"), h), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), aK, as)])) | |
369 | + | let ap = J(x, E) | |
370 | + | ScriptResult(WriteSet([DataEntry((v + "_State"), h), DataEntry((x + "_Freezed"), ap)]), TransferSet([ScriptTransfer(addressFromPublicKey(ak), (E - ax), av)])) | |
432 | 371 | } | |
433 | - | else if (( | |
372 | + | else if ((as == g)) | |
434 | 373 | then { | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | if ($isInstanceOf( | |
374 | + | let az = { | |
375 | + | let aA = getString(this, (v + "_LowestBidderPub")) | |
376 | + | let H = aA | |
377 | + | if ($isInstanceOf(H, "String")) | |
439 | 378 | then { | |
440 | - | let | |
441 | - | | |
379 | + | let I = H | |
380 | + | I | |
442 | 381 | } | |
443 | 382 | else throw("Auction lowest bidder was not found") | |
444 | 383 | } | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | if ($isInstanceOf( | |
384 | + | let aB = { | |
385 | + | let aC = getInteger(this, ((v + "_Bid_") + az)) | |
386 | + | let H = aC | |
387 | + | if ($isInstanceOf(H, "Int")) | |
449 | 388 | then { | |
450 | - | let | |
451 | - | | |
389 | + | let I = H | |
390 | + | I | |
452 | 391 | } | |
453 | 392 | else throw("Auction lowest bid was not found") | |
454 | 393 | } | |
455 | - | WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aw), DataEntry((v + "_Price"), ay)]) | |
394 | + | let aD = (E - aB) | |
395 | + | let ap = J(x, aD) | |
396 | + | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), az), DataEntry((v + "_Price"), aB), DataEntry((x + "_Freezed"), ap)]), TransferSet([ScriptTransfer(addressFromPublicKey(ak), aD, av)])) | |
456 | 397 | } | |
457 | 398 | else throw("Incorrect auction state") | |
458 | 399 | else { | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | if ($isInstanceOf( | |
400 | + | let aN = { | |
401 | + | let aw = getInteger(this, ((v + "_Bid_") + aJ)) | |
402 | + | let H = aw | |
403 | + | if ($isInstanceOf(H, "Int")) | |
463 | 404 | then { | |
464 | - | let | |
465 | - | | |
405 | + | let I = H | |
406 | + | aJ | |
466 | 407 | } | |
467 | 408 | else throw("Error: Incorrect freelancerPub") | |
468 | 409 | } | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | if ($isInstanceOf( | |
410 | + | let aB = { | |
411 | + | let aO = getInteger(this, ((v + "_Bid_") + aJ)) | |
412 | + | let H = aO | |
413 | + | if ($isInstanceOf(H, "Int")) | |
473 | 414 | then { | |
474 | - | let | |
475 | - | | |
415 | + | let I = H | |
416 | + | I | |
476 | 417 | } | |
477 | 418 | else throw("Auction lowest bidder was not found") | |
478 | 419 | } | |
479 | - | let ae = O(E, aM) | |
480 | - | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aL), DataEntry((v + "_Price"), aM), DataEntry((E + "_Freezed"), ae)]), TransferSet([ScriptTransfer(addressFromPublicKey(Y), aA, as)])) | |
420 | + | let aD = (E - aK) | |
421 | + | let ap = J(x, aD) | |
422 | + | ScriptResult(WriteSet([DataEntry((v + "_State"), i), DataEntry((v + "_Freelancer"), aN), DataEntry((v + "_Price"), aB), DataEntry((x + "_Freezed"), ap)]), TransferSet([ScriptTransfer(addressFromPublicKey(ak), (aD - ax), av)])) | |
481 | 423 | } | |
482 | 424 | else throw("Only auction customer can choose a freelancer") | |
483 | 425 | } | |
484 | 426 | ||
485 | 427 | ||
486 | 428 | ||
487 | - | @Callable(R) | |
488 | - | func increaseExecutionTime (v,aO) = { | |
489 | - | let aP = extract(R.callerPublicKey) | |
490 | - | let ah = { | |
491 | - | let ai = getString(this, (v + "_State")) | |
492 | - | let z = ai | |
493 | - | if ($isInstanceOf(z, "String")) | |
494 | - | then { | |
495 | - | let y = z | |
496 | - | y | |
497 | - | } | |
498 | - | else throw("Auction State was not found") | |
499 | - | } | |
500 | - | let Y = { | |
501 | - | let ak = getString(this, (v + "_Client")) | |
502 | - | let y = { | |
503 | - | let z = ak | |
504 | - | if ($isInstanceOf(z, "String")) | |
505 | - | then { | |
506 | - | let y = z | |
507 | - | y | |
508 | - | } | |
509 | - | else throw("Auction Client was not found") | |
510 | - | } | |
511 | - | fromBase58String(y) | |
512 | - | } | |
513 | - | let aQ = { | |
514 | - | let ap = getInteger(this, (v + "JobPerformance")) | |
515 | - | let z = ap | |
516 | - | if ($isInstanceOf(z, "Int")) | |
517 | - | then { | |
518 | - | let y = z | |
519 | - | y | |
520 | - | } | |
521 | - | else throw("Auction job performance time was not found") | |
522 | - | } | |
429 | + | @Callable(ad) | |
430 | + | func increaseExecutionTime (v,aP) = { | |
431 | + | let aQ = extract(ad.callerPublicKey) | |
432 | + | let as = O(v) | |
433 | + | let ak = Q(v) | |
434 | + | let au = W(v) | |
523 | 435 | let aR = { | |
524 | - | let aS = ( | |
525 | - | if ((aS > | |
436 | + | let aS = (aP * a) | |
437 | + | if ((aS > au)) | |
526 | 438 | then aS | |
527 | 439 | else throw("New execution time must more than current execution time") | |
528 | 440 | } | |
529 | - | if (( | |
530 | - | then if (if (if (( | |
441 | + | if ((aQ == ak)) | |
442 | + | then if (if (if ((as == f)) | |
531 | 443 | then true | |
532 | - | else ( | |
444 | + | else (as == g)) | |
533 | 445 | then true | |
534 | - | else ( | |
446 | + | else (as == i)) | |
535 | 447 | then WriteSet([DataEntry((v + "_JobPerformance"), aR)]) | |
536 | 448 | else throw("Incorrect state") | |
537 | 449 | else throw("Only Client can increase execution time") | |
538 | 450 | } | |
539 | 451 | ||
540 | 452 | ||
541 | 453 | ||
542 | - | @Callable( | |
454 | + | @Callable(ad) | |
543 | 455 | func cancelAuction (v) = { | |
544 | - | let Q = extract(R.callerPublicKey) | |
545 | - | let ah = { | |
546 | - | let ai = getString(this, (v + "_State")) | |
547 | - | let z = ai | |
548 | - | if ($isInstanceOf(z, "String")) | |
549 | - | then { | |
550 | - | let y = z | |
551 | - | y | |
552 | - | } | |
553 | - | else throw("Auction State was not found") | |
554 | - | } | |
555 | - | let Y = { | |
556 | - | let ak = getString(this, (v + "_Client")) | |
557 | - | let y = { | |
558 | - | let z = ak | |
559 | - | if ($isInstanceOf(z, "String")) | |
560 | - | then { | |
561 | - | let y = z | |
562 | - | y | |
563 | - | } | |
564 | - | else throw("Auction Client was not found") | |
565 | - | } | |
566 | - | fromBase58String(y) | |
567 | - | } | |
568 | - | let aT = if ((Q == Y)) | |
456 | + | let L = extract(ad.callerPublicKey) | |
457 | + | let as = O(v) | |
458 | + | let ak = Q(v) | |
459 | + | let x = Y(v) | |
460 | + | let E = aa(v) | |
461 | + | let av = w(x) | |
462 | + | let ax = ((E * 3) / 100) | |
463 | + | let aT = (E - ax) | |
464 | + | let ap = J(x, E) | |
465 | + | let aU = if ((L == ak)) | |
569 | 466 | then true | |
570 | - | else throw("Auction can be canceled only by owner.") | |
571 | - | if ( | |
572 | - | then if (( | |
573 | - | then WriteSet([DataEntry((v + "_State"), h)]) | |
467 | + | else throw("Auction can be canceled only by auction owner.") | |
468 | + | if (aU) | |
469 | + | then if ((as == f)) | |
470 | + | then ScriptResult(WriteSet([DataEntry((v + "_State"), h), DataEntry((x + "_Freezed"), ap)]), TransferSet([ScriptTransfer(addressFromPublicKey(ak), aT, av)])) | |
574 | 471 | else throw("Incorrect auction state.") | |
575 | 472 | else throw("Only Client can cancel auction") | |
576 | 473 | } | |
577 | 474 | ||
578 | 475 | ||
579 | 476 | ||
580 | - | @Callable( | |
477 | + | @Callable(ad) | |
581 | 478 | func openDispute (v) = { | |
582 | - | let aP = extract(R.callerPublicKey) | |
583 | - | let ah = { | |
584 | - | let ai = getString(this, (v + "_State")) | |
585 | - | let z = ai | |
586 | - | if ($isInstanceOf(z, "String")) | |
587 | - | then { | |
588 | - | let y = z | |
589 | - | y | |
590 | - | } | |
591 | - | else throw("Auction State was not found") | |
592 | - | } | |
593 | - | let Y = { | |
594 | - | let ak = getString(this, (v + "_Client")) | |
595 | - | let y = { | |
596 | - | let z = ak | |
597 | - | if ($isInstanceOf(z, "String")) | |
598 | - | then { | |
599 | - | let y = z | |
600 | - | y | |
601 | - | } | |
602 | - | else throw("Auction Client was not found") | |
603 | - | } | |
604 | - | fromBase58String(y) | |
605 | - | } | |
606 | - | let aU = { | |
607 | - | let ak = getString(this, (v + "_Freelancer")) | |
608 | - | let y = { | |
609 | - | let z = ak | |
610 | - | if ($isInstanceOf(z, "String")) | |
611 | - | then { | |
612 | - | let y = z | |
613 | - | y | |
614 | - | } | |
615 | - | else throw("Auction Client was not found") | |
616 | - | } | |
617 | - | fromBase58String(y) | |
618 | - | } | |
619 | - | if (if ((ah == f)) | |
479 | + | let aQ = extract(ad.callerPublicKey) | |
480 | + | let as = O(v) | |
481 | + | let ak = Q(v) | |
482 | + | let aV = ac(v) | |
483 | + | if (if ((as == f)) | |
620 | 484 | then true | |
621 | - | else ( | |
485 | + | else (as == g)) | |
622 | 486 | then throw("Incorrect auction state for dispute opening") | |
623 | - | else if (if (( | |
487 | + | else if (if ((aQ == ak)) | |
624 | 488 | then true | |
625 | - | else ( | |
489 | + | else (aQ == aV)) | |
626 | 490 | then WriteSet([DataEntry((v + "_State"), l), DataEntry((v + "_DisputeVotes"), 0)]) | |
627 | 491 | else throw("Only customer and freelancer can open dispute") | |
628 | 492 | } | |
629 | 493 | ||
630 | 494 | ||
631 | 495 | ||
632 | - | @Callable(R) | |
633 | - | func voteDispute (v,aV) = { | |
634 | - | let Q = extract(R.callerPublicKey) | |
635 | - | let ah = { | |
636 | - | let ai = getString(this, (v + "_State")) | |
637 | - | let z = ai | |
638 | - | if ($isInstanceOf(z, "String")) | |
496 | + | @Callable(ad) | |
497 | + | func voteDispute (v,aW) = { | |
498 | + | let L = extract(ad.callerPublicKey) | |
499 | + | let as = O(v) | |
500 | + | let ak = Q(v) | |
501 | + | let x = Y(v) | |
502 | + | let E = aa(v) | |
503 | + | let aV = ac(v) | |
504 | + | let aX = ((E * 3) / 100) | |
505 | + | let av = w(x) | |
506 | + | let aY = if (if (if (if (if ((L == p)) | |
507 | + | then true | |
508 | + | else (L == q)) | |
509 | + | then true | |
510 | + | else (L == r)) | |
511 | + | then true | |
512 | + | else (L == s)) | |
513 | + | then true | |
514 | + | else (L == t)) | |
515 | + | then toBase58String(L) | |
516 | + | else throw("Only defined ambassadors can vote in disputes") | |
517 | + | let aZ = if (if ((aW == n)) | |
518 | + | then true | |
519 | + | else (aW == o)) | |
520 | + | then aW | |
521 | + | else throw(((("Vote is incorrect. Must be: " + n) + " or ") + o)) | |
522 | + | let ba = { | |
523 | + | let bb = ((v + "_DiputeVote_") + aY) | |
524 | + | let bc = getString(this, bb) | |
525 | + | let H = bc | |
526 | + | if ($isInstanceOf(H, "String")) | |
639 | 527 | then { | |
640 | - | let y = z | |
641 | - | y | |
642 | - | } | |
643 | - | else throw("Auction State was not found") | |
644 | - | } | |
645 | - | let Y = { | |
646 | - | let ak = getString(this, (v + "_Client")) | |
647 | - | let y = { | |
648 | - | let z = ak | |
649 | - | if ($isInstanceOf(z, "String")) | |
650 | - | then { | |
651 | - | let y = z | |
652 | - | y | |
653 | - | } | |
654 | - | else throw("Auction Client was not found") | |
655 | - | } | |
656 | - | fromBase58String(y) | |
657 | - | } | |
658 | - | let E = { | |
659 | - | let aq = getString(this, (v + "_AssetName")) | |
660 | - | let z = aq | |
661 | - | if ($isInstanceOf(z, "String")) | |
662 | - | then { | |
663 | - | let y = z | |
664 | - | y | |
665 | - | } | |
666 | - | else throw("Auction asset name was not found") | |
667 | - | } | |
668 | - | let L = { | |
669 | - | let ar = getInteger(this, (v + "_Price")) | |
670 | - | let z = ar | |
671 | - | if ($isInstanceOf(z, "Int")) | |
672 | - | then { | |
673 | - | let y = z | |
674 | - | y | |
675 | - | } | |
676 | - | else throw("Auction price was not found") | |
677 | - | } | |
678 | - | let aU = { | |
679 | - | let ak = getString(this, (v + "_Freelancer")) | |
680 | - | let y = { | |
681 | - | let z = ak | |
682 | - | if ($isInstanceOf(z, "String")) | |
683 | - | then { | |
684 | - | let y = z | |
685 | - | y | |
686 | - | } | |
687 | - | else throw("Auction Client was not found") | |
688 | - | } | |
689 | - | fromBase58String(y) | |
690 | - | } | |
691 | - | let aW = ((L * 3) / 100) | |
692 | - | let as = D(E) | |
693 | - | let aX = if (if (if (if (if ((Q == p)) | |
694 | - | then true | |
695 | - | else (Q == q)) | |
696 | - | then true | |
697 | - | else (Q == r)) | |
698 | - | then true | |
699 | - | else (Q == s)) | |
700 | - | then true | |
701 | - | else (Q == t)) | |
702 | - | then toBase58String(Q) | |
703 | - | else throw("Only defined ambassadors can vote in disputes") | |
704 | - | let aY = if (if ((aV == n)) | |
705 | - | then true | |
706 | - | else (aV == o)) | |
707 | - | then aV | |
708 | - | else throw(((("Vote is incorrect. Must be: " + n) + " or ") + o)) | |
709 | - | let aZ = { | |
710 | - | let ba = ((v + "_DiputeVote_") + aX) | |
711 | - | let bb = getString(this, ba) | |
712 | - | let z = bb | |
713 | - | if ($isInstanceOf(z, "String")) | |
714 | - | then { | |
715 | - | let y = z | |
528 | + | let I = H | |
716 | 529 | throw("User already voted") | |
717 | 530 | } | |
718 | - | else | |
531 | + | else aY | |
719 | 532 | } | |
720 | - | let | |
721 | - | let | |
722 | - | let | |
723 | - | if ($isInstanceOf( | |
533 | + | let bd = { | |
534 | + | let be = getInteger(this, (v + "_DisputeVotes")) | |
535 | + | let H = be | |
536 | + | if ($isInstanceOf(H, "Int")) | |
724 | 537 | then { | |
725 | - | let | |
726 | - | | |
538 | + | let I = H | |
539 | + | I | |
727 | 540 | } | |
728 | 541 | else throw("VotesNumber was not found") | |
729 | 542 | } | |
730 | - | if (( | |
731 | - | then if (( | |
543 | + | if ((as == l)) | |
544 | + | then if ((bd == 4)) | |
732 | 545 | then { | |
733 | - | let be = { | |
734 | - | let bf = getString(this, ((v + "_DiputeVote_") + toBase58String(p))) | |
735 | - | let bg = getString(this, ((v + "_DiputeVote_") + toBase58String(q))) | |
736 | - | let bh = getString(this, ((v + "_DiputeVote_") + toBase58String(r))) | |
737 | - | let bi = getString(this, ((v + "_DiputeVote_") + toBase58String(s))) | |
738 | - | let bj = getString(this, ((v + "_DiputeVote_") + toBase58String(t))) | |
739 | - | let bk = if ((bf == n)) | |
740 | - | then 1 | |
741 | - | else 0 | |
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))) | |
742 | 552 | let bl = if ((bg == n)) | |
743 | 553 | then 1 | |
744 | 554 | else 0 | |
745 | 555 | let bm = if ((bh == n)) | |
746 | 556 | then 1 | |
747 | 557 | else 0 | |
748 | 558 | let bn = if ((bi == n)) | |
749 | 559 | then 1 | |
750 | 560 | else 0 | |
751 | 561 | let bo = if ((bj == n)) | |
752 | 562 | then 1 | |
753 | 563 | else 0 | |
754 | - | let bp = if (( | |
564 | + | let bp = if ((bk == n)) | |
755 | 565 | then 1 | |
756 | 566 | else 0 | |
757 | - | let bq = (((((bk + bl) + bm) + bn) + bo) + bp) | |
758 | - | if ((bq > 2)) | |
759 | - | then Y | |
760 | - | else aU | |
567 | + | let bq = if ((aZ == n)) | |
568 | + | then 1 | |
569 | + | else 0 | |
570 | + | let br = (((((bl + bm) + bn) + bo) + bp) + bq) | |
571 | + | if ((br > 2)) | |
572 | + | then ak | |
573 | + | else aV | |
761 | 574 | } | |
762 | - | let | |
763 | - | then | |
764 | - | else ( | |
765 | - | let | |
766 | - | ScriptResult(WriteSet([DataEntry((v + "_DisputeVotes"), ( | |
575 | + | let bs = if ((bf == ak)) | |
576 | + | then E | |
577 | + | else (E - aX) | |
578 | + | let ap = J(x, E) | |
579 | + | ScriptResult(WriteSet([DataEntry((v + "_DisputeVotes"), (bd + 1)), DataEntry((v + "_State"), m), DataEntry(((v + "_DiputeVote_") + aY), aZ), DataEntry((x + "_Freezed"), ap)]), TransferSet([ScriptTransfer(addressFromPublicKey(bf), bs, av)])) | |
767 | 580 | } | |
768 | - | else WriteSet([DataEntry((v + "_DisputeVotes"), ( | |
581 | + | else WriteSet([DataEntry((v + "_DisputeVotes"), (bd + 1)), DataEntry(((v + "_DiputeVote_") + aY), aZ)]) | |
769 | 582 | else throw(("Incorrect state. Must be: " + l)) | |
770 | 583 | } | |
771 | 584 | ||
772 | 585 | ||
773 | 586 | ||
774 | - | @Callable( | |
587 | + | @Callable(ad) | |
775 | 588 | func workHandOver (v) = { | |
776 | - | let Q = extract(R.callerPublicKey) | |
777 | - | let ah = { | |
778 | - | let ai = getString(this, (v + "_State")) | |
779 | - | let z = ai | |
780 | - | if ($isInstanceOf(z, "String")) | |
781 | - | then { | |
782 | - | let y = z | |
783 | - | y | |
784 | - | } | |
785 | - | else throw("Auction State was not found") | |
786 | - | } | |
787 | - | let ab = { | |
788 | - | let al = getInteger(this, (v + "_AuctionStart")) | |
789 | - | let z = al | |
790 | - | if ($isInstanceOf(z, "Int")) | |
791 | - | then { | |
792 | - | let y = z | |
793 | - | y | |
794 | - | } | |
795 | - | else throw("Auction Start time was not found") | |
796 | - | } | |
797 | - | let am = { | |
798 | - | let an = getInteger(this, (v + "_AuctionDuration")) | |
799 | - | let z = an | |
800 | - | if ($isInstanceOf(z, "Int")) | |
801 | - | then { | |
802 | - | let y = z | |
803 | - | y | |
804 | - | } | |
805 | - | else throw("Auction duration time was not found") | |
806 | - | } | |
807 | - | let aQ = { | |
808 | - | let ap = getInteger(this, (v + "_JobPerformance")) | |
809 | - | let z = ap | |
810 | - | if ($isInstanceOf(z, "Int")) | |
811 | - | then { | |
812 | - | let y = z | |
813 | - | y | |
814 | - | } | |
815 | - | else throw("Auction job performance time was not found") | |
816 | - | } | |
817 | - | let aU = { | |
818 | - | let ak = getString(this, (v + "_Freelancer")) | |
819 | - | let y = { | |
820 | - | let z = ak | |
821 | - | if ($isInstanceOf(z, "String")) | |
822 | - | then { | |
823 | - | let y = z | |
824 | - | y | |
825 | - | } | |
826 | - | else throw("Auction Client was not found") | |
827 | - | } | |
828 | - | fromBase58String(y) | |
829 | - | } | |
830 | - | let G = height | |
831 | - | let bs = if ((Q == aU)) | |
832 | - | then Q | |
589 | + | let L = extract(ad.callerPublicKey) | |
590 | + | let as = O(v) | |
591 | + | let am = S(v) | |
592 | + | let at = U(v) | |
593 | + | let au = W(v) | |
594 | + | let aV = ac(v) | |
595 | + | let z = height | |
596 | + | let bt = if ((L == aV)) | |
597 | + | then L | |
833 | 598 | else throw("Only a freelancer can indicate that the work is done") | |
834 | - | let | |
835 | - | if (( | |
836 | - | then if ( | |
599 | + | let bu = ((z - am) > au) | |
600 | + | if ((as == i)) | |
601 | + | then if (bu) | |
837 | 602 | then WriteSet([DataEntry((v + "_State"), l), DataEntry((v + "_DisputeVotes"), "0")]) | |
838 | 603 | else WriteSet([DataEntry((v + "_State"), j)]) | |
839 | 604 | else throw("Auction state is incorrect") | |
840 | 605 | } | |
841 | 606 | ||
842 | 607 | ||
843 | 608 | ||
844 | - | @Callable( | |
609 | + | @Callable(ad) | |
845 | 610 | func acceptWork (v) = { | |
846 | - | let Q = extract(R.callerPublicKey) | |
847 | - | let ah = { | |
848 | - | let ai = getString(this, (v + "_State")) | |
849 | - | let z = ai | |
850 | - | if ($isInstanceOf(z, "String")) | |
851 | - | then { | |
852 | - | let y = z | |
853 | - | y | |
854 | - | } | |
855 | - | else throw("Auction State was not found") | |
856 | - | } | |
857 | - | let Y = { | |
858 | - | let ak = getString(this, (v + "_Client")) | |
859 | - | let y = { | |
860 | - | let z = ak | |
861 | - | if ($isInstanceOf(z, "String")) | |
611 | + | let L = extract(ad.callerPublicKey) | |
612 | + | let as = O(v) | |
613 | + | let ak = Q(v) | |
614 | + | 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")) | |
862 | 628 | then { | |
863 | - | let y = z | |
864 | - | y | |
865 | - | } | |
866 | - | else throw("Auction Client was not found") | |
867 | - | } | |
868 | - | fromBase58String(y) | |
869 | - | } | |
870 | - | let ab = { | |
871 | - | let al = getInteger(this, (v + "_AuctionStart")) | |
872 | - | let z = al | |
873 | - | if ($isInstanceOf(z, "Int")) | |
874 | - | then { | |
875 | - | let y = z | |
876 | - | y | |
877 | - | } | |
878 | - | else throw("Auction Start time was not found") | |
879 | - | } | |
880 | - | let am = { | |
881 | - | let an = getInteger(this, (v + "_AuctionDuration")) | |
882 | - | let z = an | |
883 | - | if ($isInstanceOf(z, "Int")) | |
884 | - | then { | |
885 | - | let y = z | |
886 | - | y | |
887 | - | } | |
888 | - | else throw("Auction duration time was not found") | |
889 | - | } | |
890 | - | let aQ = { | |
891 | - | let ap = getInteger(this, (v + "_JobPerformance")) | |
892 | - | let z = ap | |
893 | - | if ($isInstanceOf(z, "Int")) | |
894 | - | then { | |
895 | - | let y = z | |
896 | - | y | |
897 | - | } | |
898 | - | else throw("Auction job performance time was not found") | |
899 | - | } | |
900 | - | let E = { | |
901 | - | let aq = getString(this, (v + "_AssetName")) | |
902 | - | let z = aq | |
903 | - | if ($isInstanceOf(z, "String")) | |
904 | - | then { | |
905 | - | let y = z | |
906 | - | y | |
907 | - | } | |
908 | - | else throw("Auction asset name was not found") | |
909 | - | } | |
910 | - | let L = { | |
911 | - | let ar = getInteger(this, (v + "_Price")) | |
912 | - | let z = ar | |
913 | - | if ($isInstanceOf(z, "Int")) | |
914 | - | then { | |
915 | - | let y = z | |
916 | - | y | |
917 | - | } | |
918 | - | else throw("Auction price was not found") | |
919 | - | } | |
920 | - | let aU = { | |
921 | - | let ak = getString(this, (v + "_Freelancer")) | |
922 | - | let y = { | |
923 | - | let z = ak | |
924 | - | if ($isInstanceOf(z, "String")) | |
925 | - | then { | |
926 | - | let y = z | |
927 | - | y | |
928 | - | } | |
929 | - | else throw("Auction Client was not found") | |
930 | - | } | |
931 | - | fromBase58String(y) | |
932 | - | } | |
933 | - | let au = ((L * 3) / 100) | |
934 | - | let bu = (L - au) | |
935 | - | let as = D(E) | |
936 | - | let bv = { | |
937 | - | let bw = getInteger(this, (toBase58String(aU) + "_Rating")) | |
938 | - | let bx = { | |
939 | - | let z = bw | |
940 | - | if ($isInstanceOf(z, "Int")) | |
941 | - | then { | |
942 | - | let y = z | |
943 | - | y | |
629 | + | let I = H | |
630 | + | I | |
944 | 631 | } | |
945 | 632 | else 0 | |
946 | 633 | } | |
947 | 634 | (bx + 1) | |
948 | 635 | } | |
949 | - | if (( | |
950 | - | then if (( | |
951 | - | then ScriptResult(WriteSet([DataEntry((v + "_State"), k), DataEntry((toBase58String( | |
636 | + | if ((L == ak)) | |
637 | + | then if ((as == j)) | |
638 | + | then ScriptResult(WriteSet([DataEntry((v + "_State"), k), DataEntry((toBase58String(aV) + "_Rating"), bv), DataEntry((x + "_Freezed"), ap)]), TransferSet([ScriptTransfer(addressFromPublicKey(aV), aT, av)])) | |
952 | 639 | else throw(("Incorrect state. Must be: " + j)) | |
953 | 640 | else throw("Only auction customer can use this function") | |
954 | 641 | } | |
955 | 642 | ||
956 | 643 | ||
957 | 644 | @Verifier(by) | |
958 | 645 | func bz () = if (sigVerify(by.bodyBytes, by.proofs[0], by.senderPublicKey)) | |
959 | 646 | then { | |
960 | - | let | |
961 | - | if ($isInstanceOf( | |
647 | + | let H = by | |
648 | + | if ($isInstanceOf(H, "TransferTransaction")) | |
962 | 649 | then { | |
963 | - | let bA = | |
650 | + | let bA = H | |
964 | 651 | true | |
965 | 652 | } | |
966 | - | else if ($isInstanceOf( | |
653 | + | else if ($isInstanceOf(H, "SetScriptTransaction")) | |
967 | 654 | then { | |
968 | - | let bB = | |
655 | + | let bB = H | |
969 | 656 | true | |
970 | 657 | } | |
971 | 658 | else false | |
972 | 659 | } | |
973 | 660 | else false | |
974 | 661 |
github/deemru/w8io/169f3d6 140.89 ms ◑