tx · EntXs9xrRnEXHcdroPfb913ypGj4173xsXC5oHw6VoRc 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2: -0.01500000 Waves 2019.09.19 16:48 [683249] smart account 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2 > SELF 0.00000000 Waves
{ "type": 13, "id": "EntXs9xrRnEXHcdroPfb913ypGj4173xsXC5oHw6VoRc", "fee": 1500000, "feeAssetId": null, "timestamp": 1568900946377, "version": 1, "sender": "3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2", "senderPublicKey": "8y2Uc9uYf5gRD6Dzm1aC73zYe3LZvtVDUVAnAhNdN2mg", "proofs": [ "4C1bivYZfviNU8iThmeFMc8UAfpvnASKFQafbqHB4GbXrw5JHgvS8PX8Zb3jKKz6XK9RL84AK5N946VTgzr9EghM" ], "script": "base64:AAIDAAAAAAAAAD4IARIDCgEIEgMKAQgSBAoCAQESBAoCCAESBAoCCAgSBAoCCAESAwoBCBIDCgEIEgQKAggIEgMKAQgSAwoBCAAAAB4AAAAAA2RheQAAAAAAAAAFoAAAAAAJY29taXNzaW9uAAAAAAAAAAADAAAAAAVXQVZFUwUAAAAEdW5pdAAAAAAEd0JUQwEAAAAgbPpq/8XtqowLf7Uqk9KiDC+Cgtt0egSMU/v9Ex9zoP8AAAAABHdFVVIBAAAAIOwWYQRfe5EhQQY7N/Pn19T489PGDqqAl/OQv9D6FbqZAAAAAAR3VVNEAQAAACDdHL0B8M91BTB4B7KotjiY0UXdXB+6M1rjQG/6Zllw/QAAAAAJc3RhdGVPcGVuAgAAAAZPcGVuZWQAAAAADnN0YXRlU3VnZ2VzdGVkAgAAAAlTdWdnZXN0ZWQAAAAAC3N0YXRlQ2FuY2VsAgAAAAhDYW5jZWxlZAAAAAAPc3RhdGVJblByb2dyZXNzAgAAAApJblByb2dyZXNzAAAAABFzdGF0ZVdhaXQ0Q29uZmlybQIAAAATV2FpdEZvckNvbmZpcm1hdGlvbgAAAAANc3RhdGVD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cHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADdHR4BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAA3N0eAUAAAAHJG1hdGNoMAYHBznJAMQ=", "chainId": 84, "height": 683249, "spentComplexity": 0 } View: original | compacted Prev: CELRGYBHp7rymFnbB5mrNQuEznF64AbNmaCm7zzytQ6G Next: 5qqdtqrjLea7TyQMdcRq9nLE7bfwN3JFxjcTpk9et5Ry Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = 1440 | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = 3 | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = unit | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS' | |
11 | 11 | ||
12 | - | let e = base58' | |
12 | + | let e = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU' | |
13 | 13 | ||
14 | - | let f = base58' | |
14 | + | let f = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck' | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = "Opened" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "Suggested" | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "Canceled" | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "InProgress" | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "WaitForConfirmation" | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "Completed" | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "Dispute" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "DisputeResolved" | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "CMR" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "FL" | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = base58'1' | |
37 | 37 | ||
38 | 38 | let r = base58'1' | |
39 | 39 | ||
43 | 43 | ||
44 | 44 | let u = base58'1' | |
45 | 45 | ||
46 | - | ||
46 | + | func v (w) = (w + "_Auction") | |
47 | 47 | ||
48 | - | func w (x) = { | |
49 | - | let y = getString(this, x) | |
48 | + | ||
49 | + | func x (w) = { | |
50 | + | let y = getString(this, w) | |
50 | 51 | let z = { | |
51 | 52 | let A = y | |
52 | 53 | if ($isInstanceOf(A, "String")) | |
60 | 61 | } | |
61 | 62 | ||
62 | 63 | ||
63 | - | func B ( | |
64 | - | let C = (( | |
64 | + | func B (w) = { | |
65 | + | let C = ((w + "_") + m) | |
65 | 66 | let D = getString(this, C) | |
66 | 67 | let z = { | |
67 | 68 | let A = D | |
77 | 78 | ||
78 | 79 | ||
79 | 80 | func E (F) = if ((F == "WAVES")) | |
80 | - | then | |
81 | + | then c | |
81 | 82 | else if ((F == "BTC")) | |
82 | - | then | |
83 | + | then d | |
83 | 84 | else if ((F == "EUR")) | |
84 | - | then | |
85 | + | then e | |
85 | 86 | else if ((F == "USD")) | |
86 | - | then | |
87 | + | then f | |
87 | 88 | else throw("Incorrect Asset Id") | |
88 | 89 | ||
89 | 90 | ||
95 | 96 | func J (K,L,M) = ((K - L) > M) | |
96 | 97 | ||
97 | 98 | ||
98 | - | func N (O,I | |
99 | - | let | |
100 | - | let | |
101 | - | let A = | |
99 | + | func N (O,I) = { | |
100 | + | let P = getInteger(this, (O + "_Freezed")) | |
101 | + | let Q = { | |
102 | + | let A = P | |
102 | 103 | if ($isInstanceOf(A, "Int")) | |
103 | 104 | then { | |
104 | 105 | let z = A | |
106 | 107 | } | |
107 | 108 | else 0 | |
108 | 109 | } | |
109 | - | ((R + I) - P) | |
110 | + | (Q + I) | |
111 | + | } | |
112 | + | ||
113 | + | ||
114 | + | func R (O,I) = { | |
115 | + | let P = getInteger(this, (O + "_Freezed")) | |
116 | + | let Q = { | |
117 | + | let A = P | |
118 | + | if ($isInstanceOf(A, "Int")) | |
119 | + | then { | |
120 | + | let z = A | |
121 | + | z | |
122 | + | } | |
123 | + | else 0 | |
124 | + | } | |
125 | + | let z = (Q - I) | |
126 | + | if ((z > 0)) | |
127 | + | then z | |
128 | + | else throw("Freezed amount couldn't be less than 0") | |
110 | 129 | } | |
111 | 130 | ||
112 | 131 | ||
123 | 142 | ||
124 | 143 | ||
125 | 144 | @Callable(U) | |
126 | - | func | |
145 | + | func freelancerSignUp (V) = { | |
127 | 146 | let W = toBase58String(U.callerPublicKey) | |
128 | - | let X = getString(this, (W + "_ | |
147 | + | let X = getString(this, (W + "_Freelancer")) | |
129 | 148 | if (isDefined(X)) | |
130 | 149 | then throw("User already registered") | |
131 | 150 | else WriteSet([DataEntry((W + "_Registered"), V)]) | |
134 | 153 | ||
135 | 154 | ||
136 | 155 | @Callable(U) | |
137 | - | func createAuction (Y) = { | |
138 | - | let x = toBase58String(U.transactionId) | |
139 | - | let Z = toBase58String(U.callerPublicKey) | |
140 | - | let aa = extract(U.payment) | |
141 | - | let I = if ((aa.amount > 0)) | |
142 | - | then aa.amount | |
143 | - | else throw("Amount must be higher then 0") | |
144 | - | let ab = height | |
145 | - | let ac = (Y * b) | |
146 | - | let P = ((I * 3) / 100) | |
147 | - | let O = if (!(isDefined(aa.assetId))) | |
148 | - | then "WAVES" | |
149 | - | else if ((aa.assetId == e)) | |
150 | - | then "BTC" | |
151 | - | else if ((aa.assetId == f)) | |
152 | - | then "EUR" | |
153 | - | else if ((aa.assetId == g)) | |
154 | - | then "USD" | |
155 | - | else throw("AssetId is incorrect") | |
156 | - | let ad = N(O, I, P) | |
157 | - | WriteSet([DataEntry(x, ((((((((((h + "_") + Z) + "_") + toString(ab)) + "_") + toString(ac)) + "_") + O) + "_") + toString(I))), DataEntry((O + "_Freezed"), ad)]) | |
156 | + | func clientSignUp (V) = { | |
157 | + | let W = toBase58String(U.callerPublicKey) | |
158 | + | let X = getString(this, (W + "_Client")) | |
159 | + | if (isDefined(X)) | |
160 | + | then throw("User already registered") | |
161 | + | else WriteSet([DataEntry((W + "_Client"), V)]) | |
158 | 162 | } | |
159 | 163 | ||
160 | 164 | ||
161 | 165 | ||
162 | 166 | @Callable(U) | |
163 | - | func makeBet (x,H) = { | |
164 | - | let aa = extract(U.payment) | |
165 | - | let ae = aa.assetId | |
166 | - | let T = toBase58String(U.callerPublicKey) | |
167 | - | let af = height | |
168 | - | let ag = w(x) | |
169 | - | let ah = ag[0] | |
170 | - | let Z = fromBase58String(ag[1]) | |
171 | - | let ab = parseIntValue(ag[2]) | |
172 | - | let F = ag[4] | |
173 | - | let I = parseIntValue(ag[5]) | |
174 | - | let ai = E(F) | |
175 | - | let aj = G(H, I) | |
176 | - | let ak = S(T) | |
177 | - | let O = if ((ae == d)) | |
167 | + | func createAuction (Y,Z) = { | |
168 | + | let w = toBase58String(U.transactionId) | |
169 | + | let aa = toBase58String(U.callerPublicKey) | |
170 | + | let ab = extract(U.payment) | |
171 | + | let ac = ab.amount | |
172 | + | let I = if ((ac > 0)) | |
173 | + | then ac | |
174 | + | else throw("Amount must be higher then 0") | |
175 | + | let ad = height | |
176 | + | let ae = (Z * a) | |
177 | + | let af = (Y * a) | |
178 | + | let O = if (!(isDefined(ab.assetId))) | |
178 | 179 | then "WAVES" | |
179 | - | else if (( | |
180 | + | else if ((ab.assetId == d)) | |
180 | 181 | then "BTC" | |
181 | - | else if (( | |
182 | + | else if ((ab.assetId == e)) | |
182 | 183 | then "EUR" | |
183 | - | else if (( | |
184 | + | else if ((ab.assetId == f)) | |
184 | 185 | then "USD" | |
185 | 186 | else throw("AssetId is incorrect") | |
186 | - | let al = J(af, ab, a) | |
187 | - | if ((ae == ai)) | |
188 | - | then if (al) | |
189 | - | then if ((ah == h)) | |
190 | - | then { | |
191 | - | let am = ((((((((ag[1] + "_") + ag[2]) + "_") + ag[3]) + "_") + ag[4]) + "_") + ag[5]) | |
192 | - | let an = (I - ((I * 3) / 100)) | |
193 | - | ScriptResult(WriteSet([DataEntry(x, ((j + "_") + am))]), TransferSet([ScriptTransfer(addressFromPublicKey(Z), an, ai)])) | |
194 | - | } | |
195 | - | else if ((ah == i)) | |
196 | - | then { | |
197 | - | let am = ((((((((((ag[1] + "_") + ag[2]) + "_") + ag[3]) + "_") + ag[4]) + "_") + ag[5]) + "_") + ag[6]) | |
198 | - | WriteSet([DataEntry(x, ((k + "_") + am))]) | |
199 | - | } | |
200 | - | else throw(((((("Incorrect auctionId state. Now: " + ah) + ", must be: ") + h) + " or ") + i)) | |
201 | - | else if (if ((ah == h)) | |
202 | - | then true | |
203 | - | else (ah == i)) | |
204 | - | then { | |
205 | - | let am = ((((((ag[1] + "_") + ag[2]) + "_") + ag[3]) + "_") + ag[4]) | |
206 | - | WriteSet([DataEntry(x, ((((((i + "_") + am) + "_") + toString(aj)) + "_") + ak))]) | |
207 | - | } | |
208 | - | else throw(((((("Incorrect jobId state. Now: " + ah) + ", must be: ") + h) + " or ") + i)) | |
209 | - | else throw(("Payment must be in " + F)) | |
187 | + | let ag = N(O, I) | |
188 | + | WriteSet([DataEntry(v(w), ((((((((((((g + "_") + aa) + "_") + toString(ad)) + "_") + toString(ae)) + "_") + toString(af)) + "_") + O) + "_") + toString(I))), DataEntry((O + "_Freezed"), ag)]) | |
210 | 189 | } | |
211 | 190 | ||
212 | 191 | ||
213 | 192 | ||
214 | 193 | @Callable(U) | |
215 | - | func increaseExecutionTime (x,Y) = { | |
194 | + | func makeBid (w,H) = { | |
195 | + | let ah = toBase58String(U.callerPublicKey) | |
196 | + | let ai = height | |
197 | + | let aj = v(w) | |
198 | + | let ak = x(aj) | |
199 | + | let al = ak[0] | |
200 | + | let aa = fromBase58String(ak[1]) | |
201 | + | let ad = parseIntValue(ak[2]) | |
202 | + | let am = parseIntValue(ak[3]) | |
203 | + | let an = parseIntValue(ak[4]) | |
204 | + | let F = ak[5] | |
205 | + | let I = parseIntValue(ak[6]) | |
206 | + | let ao = E(F) | |
207 | + | let ap = G(H, I) | |
208 | + | let aq = S(ah) | |
209 | + | let ar = ((I * 3) / 100) | |
210 | + | let ag = R(F, I) | |
211 | + | let as = J(ai, ad, am) | |
212 | + | if (as) | |
213 | + | then if ((al == g)) | |
214 | + | then ScriptResult(WriteSet([DataEntry(aj, ((((((((((((((((i + "_") + toBase58String(aa)) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(I)) + "_") + "NoFreelancer") + "_") + "NoBid")), DataEntry((F + "_Freezed"), ag)]), TransferSet([ScriptTransfer(addressFromPublicKey(aa), (I - ar), ao)])) | |
215 | + | else if ((al == h)) | |
216 | + | then { | |
217 | + | let at = ak[7] | |
218 | + | let au = ak[8] | |
219 | + | WriteSet([DataEntry(aj, ((((((((((((((((j + "_") + toBase58String(aa)) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(I)) + "_") + at) + "_") + au))]) | |
220 | + | } | |
221 | + | else throw("Incorrect auction state") | |
222 | + | else if ((al == g)) | |
223 | + | then WriteSet([DataEntry(((w + "_") + aq), H), DataEntry(aj, ((((((((((((((h + "_") + toBase58String(aa)) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(I)) + "_") + aq))]) | |
224 | + | else if ((al == h)) | |
225 | + | then { | |
226 | + | let av = ak[7] | |
227 | + | let aw = { | |
228 | + | let ax = ((w + "_") + av) | |
229 | + | let ay = getInteger(this, ax) | |
230 | + | let az = { | |
231 | + | let A = ay | |
232 | + | if ($isInstanceOf(A, "Int")) | |
233 | + | then { | |
234 | + | let z = A | |
235 | + | z | |
236 | + | } | |
237 | + | else throw("Can't find lowest bid by public key") | |
238 | + | } | |
239 | + | if ((az > ap)) | |
240 | + | then aq | |
241 | + | else av | |
242 | + | } | |
243 | + | WriteSet([DataEntry(((w + "_") + ah), H), DataEntry(aj, ((((((((((((((h + "_") + toBase58String(aa)) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(I)) + "_") + aw))]) | |
244 | + | } | |
245 | + | else throw(((((("Incorrect jobId state. Now: " + al) + ", must be: ") + g) + " or ") + h)) | |
246 | + | } | |
247 | + | ||
248 | + | ||
249 | + | ||
250 | + | @Callable(U) | |
251 | + | func chooseFreelancer (w,aA) = { | |
252 | + | let ah = toBase58String(U.callerPublicKey) | |
253 | + | let ai = height | |
254 | + | let aj = v(w) | |
255 | + | let ak = x(aj) | |
256 | + | let al = ak[0] | |
257 | + | let aa = ak[1] | |
258 | + | let ad = parseIntValue(ak[2]) | |
259 | + | let am = parseIntValue(ak[3]) | |
260 | + | let an = parseIntValue(ak[4]) | |
261 | + | let F = ak[5] | |
262 | + | let I = parseIntValue(ak[6]) | |
263 | + | let ao = E(F) | |
264 | + | let aB = { | |
265 | + | let aC = ((w + "_") + aA) | |
266 | + | let aD = getInteger(this, aC) | |
267 | + | let A = aD | |
268 | + | if ($isInstanceOf(A, "Int")) | |
269 | + | then { | |
270 | + | let z = A | |
271 | + | z | |
272 | + | } | |
273 | + | else throw("Freelancer's bet was not found") | |
274 | + | } | |
275 | + | let ar = ((I * 3) / 100) | |
276 | + | let aE = ((I - aB) - ar) | |
277 | + | let as = J(ai, ad, am) | |
278 | + | if ((ah == aa)) | |
279 | + | then if (as) | |
280 | + | then if ((al == g)) | |
281 | + | then ScriptResult(WriteSet([DataEntry(aj, ((((((((((((((((i + "_") + aa) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(I)) + "_") + "NoFreelancer") + "_") + "NoBid"))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aa)), (I - ar), ao)])) | |
282 | + | else if ((al == h)) | |
283 | + | then WriteSet([DataEntry(aj, ((((((((((((j + "_") + aa) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(I)))]) | |
284 | + | else throw("Incorrect auction state") | |
285 | + | else ScriptResult(WriteSet([DataEntry(aj, ((((((((((((((j + "_") + aa) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(aB)) + "_") + aA))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aa)), aE, ao)])) | |
286 | + | else throw("Only auction customer can choose a freelancer") | |
287 | + | } | |
288 | + | ||
289 | + | ||
290 | + | ||
291 | + | @Callable(U) | |
292 | + | func increaseExecutionTime (w,aF) = { | |
216 | 293 | let T = toBase58String(U.callerPublicKey) | |
217 | - | let ag = w(x) | |
218 | - | let ah = ag[0] | |
219 | - | let Z = ag[1] | |
220 | - | let ao = parseIntValue(ag[3]) | |
221 | - | let ap = { | |
222 | - | let aq = (Y * b) | |
223 | - | if ((aq > ao)) | |
224 | - | then aq | |
294 | + | let aj = v(w) | |
295 | + | let ak = x(aj) | |
296 | + | let al = ak[0] | |
297 | + | let aa = ak[1] | |
298 | + | let aG = parseIntValue(ak[3]) | |
299 | + | let aH = { | |
300 | + | let aI = (aF * a) | |
301 | + | if ((aI > aG)) | |
302 | + | then aI | |
225 | 303 | else throw("New execution time must more than current execution time") | |
226 | 304 | } | |
227 | - | if ((T == | |
228 | - | then if (if (if (( | |
305 | + | if ((T == aa)) | |
306 | + | then if (if (if ((al == g)) | |
229 | 307 | then true | |
230 | - | else ( | |
308 | + | else (al == h)) | |
231 | 309 | then true | |
232 | - | else ( | |
310 | + | else (al == j)) | |
233 | 311 | then { | |
234 | - | let | |
235 | - | WriteSet([DataEntry( | |
312 | + | let aJ = ((((((((((((al + "_") + aa) + "_") + ak[2]) + "_") + toString(aH)) + "_") + ak[4]) + "_") + ak[5]) + "_") + ak[6]) | |
313 | + | WriteSet([DataEntry(aj, aJ)]) | |
236 | 314 | } | |
237 | 315 | else throw("Incorrect state") | |
238 | 316 | else throw("Only customer can increase execution time") | |
241 | 319 | ||
242 | 320 | ||
243 | 321 | @Callable(U) | |
244 | - | func cancelAuction (x) = { | |
245 | - | let ag = w(x) | |
246 | - | let ah = ag[0] | |
247 | - | let Z = fromBase58String(ag[1]) | |
248 | - | let as = if ((U.callerPublicKey == Z)) | |
322 | + | func cancelAuction (w) = { | |
323 | + | let aj = v(w) | |
324 | + | let ak = x(aj) | |
325 | + | let al = ak[0] | |
326 | + | let aa = fromBase58String(ak[1]) | |
327 | + | let aK = if ((U.callerPublicKey == aa)) | |
249 | 328 | then true | |
250 | 329 | else throw("Auction can be canceled only by owner.") | |
251 | - | if (( | |
330 | + | if ((al == g)) | |
252 | 331 | then { | |
253 | - | let | |
254 | - | WriteSet([DataEntry( | |
332 | + | let aL = ((((((((ak[1] + "_") + ak[2]) + "_") + ak[3]) + "_") + ak[4]) + "_") + ak[5]) | |
333 | + | WriteSet([DataEntry(aj, ((i + "_") + aL))]) | |
255 | 334 | } | |
256 | 335 | else throw("Incorrect auction state.") | |
257 | 336 | } | |
259 | 338 | ||
260 | 339 | ||
261 | 340 | @Callable(U) | |
262 | - | func openDispute ( | |
341 | + | func openDispute (w) = { | |
263 | 342 | let T = toBase58String(U.callerPublicKey) | |
264 | - | let ag = w(x) | |
265 | - | let ah = ag[0] | |
266 | - | let Z = ag[1] | |
267 | - | let at = ag[6] | |
268 | - | if (if ((T == Z)) | |
343 | + | let aj = v(w) | |
344 | + | let ak = x(aj) | |
345 | + | let al = ak[0] | |
346 | + | let aa = ak[1] | |
347 | + | let at = ak[6] | |
348 | + | if (if ((T == aa)) | |
269 | 349 | then true | |
270 | 350 | else (T == at)) | |
271 | 351 | then { | |
272 | - | let | |
273 | - | WriteSet([DataEntry( | |
352 | + | let aL = "1" | |
353 | + | WriteSet([DataEntry(aj, (m + aL)), DataEntry((w + "_Dispute"), "0")]) | |
274 | 354 | } | |
275 | 355 | else throw("Only customer and freelancer can open dispute") | |
276 | 356 | } | |
278 | 358 | ||
279 | 359 | ||
280 | 360 | @Callable(U) | |
281 | - | func voteDispute (x,au) = { | |
282 | - | let ag = w(x) | |
283 | - | let av = { | |
284 | - | let ah = ag[0] | |
285 | - | if ((ah == n)) | |
361 | + | func voteDispute (w,aM) = { | |
362 | + | let aj = v(w) | |
363 | + | let ak = x(aj) | |
364 | + | let aN = { | |
365 | + | let al = ak[0] | |
366 | + | if ((al == m)) | |
286 | 367 | then true | |
287 | - | else throw(("Incorrect state. Must be: " + | |
368 | + | else throw(("Incorrect state. Must be: " + m)) | |
288 | 369 | } | |
289 | - | let | |
290 | - | let I = parseIntValue( | |
291 | - | let | |
370 | + | let aO = ak[4] | |
371 | + | let I = parseIntValue(ak[5]) | |
372 | + | let aP = if (if ((aM == o)) | |
292 | 373 | then true | |
293 | - | else (au == q)) | |
294 | - | then au | |
295 | - | else throw(((("Vote is incorrect. Must be: " + p) + " or ") + q)) | |
296 | - | let ay = if (if (if (if (if ((U.callerPublicKey == r)) | |
374 | + | else (aM == p)) | |
375 | + | then aM | |
376 | + | else throw(((("Vote is incorrect. Must be: " + o) + " or ") + p)) | |
377 | + | let aQ = if (if (if (if (if ((U.callerPublicKey == q)) | |
378 | + | then true | |
379 | + | else (U.callerPublicKey == r)) | |
297 | 380 | then true | |
298 | 381 | else (U.callerPublicKey == s)) | |
299 | 382 | then true | |
300 | 383 | else (U.callerPublicKey == t)) | |
301 | 384 | then true | |
302 | 385 | else (U.callerPublicKey == u)) | |
303 | - | then true | |
304 | - | else (U.callerPublicKey == v)) | |
305 | 386 | then toBase58String(U.callerPublicKey) | |
306 | 387 | else throw("You have no rights for disputes resolving") | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let A = | |
388 | + | let aR = { | |
389 | + | let aS = ((w + "_") + m) | |
390 | + | let aT = getString(this, aS) | |
391 | + | let A = aT | |
311 | 392 | if ($isInstanceOf(A, "String")) | |
312 | 393 | then { | |
313 | 394 | let z = A | |
315 | 396 | } | |
316 | 397 | else throw("Cannot find data of dispute in storage") | |
317 | 398 | } | |
318 | - | let | |
319 | - | let | |
320 | - | if (( | |
399 | + | let aU = split(aR, "/") | |
400 | + | let aV = aU[0] | |
401 | + | if ((aV == "4")) | |
321 | 402 | then { | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
403 | + | let aW = split(aU[1], "_") | |
404 | + | let aX = split(aU[2], "_") | |
405 | + | let aY = if ((aQ == aW[0])) | |
325 | 406 | then true | |
326 | - | else ( | |
327 | - | if ( | |
407 | + | else (aQ == aW[1]) | |
408 | + | if (aY) | |
328 | 409 | then throw("You already voted") | |
329 | 410 | else { | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
411 | + | let aZ = "5" | |
412 | + | let ba = ((aU[1] + "_") + aQ) | |
413 | + | let bb = ((aU[2] + "_") + aP) | |
414 | + | let bc = ((((aZ + "/") + ba) + "/") + bb) | |
415 | + | let bd = { | |
416 | + | let be = if ((aX[0] == o)) | |
336 | 417 | then 1 | |
337 | 418 | else 0 | |
338 | - | let | |
419 | + | let bf = if ((aX[1] == o)) | |
339 | 420 | then 1 | |
340 | 421 | else 0 | |
341 | - | let | |
422 | + | let bg = if ((aX[2] == o)) | |
342 | 423 | then 1 | |
343 | 424 | else 0 | |
344 | - | let | |
425 | + | let bh = if ((aX[3] == o)) | |
345 | 426 | then 1 | |
346 | 427 | else 0 | |
347 | - | let | |
428 | + | let bi = if ((aP == o)) | |
348 | 429 | then 1 | |
349 | 430 | else 0 | |
350 | - | let | |
351 | - | if (( | |
352 | - | then | |
353 | - | else | |
431 | + | let bj = ((((be + bf) + bg) + bh) + bi) | |
432 | + | if ((bj > 2)) | |
433 | + | then o | |
434 | + | else p | |
354 | 435 | } | |
355 | - | let | |
356 | - | let | |
357 | - | then | |
358 | - | else | |
359 | - | let | |
360 | - | ScriptResult(WriteSet([DataEntry( | |
436 | + | let aJ = ((((((((((ak[1] + "_") + ak[2]) + "_") + ak[3]) + "_") + ak[4]) + "_") + ak[5]) + "_") + ak[6]) | |
437 | + | let bk = if ((bd == o)) | |
438 | + | then ak[1] | |
439 | + | else ak[6] | |
440 | + | let bl = (I - ((I * 3) / 100)) | |
441 | + | ScriptResult(WriteSet([DataEntry(v(w), (n + aJ)), DataEntry(((w + "_") + m), bc)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(bk)), bl, fromBase58String(aO))])) | |
361 | 442 | } | |
362 | 443 | } | |
363 | 444 | else { | |
364 | - | let | |
445 | + | let bc = if ((aV == "0")) | |
365 | 446 | then { | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | | |
447 | + | let aZ = "1" | |
448 | + | let ba = aQ | |
449 | + | let bb = aP | |
450 | + | let aJ = ((((aZ + "/") + ba) + "/") + bb) | |
451 | + | aJ | |
371 | 452 | } | |
372 | - | else if (( | |
453 | + | else if ((aV == "1")) | |
373 | 454 | then { | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | if ( | |
455 | + | let bm = aU[1] | |
456 | + | let be = aU[2] | |
457 | + | let aY = (aQ == bm) | |
458 | + | if (aY) | |
378 | 459 | then throw("You already voted") | |
379 | 460 | else { | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | | |
461 | + | let aZ = "1" | |
462 | + | let ba = (bm + aQ) | |
463 | + | let bb = (be + aP) | |
464 | + | let aJ = ((((aZ + "/") + ba) + "/") + bb) | |
465 | + | aJ | |
385 | 466 | } | |
386 | 467 | } | |
387 | - | else if (( | |
468 | + | else if ((aV == "2")) | |
388 | 469 | then { | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
470 | + | let aW = split(aU[1], "_") | |
471 | + | let aX = split(aU[2], "_") | |
472 | + | let aY = if ((aQ == aW[0])) | |
392 | 473 | then true | |
393 | - | else ( | |
394 | - | if ( | |
474 | + | else (aQ == aW[1]) | |
475 | + | if (aY) | |
395 | 476 | then throw("You already voted") | |
396 | 477 | else { | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | | |
478 | + | let aZ = "3" | |
479 | + | let ba = ((aU[1] + "_") + aQ) | |
480 | + | let bb = ((aU[2] + "_") + aP) | |
481 | + | let aJ = ((((aZ + "/") + ba) + "/") + bb) | |
482 | + | aJ | |
402 | 483 | } | |
403 | 484 | } | |
404 | - | else if (( | |
485 | + | else if ((aV == "3")) | |
405 | 486 | then { | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
487 | + | let aW = split(aU[1], "_") | |
488 | + | let aX = split(aU[2], "_") | |
489 | + | let aY = if (if ((aQ == aW[0])) | |
409 | 490 | then true | |
410 | - | else ( | |
491 | + | else (aQ == aW[1])) | |
411 | 492 | then true | |
412 | - | else ( | |
413 | - | if ( | |
493 | + | else (aQ == aW[2]) | |
494 | + | if (aY) | |
414 | 495 | then throw("You already voted") | |
415 | 496 | else { | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | | |
497 | + | let aZ = "4" | |
498 | + | let ba = ((aU[1] + "_") + aQ) | |
499 | + | let bb = ((aU[2] + "_") + aP) | |
500 | + | let aJ = ((((aZ + "/") + ba) + "/") + bb) | |
501 | + | aJ | |
421 | 502 | } | |
422 | 503 | } | |
423 | 504 | else throw("Dispute has been already resolved") | |
424 | - | WriteSet([DataEntry((( | |
505 | + | WriteSet([DataEntry(((w + "_") + m), bc)]) | |
425 | 506 | } | |
426 | 507 | } | |
427 | 508 | ||
428 | 509 | ||
429 | 510 | ||
430 | 511 | @Callable(U) | |
431 | - | func workIsDone (x) = { | |
432 | - | let ag = w(x) | |
433 | - | let ah = ag[0] | |
434 | - | let ab = parseIntValue(ag[2]) | |
435 | - | let ao = parseIntValue(ag[3]) | |
512 | + | func workIsDone (w) = { | |
513 | + | let aj = v(w) | |
514 | + | let ak = x(aj) | |
515 | + | let al = ak[0] | |
516 | + | let ad = parseIntValue(ak[2]) | |
517 | + | let aG = parseIntValue(ak[3]) | |
436 | 518 | let K = height | |
437 | - | let | |
519 | + | let bn = { | |
438 | 520 | let T = toBase58String(U.callerPublicKey) | |
439 | - | let at = | |
521 | + | let at = ak[6] | |
440 | 522 | if ((T == at)) | |
441 | 523 | then T | |
442 | 524 | else throw("Only a freelancer can indicate that the work is done") | |
443 | 525 | } | |
444 | - | let | |
445 | - | if (( | |
446 | - | then if ( | |
526 | + | let bo = ((K - ad) > aG) | |
527 | + | if ((al == j)) | |
528 | + | then if (bo) | |
447 | 529 | then { | |
448 | - | let | |
449 | - | WriteSet([DataEntry( | |
530 | + | let aJ = ((((((((((ak[1] + "_") + ak[2]) + "_") + ak[3]) + "_") + ak[4]) + "_") + ak[5]) + "_") + ak[6]) | |
531 | + | WriteSet([DataEntry(aj, (m + aJ))]) | |
450 | 532 | } | |
451 | 533 | else { | |
452 | - | let | |
453 | - | WriteSet([DataEntry( | |
534 | + | let aJ = ((((((((((ak[1] + "_") + ak[2]) + "_") + ak[3]) + "_") + ak[4]) + "_") + ak[5]) + "_") + ak[6]) | |
535 | + | WriteSet([DataEntry(aj, (k + aJ))]) | |
454 | 536 | } | |
455 | 537 | else throw("Auction state is incorrect") | |
456 | 538 | } | |
458 | 540 | ||
459 | 541 | ||
460 | 542 | @Callable(U) | |
461 | - | func acceptByCustomer (x) = { | |
462 | - | let ag = w(x) | |
463 | - | let ah = ag[0] | |
464 | - | let Z = ag[1] | |
465 | - | let F = ag[4] | |
466 | - | let I = parseIntValue(ag[5]) | |
467 | - | let at = ag[6] | |
543 | + | func acceptByCustomer (w) = { | |
544 | + | let aj = v(w) | |
545 | + | let ak = x(aj) | |
546 | + | let al = ak[0] | |
547 | + | let aa = ak[1] | |
548 | + | let F = ak[4] | |
549 | + | let I = parseIntValue(ak[5]) | |
550 | + | let at = ak[6] | |
468 | 551 | let T = toBase58String(U.callerPublicKey) | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let A = | |
552 | + | let ar = ((I * 3) / 100) | |
553 | + | let bl = (I - ar) | |
554 | + | let ao = E(F) | |
555 | + | let bp = { | |
556 | + | let bq = getInteger(this, (at + "_Rating")) | |
557 | + | let br = { | |
558 | + | let A = bq | |
476 | 559 | if ($isInstanceOf(A, "Int")) | |
477 | 560 | then { | |
478 | 561 | let z = A | |
480 | 563 | } | |
481 | 564 | else 0 | |
482 | 565 | } | |
483 | - | ( | |
566 | + | (br + 1) | |
484 | 567 | } | |
485 | - | if ((T == | |
486 | - | then if (( | |
568 | + | if ((T == aa)) | |
569 | + | then if ((al == k)) | |
487 | 570 | then { | |
488 | - | let | |
489 | - | ScriptResult(WriteSet([DataEntry( | |
571 | + | let aJ = ((((((((((ak[1] + "_") + ak[2]) + "_") + ak[3]) + "_") + ak[4]) + "_") + ak[5]) + "_") + ak[6]) | |
572 | + | ScriptResult(WriteSet([DataEntry(aj, (l + aJ)), DataEntry((at + "_Rating"), bp)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(at)), bl, ao)])) | |
490 | 573 | } | |
491 | - | else throw(("Incorrect state. Must be: " + | |
574 | + | else throw(("Incorrect state. Must be: " + k)) | |
492 | 575 | else throw("Only auction customer can use this function") | |
493 | 576 | } | |
494 | 577 | ||
495 | 578 | ||
496 | - | @Verifier( | |
497 | - | func | |
579 | + | @Verifier(bs) | |
580 | + | func bt () = if (sigVerify(bs.bodyBytes, bs.proofs[0], bs.senderPublicKey)) | |
498 | 581 | then { | |
499 | - | let A = | |
582 | + | let A = bs | |
500 | 583 | if ($isInstanceOf(A, "TransferTransaction")) | |
501 | 584 | then { | |
502 | - | let | |
585 | + | let bu = A | |
503 | 586 | true | |
504 | 587 | } | |
505 | 588 | else if ($isInstanceOf(A, "SetScriptTransaction")) | |
506 | 589 | then { | |
507 | - | let | |
590 | + | let bv = A | |
508 | 591 | true | |
509 | 592 | } | |
510 | 593 | else false |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = 1440 | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = 3 | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = unit | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS' | |
11 | 11 | ||
12 | - | let e = base58' | |
12 | + | let e = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU' | |
13 | 13 | ||
14 | - | let f = base58' | |
14 | + | let f = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck' | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = "Opened" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "Suggested" | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "Canceled" | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "InProgress" | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "WaitForConfirmation" | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "Completed" | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "Dispute" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "DisputeResolved" | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "CMR" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "FL" | |
35 | 35 | ||
36 | - | let q = | |
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 | let u = base58'1' | |
45 | 45 | ||
46 | - | ||
46 | + | func v (w) = (w + "_Auction") | |
47 | 47 | ||
48 | - | func w (x) = { | |
49 | - | let y = getString(this, x) | |
48 | + | ||
49 | + | func x (w) = { | |
50 | + | let y = getString(this, w) | |
50 | 51 | let z = { | |
51 | 52 | let A = y | |
52 | 53 | if ($isInstanceOf(A, "String")) | |
53 | 54 | then { | |
54 | 55 | let z = A | |
55 | 56 | z | |
56 | 57 | } | |
57 | 58 | else throw("AuctionId was not found") | |
58 | 59 | } | |
59 | 60 | split(z, "_") | |
60 | 61 | } | |
61 | 62 | ||
62 | 63 | ||
63 | - | func B ( | |
64 | - | let C = (( | |
64 | + | func B (w) = { | |
65 | + | let C = ((w + "_") + m) | |
65 | 66 | let D = getString(this, C) | |
66 | 67 | let z = { | |
67 | 68 | let A = D | |
68 | 69 | if ($isInstanceOf(A, "String")) | |
69 | 70 | then { | |
70 | 71 | let z = A | |
71 | 72 | z | |
72 | 73 | } | |
73 | 74 | else throw("Dispute data was not found") | |
74 | 75 | } | |
75 | 76 | split(z, "/") | |
76 | 77 | } | |
77 | 78 | ||
78 | 79 | ||
79 | 80 | func E (F) = if ((F == "WAVES")) | |
80 | - | then | |
81 | + | then c | |
81 | 82 | else if ((F == "BTC")) | |
82 | - | then | |
83 | + | then d | |
83 | 84 | else if ((F == "EUR")) | |
84 | - | then | |
85 | + | then e | |
85 | 86 | else if ((F == "USD")) | |
86 | - | then | |
87 | + | then f | |
87 | 88 | else throw("Incorrect Asset Id") | |
88 | 89 | ||
89 | 90 | ||
90 | 91 | func G (H,I) = if ((I > H)) | |
91 | 92 | then H | |
92 | 93 | else throw(("Bet price must be lower than actual price. Actual price: " + toString(I))) | |
93 | 94 | ||
94 | 95 | ||
95 | 96 | func J (K,L,M) = ((K - L) > M) | |
96 | 97 | ||
97 | 98 | ||
98 | - | func N (O,I | |
99 | - | let | |
100 | - | let | |
101 | - | let A = | |
99 | + | func N (O,I) = { | |
100 | + | let P = getInteger(this, (O + "_Freezed")) | |
101 | + | let Q = { | |
102 | + | let A = P | |
102 | 103 | if ($isInstanceOf(A, "Int")) | |
103 | 104 | then { | |
104 | 105 | let z = A | |
105 | 106 | z | |
106 | 107 | } | |
107 | 108 | else 0 | |
108 | 109 | } | |
109 | - | ((R + I) - P) | |
110 | + | (Q + I) | |
111 | + | } | |
112 | + | ||
113 | + | ||
114 | + | func R (O,I) = { | |
115 | + | let P = getInteger(this, (O + "_Freezed")) | |
116 | + | let Q = { | |
117 | + | let A = P | |
118 | + | if ($isInstanceOf(A, "Int")) | |
119 | + | then { | |
120 | + | let z = A | |
121 | + | z | |
122 | + | } | |
123 | + | else 0 | |
124 | + | } | |
125 | + | let z = (Q - I) | |
126 | + | if ((z > 0)) | |
127 | + | then z | |
128 | + | else throw("Freezed amount couldn't be less than 0") | |
110 | 129 | } | |
111 | 130 | ||
112 | 131 | ||
113 | 132 | func S (T) = { | |
114 | 133 | let S = getString(this, (T + "_Status")) | |
115 | 134 | let A = S | |
116 | 135 | if ($isInstanceOf(A, "String")) | |
117 | 136 | then { | |
118 | 137 | let z = A | |
119 | 138 | z | |
120 | 139 | } | |
121 | 140 | else throw("Only registered users can make bets") | |
122 | 141 | } | |
123 | 142 | ||
124 | 143 | ||
125 | 144 | @Callable(U) | |
126 | - | func | |
145 | + | func freelancerSignUp (V) = { | |
127 | 146 | let W = toBase58String(U.callerPublicKey) | |
128 | - | let X = getString(this, (W + "_ | |
147 | + | let X = getString(this, (W + "_Freelancer")) | |
129 | 148 | if (isDefined(X)) | |
130 | 149 | then throw("User already registered") | |
131 | 150 | else WriteSet([DataEntry((W + "_Registered"), V)]) | |
132 | 151 | } | |
133 | 152 | ||
134 | 153 | ||
135 | 154 | ||
136 | 155 | @Callable(U) | |
137 | - | func createAuction (Y) = { | |
138 | - | let x = toBase58String(U.transactionId) | |
139 | - | let Z = toBase58String(U.callerPublicKey) | |
140 | - | let aa = extract(U.payment) | |
141 | - | let I = if ((aa.amount > 0)) | |
142 | - | then aa.amount | |
143 | - | else throw("Amount must be higher then 0") | |
144 | - | let ab = height | |
145 | - | let ac = (Y * b) | |
146 | - | let P = ((I * 3) / 100) | |
147 | - | let O = if (!(isDefined(aa.assetId))) | |
148 | - | then "WAVES" | |
149 | - | else if ((aa.assetId == e)) | |
150 | - | then "BTC" | |
151 | - | else if ((aa.assetId == f)) | |
152 | - | then "EUR" | |
153 | - | else if ((aa.assetId == g)) | |
154 | - | then "USD" | |
155 | - | else throw("AssetId is incorrect") | |
156 | - | let ad = N(O, I, P) | |
157 | - | WriteSet([DataEntry(x, ((((((((((h + "_") + Z) + "_") + toString(ab)) + "_") + toString(ac)) + "_") + O) + "_") + toString(I))), DataEntry((O + "_Freezed"), ad)]) | |
156 | + | func clientSignUp (V) = { | |
157 | + | let W = toBase58String(U.callerPublicKey) | |
158 | + | let X = getString(this, (W + "_Client")) | |
159 | + | if (isDefined(X)) | |
160 | + | then throw("User already registered") | |
161 | + | else WriteSet([DataEntry((W + "_Client"), V)]) | |
158 | 162 | } | |
159 | 163 | ||
160 | 164 | ||
161 | 165 | ||
162 | 166 | @Callable(U) | |
163 | - | func makeBet (x,H) = { | |
164 | - | let aa = extract(U.payment) | |
165 | - | let ae = aa.assetId | |
166 | - | let T = toBase58String(U.callerPublicKey) | |
167 | - | let af = height | |
168 | - | let ag = w(x) | |
169 | - | let ah = ag[0] | |
170 | - | let Z = fromBase58String(ag[1]) | |
171 | - | let ab = parseIntValue(ag[2]) | |
172 | - | let F = ag[4] | |
173 | - | let I = parseIntValue(ag[5]) | |
174 | - | let ai = E(F) | |
175 | - | let aj = G(H, I) | |
176 | - | let ak = S(T) | |
177 | - | let O = if ((ae == d)) | |
167 | + | func createAuction (Y,Z) = { | |
168 | + | let w = toBase58String(U.transactionId) | |
169 | + | let aa = toBase58String(U.callerPublicKey) | |
170 | + | let ab = extract(U.payment) | |
171 | + | let ac = ab.amount | |
172 | + | let I = if ((ac > 0)) | |
173 | + | then ac | |
174 | + | else throw("Amount must be higher then 0") | |
175 | + | let ad = height | |
176 | + | let ae = (Z * a) | |
177 | + | let af = (Y * a) | |
178 | + | let O = if (!(isDefined(ab.assetId))) | |
178 | 179 | then "WAVES" | |
179 | - | else if (( | |
180 | + | else if ((ab.assetId == d)) | |
180 | 181 | then "BTC" | |
181 | - | else if (( | |
182 | + | else if ((ab.assetId == e)) | |
182 | 183 | then "EUR" | |
183 | - | else if (( | |
184 | + | else if ((ab.assetId == f)) | |
184 | 185 | then "USD" | |
185 | 186 | else throw("AssetId is incorrect") | |
186 | - | let al = J(af, ab, a) | |
187 | - | if ((ae == ai)) | |
188 | - | then if (al) | |
189 | - | then if ((ah == h)) | |
190 | - | then { | |
191 | - | let am = ((((((((ag[1] + "_") + ag[2]) + "_") + ag[3]) + "_") + ag[4]) + "_") + ag[5]) | |
192 | - | let an = (I - ((I * 3) / 100)) | |
193 | - | ScriptResult(WriteSet([DataEntry(x, ((j + "_") + am))]), TransferSet([ScriptTransfer(addressFromPublicKey(Z), an, ai)])) | |
194 | - | } | |
195 | - | else if ((ah == i)) | |
196 | - | then { | |
197 | - | let am = ((((((((((ag[1] + "_") + ag[2]) + "_") + ag[3]) + "_") + ag[4]) + "_") + ag[5]) + "_") + ag[6]) | |
198 | - | WriteSet([DataEntry(x, ((k + "_") + am))]) | |
199 | - | } | |
200 | - | else throw(((((("Incorrect auctionId state. Now: " + ah) + ", must be: ") + h) + " or ") + i)) | |
201 | - | else if (if ((ah == h)) | |
202 | - | then true | |
203 | - | else (ah == i)) | |
204 | - | then { | |
205 | - | let am = ((((((ag[1] + "_") + ag[2]) + "_") + ag[3]) + "_") + ag[4]) | |
206 | - | WriteSet([DataEntry(x, ((((((i + "_") + am) + "_") + toString(aj)) + "_") + ak))]) | |
207 | - | } | |
208 | - | else throw(((((("Incorrect jobId state. Now: " + ah) + ", must be: ") + h) + " or ") + i)) | |
209 | - | else throw(("Payment must be in " + F)) | |
187 | + | let ag = N(O, I) | |
188 | + | WriteSet([DataEntry(v(w), ((((((((((((g + "_") + aa) + "_") + toString(ad)) + "_") + toString(ae)) + "_") + toString(af)) + "_") + O) + "_") + toString(I))), DataEntry((O + "_Freezed"), ag)]) | |
210 | 189 | } | |
211 | 190 | ||
212 | 191 | ||
213 | 192 | ||
214 | 193 | @Callable(U) | |
215 | - | func increaseExecutionTime (x,Y) = { | |
194 | + | func makeBid (w,H) = { | |
195 | + | let ah = toBase58String(U.callerPublicKey) | |
196 | + | let ai = height | |
197 | + | let aj = v(w) | |
198 | + | let ak = x(aj) | |
199 | + | let al = ak[0] | |
200 | + | let aa = fromBase58String(ak[1]) | |
201 | + | let ad = parseIntValue(ak[2]) | |
202 | + | let am = parseIntValue(ak[3]) | |
203 | + | let an = parseIntValue(ak[4]) | |
204 | + | let F = ak[5] | |
205 | + | let I = parseIntValue(ak[6]) | |
206 | + | let ao = E(F) | |
207 | + | let ap = G(H, I) | |
208 | + | let aq = S(ah) | |
209 | + | let ar = ((I * 3) / 100) | |
210 | + | let ag = R(F, I) | |
211 | + | let as = J(ai, ad, am) | |
212 | + | if (as) | |
213 | + | then if ((al == g)) | |
214 | + | then ScriptResult(WriteSet([DataEntry(aj, ((((((((((((((((i + "_") + toBase58String(aa)) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(I)) + "_") + "NoFreelancer") + "_") + "NoBid")), DataEntry((F + "_Freezed"), ag)]), TransferSet([ScriptTransfer(addressFromPublicKey(aa), (I - ar), ao)])) | |
215 | + | else if ((al == h)) | |
216 | + | then { | |
217 | + | let at = ak[7] | |
218 | + | let au = ak[8] | |
219 | + | WriteSet([DataEntry(aj, ((((((((((((((((j + "_") + toBase58String(aa)) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(I)) + "_") + at) + "_") + au))]) | |
220 | + | } | |
221 | + | else throw("Incorrect auction state") | |
222 | + | else if ((al == g)) | |
223 | + | then WriteSet([DataEntry(((w + "_") + aq), H), DataEntry(aj, ((((((((((((((h + "_") + toBase58String(aa)) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(I)) + "_") + aq))]) | |
224 | + | else if ((al == h)) | |
225 | + | then { | |
226 | + | let av = ak[7] | |
227 | + | let aw = { | |
228 | + | let ax = ((w + "_") + av) | |
229 | + | let ay = getInteger(this, ax) | |
230 | + | let az = { | |
231 | + | let A = ay | |
232 | + | if ($isInstanceOf(A, "Int")) | |
233 | + | then { | |
234 | + | let z = A | |
235 | + | z | |
236 | + | } | |
237 | + | else throw("Can't find lowest bid by public key") | |
238 | + | } | |
239 | + | if ((az > ap)) | |
240 | + | then aq | |
241 | + | else av | |
242 | + | } | |
243 | + | WriteSet([DataEntry(((w + "_") + ah), H), DataEntry(aj, ((((((((((((((h + "_") + toBase58String(aa)) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(I)) + "_") + aw))]) | |
244 | + | } | |
245 | + | else throw(((((("Incorrect jobId state. Now: " + al) + ", must be: ") + g) + " or ") + h)) | |
246 | + | } | |
247 | + | ||
248 | + | ||
249 | + | ||
250 | + | @Callable(U) | |
251 | + | func chooseFreelancer (w,aA) = { | |
252 | + | let ah = toBase58String(U.callerPublicKey) | |
253 | + | let ai = height | |
254 | + | let aj = v(w) | |
255 | + | let ak = x(aj) | |
256 | + | let al = ak[0] | |
257 | + | let aa = ak[1] | |
258 | + | let ad = parseIntValue(ak[2]) | |
259 | + | let am = parseIntValue(ak[3]) | |
260 | + | let an = parseIntValue(ak[4]) | |
261 | + | let F = ak[5] | |
262 | + | let I = parseIntValue(ak[6]) | |
263 | + | let ao = E(F) | |
264 | + | let aB = { | |
265 | + | let aC = ((w + "_") + aA) | |
266 | + | let aD = getInteger(this, aC) | |
267 | + | let A = aD | |
268 | + | if ($isInstanceOf(A, "Int")) | |
269 | + | then { | |
270 | + | let z = A | |
271 | + | z | |
272 | + | } | |
273 | + | else throw("Freelancer's bet was not found") | |
274 | + | } | |
275 | + | let ar = ((I * 3) / 100) | |
276 | + | let aE = ((I - aB) - ar) | |
277 | + | let as = J(ai, ad, am) | |
278 | + | if ((ah == aa)) | |
279 | + | then if (as) | |
280 | + | then if ((al == g)) | |
281 | + | then ScriptResult(WriteSet([DataEntry(aj, ((((((((((((((((i + "_") + aa) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(I)) + "_") + "NoFreelancer") + "_") + "NoBid"))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aa)), (I - ar), ao)])) | |
282 | + | else if ((al == h)) | |
283 | + | then WriteSet([DataEntry(aj, ((((((((((((j + "_") + aa) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(I)))]) | |
284 | + | else throw("Incorrect auction state") | |
285 | + | else ScriptResult(WriteSet([DataEntry(aj, ((((((((((((((j + "_") + aa) + "_") + toString(ad)) + "_") + toString(am)) + "_") + toString(an)) + "_") + F) + "_") + toString(aB)) + "_") + aA))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(aa)), aE, ao)])) | |
286 | + | else throw("Only auction customer can choose a freelancer") | |
287 | + | } | |
288 | + | ||
289 | + | ||
290 | + | ||
291 | + | @Callable(U) | |
292 | + | func increaseExecutionTime (w,aF) = { | |
216 | 293 | let T = toBase58String(U.callerPublicKey) | |
217 | - | let ag = w(x) | |
218 | - | let ah = ag[0] | |
219 | - | let Z = ag[1] | |
220 | - | let ao = parseIntValue(ag[3]) | |
221 | - | let ap = { | |
222 | - | let aq = (Y * b) | |
223 | - | if ((aq > ao)) | |
224 | - | then aq | |
294 | + | let aj = v(w) | |
295 | + | let ak = x(aj) | |
296 | + | let al = ak[0] | |
297 | + | let aa = ak[1] | |
298 | + | let aG = parseIntValue(ak[3]) | |
299 | + | let aH = { | |
300 | + | let aI = (aF * a) | |
301 | + | if ((aI > aG)) | |
302 | + | then aI | |
225 | 303 | else throw("New execution time must more than current execution time") | |
226 | 304 | } | |
227 | - | if ((T == | |
228 | - | then if (if (if (( | |
305 | + | if ((T == aa)) | |
306 | + | then if (if (if ((al == g)) | |
229 | 307 | then true | |
230 | - | else ( | |
308 | + | else (al == h)) | |
231 | 309 | then true | |
232 | - | else ( | |
310 | + | else (al == j)) | |
233 | 311 | then { | |
234 | - | let | |
235 | - | WriteSet([DataEntry( | |
312 | + | let aJ = ((((((((((((al + "_") + aa) + "_") + ak[2]) + "_") + toString(aH)) + "_") + ak[4]) + "_") + ak[5]) + "_") + ak[6]) | |
313 | + | WriteSet([DataEntry(aj, aJ)]) | |
236 | 314 | } | |
237 | 315 | else throw("Incorrect state") | |
238 | 316 | else throw("Only customer can increase execution time") | |
239 | 317 | } | |
240 | 318 | ||
241 | 319 | ||
242 | 320 | ||
243 | 321 | @Callable(U) | |
244 | - | func cancelAuction (x) = { | |
245 | - | let ag = w(x) | |
246 | - | let ah = ag[0] | |
247 | - | let Z = fromBase58String(ag[1]) | |
248 | - | let as = if ((U.callerPublicKey == Z)) | |
322 | + | func cancelAuction (w) = { | |
323 | + | let aj = v(w) | |
324 | + | let ak = x(aj) | |
325 | + | let al = ak[0] | |
326 | + | let aa = fromBase58String(ak[1]) | |
327 | + | let aK = if ((U.callerPublicKey == aa)) | |
249 | 328 | then true | |
250 | 329 | else throw("Auction can be canceled only by owner.") | |
251 | - | if (( | |
330 | + | if ((al == g)) | |
252 | 331 | then { | |
253 | - | let | |
254 | - | WriteSet([DataEntry( | |
332 | + | let aL = ((((((((ak[1] + "_") + ak[2]) + "_") + ak[3]) + "_") + ak[4]) + "_") + ak[5]) | |
333 | + | WriteSet([DataEntry(aj, ((i + "_") + aL))]) | |
255 | 334 | } | |
256 | 335 | else throw("Incorrect auction state.") | |
257 | 336 | } | |
258 | 337 | ||
259 | 338 | ||
260 | 339 | ||
261 | 340 | @Callable(U) | |
262 | - | func openDispute ( | |
341 | + | func openDispute (w) = { | |
263 | 342 | let T = toBase58String(U.callerPublicKey) | |
264 | - | let ag = w(x) | |
265 | - | let ah = ag[0] | |
266 | - | let Z = ag[1] | |
267 | - | let at = ag[6] | |
268 | - | if (if ((T == Z)) | |
343 | + | let aj = v(w) | |
344 | + | let ak = x(aj) | |
345 | + | let al = ak[0] | |
346 | + | let aa = ak[1] | |
347 | + | let at = ak[6] | |
348 | + | if (if ((T == aa)) | |
269 | 349 | then true | |
270 | 350 | else (T == at)) | |
271 | 351 | then { | |
272 | - | let | |
273 | - | WriteSet([DataEntry( | |
352 | + | let aL = "1" | |
353 | + | WriteSet([DataEntry(aj, (m + aL)), DataEntry((w + "_Dispute"), "0")]) | |
274 | 354 | } | |
275 | 355 | else throw("Only customer and freelancer can open dispute") | |
276 | 356 | } | |
277 | 357 | ||
278 | 358 | ||
279 | 359 | ||
280 | 360 | @Callable(U) | |
281 | - | func voteDispute (x,au) = { | |
282 | - | let ag = w(x) | |
283 | - | let av = { | |
284 | - | let ah = ag[0] | |
285 | - | if ((ah == n)) | |
361 | + | func voteDispute (w,aM) = { | |
362 | + | let aj = v(w) | |
363 | + | let ak = x(aj) | |
364 | + | let aN = { | |
365 | + | let al = ak[0] | |
366 | + | if ((al == m)) | |
286 | 367 | then true | |
287 | - | else throw(("Incorrect state. Must be: " + | |
368 | + | else throw(("Incorrect state. Must be: " + m)) | |
288 | 369 | } | |
289 | - | let | |
290 | - | let I = parseIntValue( | |
291 | - | let | |
370 | + | let aO = ak[4] | |
371 | + | let I = parseIntValue(ak[5]) | |
372 | + | let aP = if (if ((aM == o)) | |
292 | 373 | then true | |
293 | - | else (au == q)) | |
294 | - | then au | |
295 | - | else throw(((("Vote is incorrect. Must be: " + p) + " or ") + q)) | |
296 | - | let ay = if (if (if (if (if ((U.callerPublicKey == r)) | |
374 | + | else (aM == p)) | |
375 | + | then aM | |
376 | + | else throw(((("Vote is incorrect. Must be: " + o) + " or ") + p)) | |
377 | + | let aQ = if (if (if (if (if ((U.callerPublicKey == q)) | |
378 | + | then true | |
379 | + | else (U.callerPublicKey == r)) | |
297 | 380 | then true | |
298 | 381 | else (U.callerPublicKey == s)) | |
299 | 382 | then true | |
300 | 383 | else (U.callerPublicKey == t)) | |
301 | 384 | then true | |
302 | 385 | else (U.callerPublicKey == u)) | |
303 | - | then true | |
304 | - | else (U.callerPublicKey == v)) | |
305 | 386 | then toBase58String(U.callerPublicKey) | |
306 | 387 | else throw("You have no rights for disputes resolving") | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let A = | |
388 | + | let aR = { | |
389 | + | let aS = ((w + "_") + m) | |
390 | + | let aT = getString(this, aS) | |
391 | + | let A = aT | |
311 | 392 | if ($isInstanceOf(A, "String")) | |
312 | 393 | then { | |
313 | 394 | let z = A | |
314 | 395 | z | |
315 | 396 | } | |
316 | 397 | else throw("Cannot find data of dispute in storage") | |
317 | 398 | } | |
318 | - | let | |
319 | - | let | |
320 | - | if (( | |
399 | + | let aU = split(aR, "/") | |
400 | + | let aV = aU[0] | |
401 | + | if ((aV == "4")) | |
321 | 402 | then { | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
403 | + | let aW = split(aU[1], "_") | |
404 | + | let aX = split(aU[2], "_") | |
405 | + | let aY = if ((aQ == aW[0])) | |
325 | 406 | then true | |
326 | - | else ( | |
327 | - | if ( | |
407 | + | else (aQ == aW[1]) | |
408 | + | if (aY) | |
328 | 409 | then throw("You already voted") | |
329 | 410 | else { | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
411 | + | let aZ = "5" | |
412 | + | let ba = ((aU[1] + "_") + aQ) | |
413 | + | let bb = ((aU[2] + "_") + aP) | |
414 | + | let bc = ((((aZ + "/") + ba) + "/") + bb) | |
415 | + | let bd = { | |
416 | + | let be = if ((aX[0] == o)) | |
336 | 417 | then 1 | |
337 | 418 | else 0 | |
338 | - | let | |
419 | + | let bf = if ((aX[1] == o)) | |
339 | 420 | then 1 | |
340 | 421 | else 0 | |
341 | - | let | |
422 | + | let bg = if ((aX[2] == o)) | |
342 | 423 | then 1 | |
343 | 424 | else 0 | |
344 | - | let | |
425 | + | let bh = if ((aX[3] == o)) | |
345 | 426 | then 1 | |
346 | 427 | else 0 | |
347 | - | let | |
428 | + | let bi = if ((aP == o)) | |
348 | 429 | then 1 | |
349 | 430 | else 0 | |
350 | - | let | |
351 | - | if (( | |
352 | - | then | |
353 | - | else | |
431 | + | let bj = ((((be + bf) + bg) + bh) + bi) | |
432 | + | if ((bj > 2)) | |
433 | + | then o | |
434 | + | else p | |
354 | 435 | } | |
355 | - | let | |
356 | - | let | |
357 | - | then | |
358 | - | else | |
359 | - | let | |
360 | - | ScriptResult(WriteSet([DataEntry( | |
436 | + | let aJ = ((((((((((ak[1] + "_") + ak[2]) + "_") + ak[3]) + "_") + ak[4]) + "_") + ak[5]) + "_") + ak[6]) | |
437 | + | let bk = if ((bd == o)) | |
438 | + | then ak[1] | |
439 | + | else ak[6] | |
440 | + | let bl = (I - ((I * 3) / 100)) | |
441 | + | ScriptResult(WriteSet([DataEntry(v(w), (n + aJ)), DataEntry(((w + "_") + m), bc)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(bk)), bl, fromBase58String(aO))])) | |
361 | 442 | } | |
362 | 443 | } | |
363 | 444 | else { | |
364 | - | let | |
445 | + | let bc = if ((aV == "0")) | |
365 | 446 | then { | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | | |
447 | + | let aZ = "1" | |
448 | + | let ba = aQ | |
449 | + | let bb = aP | |
450 | + | let aJ = ((((aZ + "/") + ba) + "/") + bb) | |
451 | + | aJ | |
371 | 452 | } | |
372 | - | else if (( | |
453 | + | else if ((aV == "1")) | |
373 | 454 | then { | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | if ( | |
455 | + | let bm = aU[1] | |
456 | + | let be = aU[2] | |
457 | + | let aY = (aQ == bm) | |
458 | + | if (aY) | |
378 | 459 | then throw("You already voted") | |
379 | 460 | else { | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | | |
461 | + | let aZ = "1" | |
462 | + | let ba = (bm + aQ) | |
463 | + | let bb = (be + aP) | |
464 | + | let aJ = ((((aZ + "/") + ba) + "/") + bb) | |
465 | + | aJ | |
385 | 466 | } | |
386 | 467 | } | |
387 | - | else if (( | |
468 | + | else if ((aV == "2")) | |
388 | 469 | then { | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
470 | + | let aW = split(aU[1], "_") | |
471 | + | let aX = split(aU[2], "_") | |
472 | + | let aY = if ((aQ == aW[0])) | |
392 | 473 | then true | |
393 | - | else ( | |
394 | - | if ( | |
474 | + | else (aQ == aW[1]) | |
475 | + | if (aY) | |
395 | 476 | then throw("You already voted") | |
396 | 477 | else { | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | | |
478 | + | let aZ = "3" | |
479 | + | let ba = ((aU[1] + "_") + aQ) | |
480 | + | let bb = ((aU[2] + "_") + aP) | |
481 | + | let aJ = ((((aZ + "/") + ba) + "/") + bb) | |
482 | + | aJ | |
402 | 483 | } | |
403 | 484 | } | |
404 | - | else if (( | |
485 | + | else if ((aV == "3")) | |
405 | 486 | then { | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
487 | + | let aW = split(aU[1], "_") | |
488 | + | let aX = split(aU[2], "_") | |
489 | + | let aY = if (if ((aQ == aW[0])) | |
409 | 490 | then true | |
410 | - | else ( | |
491 | + | else (aQ == aW[1])) | |
411 | 492 | then true | |
412 | - | else ( | |
413 | - | if ( | |
493 | + | else (aQ == aW[2]) | |
494 | + | if (aY) | |
414 | 495 | then throw("You already voted") | |
415 | 496 | else { | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | | |
497 | + | let aZ = "4" | |
498 | + | let ba = ((aU[1] + "_") + aQ) | |
499 | + | let bb = ((aU[2] + "_") + aP) | |
500 | + | let aJ = ((((aZ + "/") + ba) + "/") + bb) | |
501 | + | aJ | |
421 | 502 | } | |
422 | 503 | } | |
423 | 504 | else throw("Dispute has been already resolved") | |
424 | - | WriteSet([DataEntry((( | |
505 | + | WriteSet([DataEntry(((w + "_") + m), bc)]) | |
425 | 506 | } | |
426 | 507 | } | |
427 | 508 | ||
428 | 509 | ||
429 | 510 | ||
430 | 511 | @Callable(U) | |
431 | - | func workIsDone (x) = { | |
432 | - | let ag = w(x) | |
433 | - | let ah = ag[0] | |
434 | - | let ab = parseIntValue(ag[2]) | |
435 | - | let ao = parseIntValue(ag[3]) | |
512 | + | func workIsDone (w) = { | |
513 | + | let aj = v(w) | |
514 | + | let ak = x(aj) | |
515 | + | let al = ak[0] | |
516 | + | let ad = parseIntValue(ak[2]) | |
517 | + | let aG = parseIntValue(ak[3]) | |
436 | 518 | let K = height | |
437 | - | let | |
519 | + | let bn = { | |
438 | 520 | let T = toBase58String(U.callerPublicKey) | |
439 | - | let at = | |
521 | + | let at = ak[6] | |
440 | 522 | if ((T == at)) | |
441 | 523 | then T | |
442 | 524 | else throw("Only a freelancer can indicate that the work is done") | |
443 | 525 | } | |
444 | - | let | |
445 | - | if (( | |
446 | - | then if ( | |
526 | + | let bo = ((K - ad) > aG) | |
527 | + | if ((al == j)) | |
528 | + | then if (bo) | |
447 | 529 | then { | |
448 | - | let | |
449 | - | WriteSet([DataEntry( | |
530 | + | let aJ = ((((((((((ak[1] + "_") + ak[2]) + "_") + ak[3]) + "_") + ak[4]) + "_") + ak[5]) + "_") + ak[6]) | |
531 | + | WriteSet([DataEntry(aj, (m + aJ))]) | |
450 | 532 | } | |
451 | 533 | else { | |
452 | - | let | |
453 | - | WriteSet([DataEntry( | |
534 | + | let aJ = ((((((((((ak[1] + "_") + ak[2]) + "_") + ak[3]) + "_") + ak[4]) + "_") + ak[5]) + "_") + ak[6]) | |
535 | + | WriteSet([DataEntry(aj, (k + aJ))]) | |
454 | 536 | } | |
455 | 537 | else throw("Auction state is incorrect") | |
456 | 538 | } | |
457 | 539 | ||
458 | 540 | ||
459 | 541 | ||
460 | 542 | @Callable(U) | |
461 | - | func acceptByCustomer (x) = { | |
462 | - | let ag = w(x) | |
463 | - | let ah = ag[0] | |
464 | - | let Z = ag[1] | |
465 | - | let F = ag[4] | |
466 | - | let I = parseIntValue(ag[5]) | |
467 | - | let at = ag[6] | |
543 | + | func acceptByCustomer (w) = { | |
544 | + | let aj = v(w) | |
545 | + | let ak = x(aj) | |
546 | + | let al = ak[0] | |
547 | + | let aa = ak[1] | |
548 | + | let F = ak[4] | |
549 | + | let I = parseIntValue(ak[5]) | |
550 | + | let at = ak[6] | |
468 | 551 | let T = toBase58String(U.callerPublicKey) | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let A = | |
552 | + | let ar = ((I * 3) / 100) | |
553 | + | let bl = (I - ar) | |
554 | + | let ao = E(F) | |
555 | + | let bp = { | |
556 | + | let bq = getInteger(this, (at + "_Rating")) | |
557 | + | let br = { | |
558 | + | let A = bq | |
476 | 559 | if ($isInstanceOf(A, "Int")) | |
477 | 560 | then { | |
478 | 561 | let z = A | |
479 | 562 | z | |
480 | 563 | } | |
481 | 564 | else 0 | |
482 | 565 | } | |
483 | - | ( | |
566 | + | (br + 1) | |
484 | 567 | } | |
485 | - | if ((T == | |
486 | - | then if (( | |
568 | + | if ((T == aa)) | |
569 | + | then if ((al == k)) | |
487 | 570 | then { | |
488 | - | let | |
489 | - | ScriptResult(WriteSet([DataEntry( | |
571 | + | let aJ = ((((((((((ak[1] + "_") + ak[2]) + "_") + ak[3]) + "_") + ak[4]) + "_") + ak[5]) + "_") + ak[6]) | |
572 | + | ScriptResult(WriteSet([DataEntry(aj, (l + aJ)), DataEntry((at + "_Rating"), bp)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(at)), bl, ao)])) | |
490 | 573 | } | |
491 | - | else throw(("Incorrect state. Must be: " + | |
574 | + | else throw(("Incorrect state. Must be: " + k)) | |
492 | 575 | else throw("Only auction customer can use this function") | |
493 | 576 | } | |
494 | 577 | ||
495 | 578 | ||
496 | - | @Verifier( | |
497 | - | func | |
579 | + | @Verifier(bs) | |
580 | + | func bt () = if (sigVerify(bs.bodyBytes, bs.proofs[0], bs.senderPublicKey)) | |
498 | 581 | then { | |
499 | - | let A = | |
582 | + | let A = bs | |
500 | 583 | if ($isInstanceOf(A, "TransferTransaction")) | |
501 | 584 | then { | |
502 | - | let | |
585 | + | let bu = A | |
503 | 586 | true | |
504 | 587 | } | |
505 | 588 | else if ($isInstanceOf(A, "SetScriptTransaction")) | |
506 | 589 | then { | |
507 | - | let | |
590 | + | let bv = A | |
508 | 591 | true | |
509 | 592 | } | |
510 | 593 | else false | |
511 | 594 | } | |
512 | 595 | else false | |
513 | 596 |
github/deemru/w8io/026f985 225.65 ms ◑