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