tx · 3ekyQ6357xiFkeVApnMBCFWbwgAZZDsSkEKtAD3EohZG 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2: -0.01500000 Waves 2019.10.25 14:58 [735621] smart account 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2 > SELF 0.00000000 Waves
{ "type": 13, "id": "3ekyQ6357xiFkeVApnMBCFWbwgAZZDsSkEKtAD3EohZG", "fee": 1500000, "feeAssetId": null, "timestamp": 1572004716561, "version": 1, "sender": "3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2", "senderPublicKey": "8y2Uc9uYf5gRD6Dzm1aC73zYe3LZvtVDUVAnAhNdN2mg", "proofs": [ "4VYdqEcy3bh4Z5kofEFJUPM2TcKZ2fCExsCVx3AP6EMRc6SQghAtn2bQj7LxCHVXoAjaYbZagP6YbKS7Jy4boPfk" ], "script": "base64:AAIDAAAAAAAAAD8IARIDCgEIEgMKAQgSBQoDAQEIEgQKAggBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgAAAAxAAAAAANkYXkAAAAAAAAABaAAAAAABVdBVkVTBQAAAAR1bml0AAAAAAR3QlRDAQAAACBs+mr/xe2qjAt/tSqT0qIML4KC23R6BIxT+/0TH3Og/wAAAAAEd0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABHdVU0QBAAAAIN0cvQHwz3UFMHgHsqi2OJjRRd1cH7ozWuNAb/pmWXD9AAAAAAlhdWN0VG9rZW4BAAAAAQAAAAAACXN0YXRlT3BlbgIAAAAGT3BlbmVkAAAAAA5zdGF0ZVN1Z2dlc3RlZAIAAAAJU3VnZ2VzdGVkAAAAAAtzdGF0ZUNhbmNlbAIAAAAIQ2FuY2VsZWQAAAAAD3N0YXRlSW5Qcm9ncmVzcwIAAAAKSW5Qcm9ncmVzcwAAAAARc3RhdGVXYWl0NENvbmZpcm0CAAAAE1dhaXRGb3JDb25maXJtYXRpb24A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ZWQEAAAAD3Jlc2VydmVkQmFsYW5jZQQAAAAHJG1hdGNoMQUAAAAUdmFsdWVSZXNlcnZlZEJhbGFuY2UDCQAAAQAAAAIFAAAAByRtYXRjaDECAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMQUAAAABYQAAAAAAAAAAAAQAAAAQYXZhaWxhYmxlQmFsYW5jZQkAAGUAAAACCQAD6wAAAAIFAAAABHRoaXMIBQAAAAN0dHgAAAAHYXNzZXRJZAUAAAAPcmVzZXJ2ZWRCYWxhbmNlCQAAZwAAAAIFAAAAEGF2YWlsYWJsZUJhbGFuY2UIBQAAAAN0dHgAAAAGYW1vdW50AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwBgcHvDK9CA==", "chainId": 84, "height": 735621, "spentComplexity": 0 } View: original | compacted Prev: GwzisNzvovBpWiYkmGRb9B1f4s6y5Z4DscLeMXZTa3xj Next: H8Fq3AqZbuTQmwGUp88MW5z4tQFyLXTbuVZJGx7FHegv Diff:
Old | New | Differences | |
---|---|---|---|
116 | 116 | ||
117 | 117 | ||
118 | 118 | func clientRegistered (callerPub) = { | |
119 | - | let | |
120 | - | match | |
119 | + | let clientIsRegistered = getString(this, (callerPub + "_Client")) | |
120 | + | match clientIsRegistered { | |
121 | 121 | case a: String => | |
122 | 122 | callerPub | |
123 | 123 | case _ => | |
124 | - | throw("Only registered users can | |
124 | + | throw("Only registered users can create auctions") | |
125 | 125 | } | |
126 | 126 | } | |
127 | 127 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let day = 1440 | |
5 | 5 | ||
6 | 6 | let WAVES = unit | |
7 | 7 | ||
8 | 8 | let wBTC = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS' | |
9 | 9 | ||
10 | 10 | let wEUR = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU' | |
11 | 11 | ||
12 | 12 | let wUSD = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck' | |
13 | 13 | ||
14 | 14 | let auctToken = base58'1' | |
15 | 15 | ||
16 | 16 | let stateOpen = "Opened" | |
17 | 17 | ||
18 | 18 | let stateSuggested = "Suggested" | |
19 | 19 | ||
20 | 20 | let stateCancel = "Canceled" | |
21 | 21 | ||
22 | 22 | let stateInProgress = "InProgress" | |
23 | 23 | ||
24 | 24 | let stateWait4Confirm = "WaitForConfirmation" | |
25 | 25 | ||
26 | 26 | let stateComplete = "Completed" | |
27 | 27 | ||
28 | 28 | let stateDispute = "Dispute" | |
29 | 29 | ||
30 | 30 | let stateDisputeResolved = "DisputeResolved" | |
31 | 31 | ||
32 | 32 | let client = "CL" | |
33 | 33 | ||
34 | 34 | let freelancer = "FL" | |
35 | 35 | ||
36 | 36 | let ambassador1 = "FneCJqM5BP2eAuyteMiuEEHYALrE4axhEfcpHVGbdr5s" | |
37 | 37 | ||
38 | 38 | let ambassador2 = "6QAMdssb1GJjpQVQQcnx8fKU8WhtcF9ZsQhifdThAEK8" | |
39 | 39 | ||
40 | 40 | let ambassador3 = "2ituwW7DSRsLP3Vcbnpr98QUQMGFRWKmyYPFqsUKRDoP" | |
41 | 41 | ||
42 | 42 | let ambassador4 = "ANsPQocEESyLb3yQqk2pwCdoK7PJQxLoZVpYvsm3SxUG" | |
43 | 43 | ||
44 | 44 | let ambassador5 = "13VixwQin1MzZCyY69NSWMSBNEV27Rzc159o7uZXR9VS" | |
45 | 45 | ||
46 | 46 | func getInt (key) = { | |
47 | 47 | let valueJobsOnGoing = getInteger(this, key) | |
48 | 48 | match valueJobsOnGoing { | |
49 | 49 | case a: Int => | |
50 | 50 | a | |
51 | 51 | case _ => | |
52 | 52 | 0 | |
53 | 53 | } | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func AssetIdToAssetName (pmtAssetId) = if (!(isDefined(pmtAssetId))) | |
58 | 58 | then "WAVES" | |
59 | 59 | else if ((pmtAssetId == wBTC)) | |
60 | 60 | then "BTC" | |
61 | 61 | else if ((pmtAssetId == wEUR)) | |
62 | 62 | then "EUR" | |
63 | 63 | else if ((pmtAssetId == wUSD)) | |
64 | 64 | then "USD" | |
65 | 65 | else if ((pmtAssetId == auctToken)) | |
66 | 66 | then "AUCT" | |
67 | 67 | else throw("AssetId is incorrect") | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func AssetNameToAssetId (auctionAssetName) = if ((auctionAssetName == "WAVES")) | |
71 | 71 | then WAVES | |
72 | 72 | else if ((auctionAssetName == "BTC")) | |
73 | 73 | then wBTC | |
74 | 74 | else if ((auctionAssetName == "EUR")) | |
75 | 75 | then wEUR | |
76 | 76 | else if ((auctionAssetName == "USD")) | |
77 | 77 | then wUSD | |
78 | 78 | else if ((auctionAssetName == "AUCT")) | |
79 | 79 | then auctToken | |
80 | 80 | else throw("Incorrect Asset Id") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func timeCheck (currentTime,startTime,expirationTime) = ((currentTime - startTime) > expirationTime) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func bidAmountCheck (amount,auctionPrice) = if ((amount > auctionPrice)) | |
87 | 87 | then throw("Bid amount must be lower or equal than auctionPrice") | |
88 | 88 | else amount | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func increaseFreezedBalance (pmtAssetName,auctionPrice) = { | |
92 | 92 | let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed")) | |
93 | 93 | let currentFreezedBalance = match keyFreezedFunds { | |
94 | 94 | case a: Int => | |
95 | 95 | a | |
96 | 96 | case _ => | |
97 | 97 | 0 | |
98 | 98 | } | |
99 | 99 | (currentFreezedBalance + auctionPrice) | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func decreaseFreezedBalance (pmtAssetName,auctionPrice) = { | |
104 | 104 | let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed")) | |
105 | 105 | let currentFreezedBalance = match keyFreezedFunds { | |
106 | 106 | case a: Int => | |
107 | 107 | a | |
108 | 108 | case _ => | |
109 | 109 | 0 | |
110 | 110 | } | |
111 | 111 | let a = (currentFreezedBalance - auctionPrice) | |
112 | 112 | if ((a >= 0)) | |
113 | 113 | then a | |
114 | 114 | else throw("Freezed amount couldn't be less than 0") | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func clientRegistered (callerPub) = { | |
119 | - | let | |
120 | - | match | |
119 | + | let clientIsRegistered = getString(this, (callerPub + "_Client")) | |
120 | + | match clientIsRegistered { | |
121 | 121 | case a: String => | |
122 | 122 | callerPub | |
123 | 123 | case _ => | |
124 | - | throw("Only registered users can | |
124 | + | throw("Only registered users can create auctions") | |
125 | 125 | } | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func freelancerRegistered (callerPub) = { | |
130 | 130 | let freelancerIsRegistered = getString(this, (callerPub + "_Freelancer")) | |
131 | 131 | match freelancerIsRegistered { | |
132 | 132 | case a: String => | |
133 | 133 | callerPub | |
134 | 134 | case _ => | |
135 | 135 | throw("Only registered users can make bets") | |
136 | 136 | } | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func createAuctionPriceCheck (pmtAmount) = if ((pmtAmount > 0)) | |
141 | 141 | then pmtAmount | |
142 | 142 | else throw("Amount must be higher then 0") | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func getAuctionState (auctionId) = { | |
146 | 146 | let valueState = getString(this, (auctionId + "_State")) | |
147 | 147 | match valueState { | |
148 | 148 | case a: String => | |
149 | 149 | a | |
150 | 150 | case _ => | |
151 | 151 | throw("Auction State was not found") | |
152 | 152 | } | |
153 | 153 | } | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func getAuctionClientPub (auctionId) = { | |
157 | 157 | let valueClientPub = getString(this, (auctionId + "_AuctionClient")) | |
158 | 158 | match valueClientPub { | |
159 | 159 | case a: String => | |
160 | 160 | a | |
161 | 161 | case _ => | |
162 | 162 | throw("Auction Client was not found") | |
163 | 163 | } | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func getAuctionStartTime (auctionId) = { | |
168 | 168 | let valueAuctionStart = getInteger(this, (auctionId + "_AuctionStart")) | |
169 | 169 | match valueAuctionStart { | |
170 | 170 | case a: Int => | |
171 | 171 | a | |
172 | 172 | case _ => | |
173 | 173 | throw("Auction Start time was not found") | |
174 | 174 | } | |
175 | 175 | } | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func getAuctionDurationTime (auctionId) = { | |
179 | 179 | let valueauctionDuration = getInteger(this, (auctionId + "_AuctionDuration")) | |
180 | 180 | match valueauctionDuration { | |
181 | 181 | case a: Int => | |
182 | 182 | a | |
183 | 183 | case _ => | |
184 | 184 | throw("Auction duration time was not found") | |
185 | 185 | } | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func getAuctionJobPerformanceTime (auctionId) = { | |
190 | 190 | let valueBlocksForExecution = getInteger(this, (auctionId + "_JobPerformance")) | |
191 | 191 | match valueBlocksForExecution { | |
192 | 192 | case a: Int => | |
193 | 193 | a | |
194 | 194 | case _ => | |
195 | 195 | throw("Auction job performance time was not found") | |
196 | 196 | } | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func getAuctionAssetName (auctionId) = { | |
201 | 201 | let valueAssetName = getString(this, (auctionId + "_AssetName")) | |
202 | 202 | match valueAssetName { | |
203 | 203 | case a: String => | |
204 | 204 | a | |
205 | 205 | case _ => | |
206 | 206 | throw("Auction asset name was not found") | |
207 | 207 | } | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func getAuctionPrice (auctionId) = { | |
212 | 212 | let valuePrice = getInteger(this, (auctionId + "_Price")) | |
213 | 213 | match valuePrice { | |
214 | 214 | case a: Int => | |
215 | 215 | a | |
216 | 216 | case _ => | |
217 | 217 | throw("Auction price was not found") | |
218 | 218 | } | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func getAuctionFreelancerPub (auctionId) = { | |
223 | 223 | let valueClient = getString(this, (auctionId + "_HiredFreelancer")) | |
224 | 224 | match valueClient { | |
225 | 225 | case a: String => | |
226 | 226 | a | |
227 | 227 | case _ => | |
228 | 228 | throw("Auction Client was not found") | |
229 | 229 | } | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func getAuctionLowestBidder (auctionId) = { | |
234 | 234 | let valueLowestBidder = getString(this, (auctionId + "_LowestBidderPub")) | |
235 | 235 | match valueLowestBidder { | |
236 | 236 | case a: String => | |
237 | 237 | a | |
238 | 238 | case _ => | |
239 | 239 | throw("Auction lowest bidder was not found") | |
240 | 240 | } | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func getBid (auctionId,auctionLowestBidder) = { | |
245 | 245 | let valueNewAuctionPrice = getInteger(this, ((auctionId + "_Bid_") + auctionLowestBidder)) | |
246 | 246 | match valueNewAuctionPrice { | |
247 | 247 | case a: Int => | |
248 | 248 | a | |
249 | 249 | case _ => | |
250 | 250 | throw("Auction lowest bid was not found") | |
251 | 251 | } | |
252 | 252 | } | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func defineNewLowestBidder (auctionId,currentLowestBidderPub,bidAmount,newFreelancer) = { | |
256 | 256 | let valueCurrentLowestBid = getInteger(this, ((auctionId + "_Bid_") + currentLowestBidderPub)) | |
257 | 257 | let currentLowestBid = match valueCurrentLowestBid { | |
258 | 258 | case a: Int => | |
259 | 259 | a | |
260 | 260 | case _ => | |
261 | 261 | throw("Auction lowest bid was not found") | |
262 | 262 | } | |
263 | 263 | if ((currentLowestBid > bidAmount)) | |
264 | 264 | then newFreelancer | |
265 | 265 | else currentLowestBidderPub | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func choosedFreelancerCheck (auctionId,freelancerPub) = { | |
270 | 270 | let newFreelancer = getInteger(this, ((auctionId + "_Bid_") + freelancerPub)) | |
271 | 271 | match newFreelancer { | |
272 | 272 | case a: Int => | |
273 | 273 | freelancerPub | |
274 | 274 | case _ => | |
275 | 275 | throw("Error: Incorrect freelancerPub") | |
276 | 276 | } | |
277 | 277 | } | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func newExecutionTimeCheck (executionDays,auctionBlocksForExecution) = { | |
281 | 281 | let newAuctionBlocksForExecution = (executionDays * day) | |
282 | 282 | if ((newAuctionBlocksForExecution > auctionBlocksForExecution)) | |
283 | 283 | then newAuctionBlocksForExecution | |
284 | 284 | else throw("New execution time must more than current execution time") | |
285 | 285 | } | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | func getRating (auctionFreelancer) = { | |
289 | 289 | let valueRating = getInteger(this, (auctionFreelancer + "_Rating")) | |
290 | 290 | match valueRating { | |
291 | 291 | case a: Int => | |
292 | 292 | a | |
293 | 293 | case _ => | |
294 | 294 | 0 | |
295 | 295 | } | |
296 | 296 | } | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func callerIsAmbassador (callerPub) = if (if (if (if (if ((callerPub == ambassador1)) | |
300 | 300 | then true | |
301 | 301 | else (callerPub == ambassador2)) | |
302 | 302 | then true | |
303 | 303 | else (callerPub == ambassador3)) | |
304 | 304 | then true | |
305 | 305 | else (callerPub == ambassador4)) | |
306 | 306 | then true | |
307 | 307 | else (callerPub == ambassador5)) | |
308 | 308 | then callerPub | |
309 | 309 | else throw("Only defined ambassadors can vote in disputes") | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | func ambassadorVoteCheck (auctionId,ambassadorPub,vote) = { | |
313 | 313 | let keyVoter = ((auctionId + "_DiputeVote_") + ambassadorPub) | |
314 | 314 | let valueVoter = getString(this, keyVoter) | |
315 | 315 | let ambassadorVoted = match valueVoter { | |
316 | 316 | case a: String => | |
317 | 317 | true | |
318 | 318 | case _ => | |
319 | 319 | false | |
320 | 320 | } | |
321 | 321 | if (ambassadorVoted) | |
322 | 322 | then throw("Ambassador voted already ") | |
323 | 323 | else if (if ((vote == client)) | |
324 | 324 | then true | |
325 | 325 | else (vote == freelancer)) | |
326 | 326 | then vote | |
327 | 327 | else throw(((("Vote is incorrect. Must be: " + client) + " or ") + freelancer)) | |
328 | 328 | } | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | func getVotesNumber (auctionId) = { | |
332 | 332 | let valueVotesNumber = getInteger(this, (auctionId + "_DisputeVotes")) | |
333 | 333 | match valueVotesNumber { | |
334 | 334 | case a: Int => | |
335 | 335 | a | |
336 | 336 | case _ => | |
337 | 337 | throw("VotesNumber was not found") | |
338 | 338 | } | |
339 | 339 | } | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | func defineDisputeWinner (auctionId,newVote,auctionClient,auctionFreelancer) = { | |
343 | 343 | let ambassador1Vote = getString(this, ((auctionId + "_DiputeVote_") + ambassador1)) | |
344 | 344 | let ambassador2Vote = getString(this, ((auctionId + "_DiputeVote_") + ambassador2)) | |
345 | 345 | let ambassador3Vote = getString(this, ((auctionId + "_DiputeVote_") + ambassador3)) | |
346 | 346 | let ambassador4Vote = getString(this, ((auctionId + "_DiputeVote_") + ambassador4)) | |
347 | 347 | let ambassador5Vote = getString(this, ((auctionId + "_DiputeVote_") + ambassador5)) | |
348 | 348 | let v1 = if ((ambassador1Vote == client)) | |
349 | 349 | then 1 | |
350 | 350 | else 0 | |
351 | 351 | let v2 = if ((ambassador2Vote == client)) | |
352 | 352 | then 1 | |
353 | 353 | else 0 | |
354 | 354 | let v3 = if ((ambassador3Vote == client)) | |
355 | 355 | then 1 | |
356 | 356 | else 0 | |
357 | 357 | let v4 = if ((ambassador4Vote == client)) | |
358 | 358 | then 1 | |
359 | 359 | else 0 | |
360 | 360 | let v5 = if ((ambassador5Vote == client)) | |
361 | 361 | then 1 | |
362 | 362 | else 0 | |
363 | 363 | let currentVote = if ((newVote == client)) | |
364 | 364 | then 1 | |
365 | 365 | else 0 | |
366 | 366 | let votesForClient = (((((v1 + v2) + v3) + v4) + v5) + currentVote) | |
367 | 367 | if ((votesForClient > 2)) | |
368 | 368 | then auctionClient | |
369 | 369 | else auctionFreelancer | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | @Callable(i) | |
374 | 374 | func freelancerSignUp (info) = { | |
375 | 375 | let userPublicKey = toBase58String(i.callerPublicKey) | |
376 | 376 | WriteSet([DataEntry((userPublicKey + "_Freelancer"), info), DataEntry((userPublicKey + "_PendingEarnings"), 0), DataEntry((userPublicKey + "_PaidEarnings"), 0), DataEntry((userPublicKey + "_TotalEarnings"), 0), DataEntry((userPublicKey + "_JobsPending"), 0), DataEntry((userPublicKey + "_JobsCompleted"), 0), DataEntry((userPublicKey + "_JobsTotal"), 0)]) | |
377 | 377 | } | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | ||
381 | 381 | @Callable(i) | |
382 | 382 | func clientSignUp (info) = { | |
383 | 383 | let userPublicKey = toBase58String(i.callerPublicKey) | |
384 | 384 | WriteSet([DataEntry((userPublicKey + "_Client"), info), DataEntry((userPublicKey + "_JobsCreated"), 0), DataEntry((userPublicKey + "_JobsOnGoing"), 0), DataEntry((userPublicKey + "_JobInDispute"), 0)]) | |
385 | 385 | } | |
386 | 386 | ||
387 | 387 | ||
388 | 388 | ||
389 | 389 | @Callable(i) | |
390 | 390 | func createAuction (jobExecutionDays,auctionDurationDays,auctionInfo) = { | |
391 | 391 | let callerPub = toBase58String(i.callerPublicKey) | |
392 | 392 | let auctionId = toBase58String(i.transactionId) | |
393 | 393 | let auctionClient = clientRegistered(callerPub) | |
394 | 394 | let pmt = extract(i.payment) | |
395 | 395 | let pmtAmount = pmt.amount | |
396 | 396 | let auctionPrice = createAuctionPriceCheck(pmtAmount) | |
397 | 397 | let auctionStart = height | |
398 | 398 | let auctionDurationBlocks = (auctionDurationDays * day) | |
399 | 399 | let blocksForExecution = (jobExecutionDays * day) | |
400 | 400 | let pmtAssetName = AssetIdToAssetName(pmt.assetId) | |
401 | 401 | let jobsCreated = getInt((auctionClient + "_JobsCreated")) | |
402 | 402 | let newFreezedBalance = increaseFreezedBalance(pmtAssetName, auctionPrice) | |
403 | 403 | WriteSet([DataEntry((auctionId + "_State"), stateOpen), DataEntry((auctionId + "_Info"), auctionInfo), DataEntry((auctionId + "_AuctionClient"), auctionClient), DataEntry((auctionId + "_AuctionStart"), auctionStart), DataEntry((auctionId + "_AuctionDuration"), auctionDurationBlocks), DataEntry((auctionId + "_JobPerformance"), blocksForExecution), DataEntry((auctionId + "_AssetName"), pmtAssetName), DataEntry((auctionId + "_Price"), auctionPrice), DataEntry((pmtAssetName + "_Freezed"), newFreezedBalance), DataEntry((auctionClient + "_JobsCreated"), (jobsCreated + 1))]) | |
404 | 404 | } | |
405 | 405 | ||
406 | 406 | ||
407 | 407 | ||
408 | 408 | @Callable(i) | |
409 | 409 | func makeBid (auctionId,amount) = { | |
410 | 410 | let callerPub = toBase58String(i.callerPublicKey) | |
411 | 411 | let auctionState = getAuctionState(auctionId) | |
412 | 412 | let auctionClient = getAuctionClientPub(auctionId) | |
413 | 413 | let auctionStart = getAuctionStartTime(auctionId) | |
414 | 414 | let auctionDuration = getAuctionDurationTime(auctionId) | |
415 | 415 | let auctionBlocksForExecution = getAuctionJobPerformanceTime(auctionId) | |
416 | 416 | let auctionAssetName = getAuctionAssetName(auctionId) | |
417 | 417 | let auctionPrice = getAuctionPrice(auctionId) | |
418 | 418 | let auctionAssetId58 = AssetNameToAssetId(auctionAssetName) | |
419 | 419 | let newFreelancer = freelancerRegistered(callerPub) | |
420 | 420 | let dAppCommission = ((auctionPrice * 3) / 100) | |
421 | 421 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice) | |
422 | 422 | let bidAmount = bidAmountCheck(amount, auctionPrice) | |
423 | 423 | let auctionTimeisOver = timeCheck(height, auctionStart, auctionDuration) | |
424 | 424 | if (auctionTimeisOver) | |
425 | 425 | then if ((auctionState == stateOpen)) | |
426 | 426 | then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionClient)), (auctionPrice - dAppCommission), auctionAssetId58)])) | |
427 | 427 | else if ((auctionState == stateSuggested)) | |
428 | 428 | then { | |
429 | 429 | let auctionLowestBidder = getAuctionLowestBidder(auctionId) | |
430 | 430 | let auctionLowestBid = getBid(auctionId, auctionLowestBidder) | |
431 | 431 | let amountDifference = ((auctionPrice - auctionLowestBid) - dAppCommission) | |
432 | 432 | ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_HiredFreelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), auctionLowestBid)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionClient)), amountDifference, auctionAssetId58)])) | |
433 | 433 | } | |
434 | 434 | else throw("Incorrect auction state") | |
435 | 435 | else if ((auctionState == stateOpen)) | |
436 | 436 | then WriteSet([DataEntry(((auctionId + "_Bid_") + newFreelancer), bidAmount), DataEntry((auctionId + "_State"), stateSuggested), DataEntry((auctionId + "_LowestBidderPub"), callerPub)]) | |
437 | 437 | else if ((auctionState == stateSuggested)) | |
438 | 438 | then { | |
439 | 439 | let currentLowestBidderPub = getAuctionLowestBidder(auctionId) | |
440 | 440 | let newLowestBidderPub = defineNewLowestBidder(auctionId, currentLowestBidderPub, bidAmount, newFreelancer) | |
441 | 441 | WriteSet([DataEntry((auctionId + "_LowestBidderPub"), newLowestBidderPub), DataEntry(((auctionId + "_Bid_") + newFreelancer), bidAmount)]) | |
442 | 442 | } | |
443 | 443 | else throw(((((("Incorrect jobId state. Now: " + auctionState) + ", must be: ") + stateOpen) + " or ") + stateSuggested)) | |
444 | 444 | } | |
445 | 445 | ||
446 | 446 | ||
447 | 447 | ||
448 | 448 | @Callable(i) | |
449 | 449 | func chooseFreelancer (auctionId,freelancerPub) = { | |
450 | 450 | let callerPub = toBase58String(i.callerPublicKey) | |
451 | 451 | let auctionState = getAuctionState(auctionId) | |
452 | 452 | let auctionClient = getAuctionClientPub(auctionId) | |
453 | 453 | let auctionStart = getAuctionStartTime(auctionId) | |
454 | 454 | let auctionDuration = getAuctionDurationTime(auctionId) | |
455 | 455 | let auctionAssetName = getAuctionAssetName(auctionId) | |
456 | 456 | let auctionPrice = getAuctionPrice(auctionId) | |
457 | 457 | let auctionAssetId58 = AssetNameToAssetId(auctionAssetName) | |
458 | 458 | let newFreelancer = choosedFreelancerCheck(auctionId, freelancerPub) | |
459 | 459 | let freelancerBidAmount = getBid(auctionId, newFreelancer) | |
460 | 460 | let auctionTimeisOver = timeCheck(height, auctionStart, auctionDuration) | |
461 | 461 | let jobsOnGoing = getInt((auctionClient + "_JobsOnGoing")) | |
462 | 462 | let freelancerPendingEarnings = getInt((freelancerPub + "_PendingEarnings")) | |
463 | 463 | let freelancerTotalEarnings = getInt((freelancerPub + "_TotalEarnings")) | |
464 | 464 | if ((callerPub == auctionClient)) | |
465 | 465 | then if (auctionTimeisOver) | |
466 | 466 | then if ((auctionState == stateOpen)) | |
467 | 467 | then { | |
468 | 468 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice) | |
469 | 469 | let dAppCommission = ((auctionPrice * 3) / 100) | |
470 | 470 | ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionClient)), (auctionPrice - dAppCommission), auctionAssetId58)])) | |
471 | 471 | } | |
472 | 472 | else if ((auctionState == stateSuggested)) | |
473 | 473 | then { | |
474 | 474 | let auctionLowestBidder = getAuctionLowestBidder(auctionId) | |
475 | 475 | let auctionLowestBid = getBid(auctionId, auctionLowestBidder) | |
476 | 476 | let amountDifference = (auctionPrice - auctionLowestBid) | |
477 | 477 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, amountDifference) | |
478 | 478 | ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_HiredFreelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), auctionLowestBid), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((auctionClient + "_JobsOnGoing"), (jobsOnGoing + 1)), DataEntry((freelancerPub + "_PendingEarnings"), (freelancerPendingEarnings + auctionLowestBid)), DataEntry((freelancerPub + "_TotalEarnings"), (freelancerTotalEarnings + auctionLowestBid))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionClient)), amountDifference, auctionAssetId58)])) | |
479 | 479 | } | |
480 | 480 | else throw("Incorrect auction state") | |
481 | 481 | else if (if ((auctionState == stateOpen)) | |
482 | 482 | then true | |
483 | 483 | else (auctionState == stateSuggested)) | |
484 | 484 | then { | |
485 | 485 | let amountDifference = (auctionPrice - freelancerBidAmount) | |
486 | 486 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, amountDifference) | |
487 | 487 | ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_HiredFreelancer"), newFreelancer), DataEntry((auctionId + "_Price"), freelancerBidAmount), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((auctionClient + "_JobsOnGoing"), (jobsOnGoing + 1)), DataEntry((freelancerPub + "_PendingEarnings"), (freelancerPendingEarnings + freelancerBidAmount)), DataEntry((freelancerPub + "_TotalEarnings"), (freelancerTotalEarnings + freelancerBidAmount))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionClient)), (amountDifference + 1), auctionAssetId58)])) | |
488 | 488 | } | |
489 | 489 | else throw("Incorrect auction state") | |
490 | 490 | else throw("Only auction customer can choose a freelancer") | |
491 | 491 | } | |
492 | 492 | ||
493 | 493 | ||
494 | 494 | ||
495 | 495 | @Callable(i) | |
496 | 496 | func increaseExecutionTime (auctionId,executionDays) = { | |
497 | 497 | let caller = toBase58String(i.callerPublicKey) | |
498 | 498 | let auctionState = getAuctionState(auctionId) | |
499 | 499 | let auctionClient = getAuctionClientPub(auctionId) | |
500 | 500 | let auctionBlocksForExecution = getAuctionJobPerformanceTime(auctionId) | |
501 | 501 | let newAuctionExecutionTime = newExecutionTimeCheck(executionDays, auctionBlocksForExecution) | |
502 | 502 | if ((caller == auctionClient)) | |
503 | 503 | then if (if (if ((auctionState == stateOpen)) | |
504 | 504 | then true | |
505 | 505 | else (auctionState == stateSuggested)) | |
506 | 506 | then true | |
507 | 507 | else (auctionState == stateInProgress)) | |
508 | 508 | then WriteSet([DataEntry((auctionId + "_JobPerformance"), newAuctionExecutionTime)]) | |
509 | 509 | else throw("Incorrect state") | |
510 | 510 | else throw("Only Client can increase execution time") | |
511 | 511 | } | |
512 | 512 | ||
513 | 513 | ||
514 | 514 | ||
515 | 515 | @Callable(i) | |
516 | 516 | func cancelAuction (auctionId) = { | |
517 | 517 | let callerPub = toBase58String(i.callerPublicKey) | |
518 | 518 | let auctionState = getAuctionState(auctionId) | |
519 | 519 | let auctionClient = getAuctionClientPub(auctionId) | |
520 | 520 | let auctionAssetName = getAuctionAssetName(auctionId) | |
521 | 521 | let auctionPrice = getAuctionPrice(auctionId) | |
522 | 522 | let auctionAssetId58 = AssetNameToAssetId(auctionAssetName) | |
523 | 523 | let dAppCommission = ((auctionPrice * 3) / 100) | |
524 | 524 | let amountWithoutComm = (auctionPrice - dAppCommission) | |
525 | 525 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice) | |
526 | 526 | if ((callerPub == auctionClient)) | |
527 | 527 | then if ((auctionState == stateOpen)) | |
528 | 528 | then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionClient)), amountWithoutComm, auctionAssetId58)])) | |
529 | 529 | else throw("Auction can be canceled only by auction owner.") | |
530 | 530 | else throw("Only Client can cancel auction") | |
531 | 531 | } | |
532 | 532 | ||
533 | 533 | ||
534 | 534 | ||
535 | 535 | @Callable(i) | |
536 | 536 | func openDispute (auctionId) = { | |
537 | 537 | let caller = toBase58String(i.callerPublicKey) | |
538 | 538 | let auctionState = getAuctionState(auctionId) | |
539 | 539 | let auctionClient = getAuctionClientPub(auctionId) | |
540 | 540 | let auctionFreelancer = getAuctionFreelancerPub(auctionId) | |
541 | 541 | let clientJobsInDispute = getInt((auctionClient + "_JobsInDispute")) | |
542 | 542 | if (if ((auctionState == stateInProgress)) | |
543 | 543 | then true | |
544 | 544 | else (auctionState == stateWait4Confirm)) | |
545 | 545 | then if (if ((caller == auctionClient)) | |
546 | 546 | then true | |
547 | 547 | else (caller == auctionFreelancer)) | |
548 | 548 | then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), 0), DataEntry((auctionClient + "_JobsInDispute"), (clientJobsInDispute + 1))]) | |
549 | 549 | else throw("Only Client and Freelancer can open dispute") | |
550 | 550 | else throw("Incorrect auction state for dispute opening") | |
551 | 551 | } | |
552 | 552 | ||
553 | 553 | ||
554 | 554 | ||
555 | 555 | @Callable(i) | |
556 | 556 | func voteDispute (auctionId,vote) = { | |
557 | 557 | let callerPub = toBase58String(i.callerPublicKey) | |
558 | 558 | let auctionState = getAuctionState(auctionId) | |
559 | 559 | let auctionClient = getAuctionClientPub(auctionId) | |
560 | 560 | let auctionAssetName = getAuctionAssetName(auctionId) | |
561 | 561 | let auctionPrice = getAuctionPrice(auctionId) | |
562 | 562 | let auctionFreelancer = getAuctionFreelancerPub(auctionId) | |
563 | 563 | let commission = ((auctionPrice * 3) / 100) | |
564 | 564 | let auctionAssetId58 = AssetNameToAssetId(auctionAssetName) | |
565 | 565 | let ambassadorPub = callerIsAmbassador(callerPub) | |
566 | 566 | let ambassadorVote = ambassadorVoteCheck(auctionId, ambassadorPub, vote) | |
567 | 567 | let votesNumber = getVotesNumber(auctionId) | |
568 | 568 | let clientJobsInDispute = getInt((auctionClient + "_JobsInDispute")) | |
569 | 569 | let freelancerPendingEarnings = getInt((auctionFreelancer + "_PendingEarnings")) | |
570 | 570 | let freelancerTotalEarnings = getInt((auctionFreelancer + "_TotalEarnings")) | |
571 | 571 | if ((auctionState == stateDispute)) | |
572 | 572 | then if ((votesNumber == 4)) | |
573 | 573 | then { | |
574 | 574 | let disputeWinnerPub = defineDisputeWinner(auctionId, ambassadorVote, auctionClient, auctionFreelancer) | |
575 | 575 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice) | |
576 | 576 | if ((disputeWinnerPub == auctionClient)) | |
577 | 577 | then { | |
578 | 578 | let paymentWithoutComm = (auctionPrice - commission) | |
579 | 579 | ScriptResult(WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry((auctionId + "_State"), stateDisputeResolved), DataEntry(((auctionId + "_DiputeVote_") + ambassadorPub), ambassadorVote), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((auctionClient + "_JobsInDispute"), (clientJobsInDispute - 1)), DataEntry((auctionFreelancer + "_PendingEarnings"), (freelancerPendingEarnings - auctionPrice)), DataEntry((auctionFreelancer + "_TotalEarnings"), (freelancerTotalEarnings - auctionPrice))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(disputeWinnerPub)), paymentWithoutComm, auctionAssetId58)])) | |
580 | 580 | } | |
581 | 581 | else { | |
582 | 582 | let paymentWithoutComm = (auctionPrice - (commission * 2)) | |
583 | 583 | ScriptResult(WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry((auctionId + "_State"), stateDisputeResolved), DataEntry(((auctionId + "_DiputeVote_") + ambassadorPub), ambassadorVote), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((auctionClient + "_JobsInDispute"), (clientJobsInDispute - 1)), DataEntry((auctionFreelancer + "_PendingEarnings"), (freelancerPendingEarnings - auctionPrice))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(disputeWinnerPub)), paymentWithoutComm, auctionAssetId58)])) | |
584 | 584 | } | |
585 | 585 | } | |
586 | 586 | else WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry(((auctionId + "_DiputeVote_") + ambassadorPub), ambassadorVote)]) | |
587 | 587 | else throw(("Incorrect state. Must be: " + stateDispute)) | |
588 | 588 | } | |
589 | 589 | ||
590 | 590 | ||
591 | 591 | ||
592 | 592 | @Callable(i) | |
593 | 593 | func workHandOver (auctionId) = { | |
594 | 594 | let callerPub = toBase58String(i.callerPublicKey) | |
595 | 595 | let auctionState = getAuctionState(auctionId) | |
596 | 596 | let auctionClient = getAuctionClientPub(auctionId) | |
597 | 597 | let auctionStart = getAuctionStartTime(auctionId) | |
598 | 598 | let auctionDuration = getAuctionDurationTime(auctionId) | |
599 | 599 | let auctionBlocksForExecution = getAuctionJobPerformanceTime(auctionId) | |
600 | 600 | let auctionFreelancer = getAuctionFreelancerPub(auctionId) | |
601 | 601 | let timeIsOver = ((height - auctionStart) > auctionBlocksForExecution) | |
602 | 602 | let clientJobsInDispute = getInt((auctionClient + "_JobsInDispute")) | |
603 | 603 | if ((callerPub == auctionFreelancer)) | |
604 | 604 | then if ((auctionState == stateInProgress)) | |
605 | 605 | then if (timeIsOver) | |
606 | 606 | then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), "0"), DataEntry((auctionClient + "_JobInDispute"), (clientJobsInDispute + 1))]) | |
607 | 607 | else WriteSet([DataEntry((auctionId + "_State"), stateWait4Confirm)]) | |
608 | 608 | else throw("Auction state is incorrect") | |
609 | 609 | else throw("Only a freelancer can indicate that the work is done") | |
610 | 610 | } | |
611 | 611 | ||
612 | 612 | ||
613 | 613 | ||
614 | 614 | @Callable(i) | |
615 | 615 | func acceptWork (auctionId) = { | |
616 | 616 | let callerPub = toBase58String(i.callerPublicKey) | |
617 | 617 | let auctionState = getAuctionState(auctionId) | |
618 | 618 | let auctionClient = getAuctionClientPub(auctionId) | |
619 | 619 | let auctionStart = getAuctionStartTime(auctionId) | |
620 | 620 | let auctionDuration = getAuctionDurationTime(auctionId) | |
621 | 621 | let auctionAssetName = getAuctionAssetName(auctionId) | |
622 | 622 | let auctionPrice = getAuctionPrice(auctionId) | |
623 | 623 | let auctionFreelancer = getAuctionFreelancerPub(auctionId) | |
624 | 624 | let jobsOnGoing = getInt((auctionClient + "_JobsOnGoing")) | |
625 | 625 | let freelancerPendingEarnings = getInt((auctionFreelancer + "_PendingEarnings")) | |
626 | 626 | let freelancerPaidEarnings = getInt((auctionFreelancer + "_PaidEarnings")) | |
627 | 627 | let dAppCommission = ((auctionPrice * 3) / 100) | |
628 | 628 | let amountWithoutComm = (auctionPrice - (dAppCommission * 2)) | |
629 | 629 | let auctionAssetId58 = AssetNameToAssetId(auctionAssetName) | |
630 | 630 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice) | |
631 | 631 | let freelancerRating = getRating(auctionFreelancer) | |
632 | 632 | if ((callerPub == auctionClient)) | |
633 | 633 | then if ((auctionState == stateWait4Confirm)) | |
634 | 634 | then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateComplete), DataEntry((auctionFreelancer + "_Rating"), (freelancerRating + 1)), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((auctionClient + "_JobsOnGoing"), (jobsOnGoing - 1)), DataEntry((auctionFreelancer + "_PendingEarnings"), (freelancerPendingEarnings - auctionPrice)), DataEntry((auctionFreelancer + "_PaidEarnings"), (freelancerPaidEarnings + auctionPrice))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionFreelancer)), amountWithoutComm, auctionAssetId58)])) | |
635 | 635 | else throw(("Incorrect state. Must be: " + stateWait4Confirm)) | |
636 | 636 | else throw("Only auction customer can use this function") | |
637 | 637 | } | |
638 | 638 | ||
639 | 639 | ||
640 | 640 | @Verifier(tx) | |
641 | 641 | func verify () = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) | |
642 | 642 | then match tx { | |
643 | 643 | case ttx: TransferTransaction => | |
644 | 644 | let assetName = AssetIdToAssetName(ttx.assetId) | |
645 | 645 | let valueReservedBalance = getInteger(this, (assetName + "_Reserved")) | |
646 | 646 | let reservedBalance = match valueReservedBalance { | |
647 | 647 | case a: Int => | |
648 | 648 | a | |
649 | 649 | case _ => | |
650 | 650 | 0 | |
651 | 651 | } | |
652 | 652 | let availableBalance = (assetBalance(this, ttx.assetId) - reservedBalance) | |
653 | 653 | (availableBalance >= ttx.amount) | |
654 | 654 | case stx: SetScriptTransaction => | |
655 | 655 | true | |
656 | 656 | case _ => | |
657 | 657 | false | |
658 | 658 | } | |
659 | 659 | else false | |
660 | 660 |
github/deemru/w8io/026f985 68.01 ms ◑