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