tx · CvwrnBQyiABCgLwSjiYZVqzJyRy4wxXsaFABh8Xj8ox4 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2: -0.01500000 Waves 2019.09.27 20:24 [695120] smart account 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2 > SELF 0.00000000 Waves
{ "type": 13, "id": "CvwrnBQyiABCgLwSjiYZVqzJyRy4wxXsaFABh8Xj8ox4", "fee": 1500000, "feeAssetId": null, "timestamp": 1569605032258, "version": 1, "sender": "3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2", "senderPublicKey": "8y2Uc9uYf5gRD6Dzm1aC73zYe3LZvtVDUVAnAhNdN2mg", "proofs": [ "3Gfw5sUk938GE53kebmHqrtmDBhCmhRCqDk6dWFisW9PhRuBHxQKf79x9tzuZbgwNCrLCXN1vUErgBY3bcQF3cdg" ], "script": "base64:AAIDAAAAAAAAAD8IARIDCgEIEgMKAQgSBQoDAQEIEgQKAggBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgAAAAcAAAAAANkYXkAAAAAAAAABaAAAAAABVdBVkVTBQAAAAR1bml0AAAAAAR3QlRDAQAAACBs+mr/xe2qjAt/tSqT0qIML4KC23R6BIxT+/0TH3Og/wAAAAAEd0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABHdVU0QBAAAAIN0cvQHwz3UFMHgHsqi2OJjRRd1cH7ozWuNAb/pmWXD9AAAAAAlzdGF0ZU9wZW4CAAAABk9wZW5lZAAAAAAOc3RhdGVTdWdnZXN0ZWQCAAAACVN1Z2dlc3RlZAAAAAALc3RhdGVDYW5jZWwCAAAACENhbmNlbGVkAAAAAA9zdGF0ZUluUHJvZ3Jlc3MCAAAACkluUHJvZ3Jlc3MAAAAAEXN0YXRlV2FpdDRDb25maXJtAgAAABNXYWl0Rm9yQ29uZmlybWF0aW9uAAAAAA1zdGF0ZUNvbXBsZXRlAgAAAAlD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W5zYWN0aW9uBAAAAANzdHgFAAAAByRtYXRjaDAGBwcxXzX6", "chainId": 84, "height": 695120, "spentComplexity": 0 } View: original | compacted Prev: XJKBJEN7mYa7WGJdKWiHEyn5ZLSrspHmaUDL4goW6au Next: EB5E3XbRok1yGfrr3ZN98HmssW9jTzEgxBNrdPzVPvyQ Diff:
Old | New | Differences | |
---|---|---|---|
221 | 221 | } | |
222 | 222 | } | |
223 | 223 | let auctionBlocksForExecution = { | |
224 | - | let valueBlocksForExecution = getInteger(this, (auctionId + "JobPerformance")) | |
224 | + | let valueBlocksForExecution = getInteger(this, (auctionId + "_JobPerformance")) | |
225 | 225 | match valueBlocksForExecution { | |
226 | 226 | case a: Int => | |
227 | 227 | a | |
485 | 485 | else (auctionState == stateSuggested)) | |
486 | 486 | then true | |
487 | 487 | else (auctionState == stateInProgress)) | |
488 | - | then WriteSet([DataEntry((auctionId + "JobPerformance"), newAuctionExecutionTime)]) | |
488 | + | then WriteSet([DataEntry((auctionId + "_JobPerformance"), newAuctionExecutionTime)]) | |
489 | 489 | else throw("Incorrect state") | |
490 | 490 | else throw("Only Client can increase execution time") | |
491 | 491 | } | |
733 | 733 | } | |
734 | 734 | } | |
735 | 735 | let auctionExecutionTime = { | |
736 | - | let valueBlocksForExecution = getInteger(this, (auctionId + "JobPerformance")) | |
736 | + | let valueBlocksForExecution = getInteger(this, (auctionId + "_JobPerformance")) | |
737 | 737 | match valueBlocksForExecution { | |
738 | 738 | case a: Int => | |
739 | 739 | a | |
806 | 806 | } | |
807 | 807 | } | |
808 | 808 | let auctionExecutionTime = { | |
809 | - | let valueBlocksForExecution = getInteger(this, (auctionId + "JobPerformance")) | |
809 | + | let valueBlocksForExecution = getInteger(this, (auctionId + "_JobPerformance")) | |
810 | 810 | match valueBlocksForExecution { | |
811 | 811 | case a: Int => | |
812 | 812 | a |
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 = "CMR" | |
31 | 31 | ||
32 | 32 | let freelancer = "FL" | |
33 | 33 | ||
34 | 34 | let ambassador1 = base58'1' | |
35 | 35 | ||
36 | 36 | let ambassador2 = base58'1' | |
37 | 37 | ||
38 | 38 | let ambassador3 = base58'1' | |
39 | 39 | ||
40 | 40 | let ambassador4 = base58'1' | |
41 | 41 | ||
42 | 42 | let ambassador5 = base58'1' | |
43 | 43 | ||
44 | 44 | func AuctionIdDataKey (auctionId) = (auctionId + "_AuctionData") | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func getDataList (auctionId) = { | |
48 | 48 | let getDataString = getString(this, auctionId) | |
49 | 49 | let a = match getDataString { | |
50 | 50 | case a: String => | |
51 | 51 | a | |
52 | 52 | case _ => | |
53 | 53 | throw("AuctionId was not found") | |
54 | 54 | } | |
55 | 55 | split(a, "_") | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getDisputeDataList (auctionId) = { | |
60 | 60 | let keyDisputeData = ((auctionId + "_") + stateDispute) | |
61 | 61 | let getDisputeDataString = getString(this, keyDisputeData) | |
62 | 62 | let a = match getDisputeDataString { | |
63 | 63 | case a: String => | |
64 | 64 | a | |
65 | 65 | case _ => | |
66 | 66 | throw("Dispute data was not found") | |
67 | 67 | } | |
68 | 68 | split(a, "/") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func AssetNameToBase58 (auctionAssetName) = if ((auctionAssetName == "WAVES")) | |
73 | 73 | then WAVES | |
74 | 74 | else if ((auctionAssetName == "BTC")) | |
75 | 75 | then wBTC | |
76 | 76 | else if ((auctionAssetName == "EUR")) | |
77 | 77 | then wEUR | |
78 | 78 | else if ((auctionAssetName == "USD")) | |
79 | 79 | then wUSD | |
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 increaseFreezedBalance (pmtAssetName,auctionPrice) = { | |
87 | 87 | let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed")) | |
88 | 88 | let currentFreezedBalance = match keyFreezedFunds { | |
89 | 89 | case a: Int => | |
90 | 90 | a | |
91 | 91 | case _ => | |
92 | 92 | 0 | |
93 | 93 | } | |
94 | 94 | (currentFreezedBalance + auctionPrice) | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func decreaseFreezedBalance (pmtAssetName,auctionPrice) = { | |
99 | 99 | let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed")) | |
100 | 100 | let currentFreezedBalance = match keyFreezedFunds { | |
101 | 101 | case a: Int => | |
102 | 102 | a | |
103 | 103 | case _ => | |
104 | 104 | 0 | |
105 | 105 | } | |
106 | 106 | let a = (currentFreezedBalance - auctionPrice) | |
107 | 107 | if ((a > 0)) | |
108 | 108 | then a | |
109 | 109 | else throw("Freezed amount couldn't be less than 0") | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func freelancerIsRegistered (callerPub) = { | |
114 | 114 | let freelancerIsRegistered = getString(this, (callerPub + "_Freelancer")) | |
115 | 115 | match freelancerIsRegistered { | |
116 | 116 | case a: String => | |
117 | 117 | callerPub | |
118 | 118 | case _ => | |
119 | 119 | throw("Only registered users can make bets") | |
120 | 120 | } | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | @Callable(i) | |
125 | 125 | func freelancerSignUp (info) = { | |
126 | 126 | let userPublicKey = toBase58String(i.callerPublicKey) | |
127 | 127 | let alreadyRegistered = getString(this, (userPublicKey + "_Freelancer")) | |
128 | 128 | if (isDefined(alreadyRegistered)) | |
129 | 129 | then throw("User already registered") | |
130 | 130 | else WriteSet([DataEntry((userPublicKey + "_Freelancer"), info)]) | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | ||
135 | 135 | @Callable(i) | |
136 | 136 | func clientSignUp (info) = { | |
137 | 137 | let userPublicKey = toBase58String(i.callerPublicKey) | |
138 | 138 | let alreadyRegistered = getString(this, (userPublicKey + "_Client")) | |
139 | 139 | if (isDefined(alreadyRegistered)) | |
140 | 140 | then throw("User already registered") | |
141 | 141 | else WriteSet([DataEntry((userPublicKey + "_Client"), info)]) | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | ||
146 | 146 | @Callable(i) | |
147 | 147 | func createAuction (jobExecutionDays,auctionDurationDays,auctionInfo) = { | |
148 | 148 | let auctionId = toBase58String(i.transactionId) | |
149 | 149 | let auctionClient = toBase58String(i.callerPublicKey) | |
150 | 150 | let pmt = extract(i.payment) | |
151 | 151 | let pmtAmount = pmt.amount | |
152 | 152 | let auctionPrice = if ((pmtAmount > 0)) | |
153 | 153 | then pmtAmount | |
154 | 154 | else throw("Amount must be higher then 0") | |
155 | 155 | let auctionStart = height | |
156 | 156 | let auctionDurationBlocks = (auctionDurationDays * day) | |
157 | 157 | let blocksForExecution = (jobExecutionDays * day) | |
158 | 158 | let pmtAssetName = if (!(isDefined(pmt.assetId))) | |
159 | 159 | then "WAVES" | |
160 | 160 | else if ((pmt.assetId == wBTC)) | |
161 | 161 | then "BTC" | |
162 | 162 | else if ((pmt.assetId == wEUR)) | |
163 | 163 | then "EUR" | |
164 | 164 | else if ((pmt.assetId == wUSD)) | |
165 | 165 | then "USD" | |
166 | 166 | else throw("AssetId is incorrect") | |
167 | 167 | let newFreezedBalance = increaseFreezedBalance(pmtAssetName, auctionPrice) | |
168 | 168 | WriteSet([DataEntry((auctionId + "_State"), stateOpen), DataEntry((auctionId + "_Info"), auctionInfo), DataEntry((auctionId + "_Client"), 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)]) | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | ||
173 | 173 | @Callable(i) | |
174 | 174 | func makeBid (auctionId,betPrice) = { | |
175 | 175 | let callerPub = toBase58String(i.callerPublicKey) | |
176 | 176 | let betTime = height | |
177 | 177 | let auctionState = { | |
178 | 178 | let valueState = getString(this, (auctionId + "_State")) | |
179 | 179 | match valueState { | |
180 | 180 | case a: String => | |
181 | 181 | a | |
182 | 182 | case _ => | |
183 | 183 | throw("Auction State was not found") | |
184 | 184 | } | |
185 | 185 | } | |
186 | 186 | let auctionInfo = { | |
187 | 187 | let valueAuctionInfo = getString(this, (auctionId + "_Info")) | |
188 | 188 | match valueAuctionInfo { | |
189 | 189 | case a: String => | |
190 | 190 | a | |
191 | 191 | case _ => | |
192 | 192 | throw("Auction info was not found") | |
193 | 193 | } | |
194 | 194 | } | |
195 | 195 | let auctionClient = { | |
196 | 196 | let valueClient = getString(this, (auctionId + "_Client")) | |
197 | 197 | let a = match valueClient { | |
198 | 198 | case a: String => | |
199 | 199 | a | |
200 | 200 | case _ => | |
201 | 201 | throw("Auction Client was not found") | |
202 | 202 | } | |
203 | 203 | fromBase58String(a) | |
204 | 204 | } | |
205 | 205 | let auctionStart = { | |
206 | 206 | let valueAuctionStart = getInteger(this, (auctionId + "_AuctionStart")) | |
207 | 207 | match valueAuctionStart { | |
208 | 208 | case a: Int => | |
209 | 209 | a | |
210 | 210 | case _ => | |
211 | 211 | throw("Auction Start time was not found") | |
212 | 212 | } | |
213 | 213 | } | |
214 | 214 | let auctionDuration = { | |
215 | 215 | let valueauctionDuration = getInteger(this, (auctionId + "_AuctionDuration")) | |
216 | 216 | match valueauctionDuration { | |
217 | 217 | case a: Int => | |
218 | 218 | a | |
219 | 219 | case _ => | |
220 | 220 | throw("Auction duration time was not found") | |
221 | 221 | } | |
222 | 222 | } | |
223 | 223 | let auctionBlocksForExecution = { | |
224 | - | let valueBlocksForExecution = getInteger(this, (auctionId + "JobPerformance")) | |
224 | + | let valueBlocksForExecution = getInteger(this, (auctionId + "_JobPerformance")) | |
225 | 225 | match valueBlocksForExecution { | |
226 | 226 | case a: Int => | |
227 | 227 | a | |
228 | 228 | case _ => | |
229 | 229 | throw("Auction job performance time was not found") | |
230 | 230 | } | |
231 | 231 | } | |
232 | 232 | let auctionAssetName = { | |
233 | 233 | let valueAssetName = getString(this, (auctionId + "_AssetName")) | |
234 | 234 | match valueAssetName { | |
235 | 235 | case a: String => | |
236 | 236 | a | |
237 | 237 | case _ => | |
238 | 238 | throw("Auction asset name was not found") | |
239 | 239 | } | |
240 | 240 | } | |
241 | 241 | let auctionPrice = { | |
242 | 242 | let valuePrice = getInteger(this, (auctionId + "_Price")) | |
243 | 243 | match valuePrice { | |
244 | 244 | case a: Int => | |
245 | 245 | a | |
246 | 246 | case _ => | |
247 | 247 | throw("Auction price was not found") | |
248 | 248 | } | |
249 | 249 | } | |
250 | 250 | let auctionAssetId58 = AssetNameToBase58(auctionAssetName) | |
251 | 251 | let newFreelancer = freelancerIsRegistered(callerPub) | |
252 | 252 | let dAppCommission = ((auctionPrice * 3) / 100) | |
253 | 253 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice) | |
254 | 254 | let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration) | |
255 | 255 | if (auctionTimeisOver) | |
256 | 256 | then if ((auctionState == stateOpen)) | |
257 | 257 | then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), (auctionPrice - dAppCommission), auctionAssetId58)])) | |
258 | 258 | else if ((auctionState == stateSuggested)) | |
259 | 259 | then { | |
260 | 260 | let auctionLowestBidder = { | |
261 | 261 | let valueLowestBidder = getString(this, (auctionId + "_LowestBidderPub")) | |
262 | 262 | match valueLowestBidder { | |
263 | 263 | case a: String => | |
264 | 264 | a | |
265 | 265 | case _ => | |
266 | 266 | throw("Auction lowest bidder was not found") | |
267 | 267 | } | |
268 | 268 | } | |
269 | 269 | let newAuctionPrice = { | |
270 | 270 | let valueNewAuctionPrice = getInteger(this, ((auctionId + "_Bid_") + auctionLowestBidder)) | |
271 | 271 | match valueNewAuctionPrice { | |
272 | 272 | case a: Int => | |
273 | 273 | a | |
274 | 274 | case _ => | |
275 | 275 | throw("Auction lowest bid was not found") | |
276 | 276 | } | |
277 | 277 | } | |
278 | 278 | let amountDifference = ((auctionPrice - newAuctionPrice) - dAppCommission) | |
279 | 279 | ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_Freelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), newAuctionPrice)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountDifference, auctionAssetId58)])) | |
280 | 280 | } | |
281 | 281 | else throw("Incorrect auction state") | |
282 | 282 | else if ((auctionState == stateOpen)) | |
283 | 283 | then WriteSet([DataEntry(((auctionId + "_Bid_") + newFreelancer), betPrice), DataEntry((auctionId + "_State"), stateSuggested), DataEntry((auctionId + "_LowestBidderPub"), callerPub), DataEntry((auctionId + callerPub), betPrice)]) | |
284 | 284 | else if ((auctionState == stateSuggested)) | |
285 | 285 | then { | |
286 | 286 | let currentLowestBidderPub = { | |
287 | 287 | let lowestBidder = getString(this, (auctionId + "_LowestBidderPub")) | |
288 | 288 | match lowestBidder { | |
289 | 289 | case a: String => | |
290 | 290 | a | |
291 | 291 | case _ => | |
292 | 292 | throw("Auction lowest bidder was not found") | |
293 | 293 | } | |
294 | 294 | } | |
295 | 295 | let newLowestBidderPub = { | |
296 | 296 | let valueCurrentLowestBid = getInteger(this, ((auctionId + "_Bid_") + currentLowestBidderPub)) | |
297 | 297 | let currentLowestBid = match valueCurrentLowestBid { | |
298 | 298 | case a: Int => | |
299 | 299 | a | |
300 | 300 | case _ => | |
301 | 301 | throw("Auction lowest bid was not found") | |
302 | 302 | } | |
303 | 303 | if ((currentLowestBid > betPrice)) | |
304 | 304 | then newFreelancer | |
305 | 305 | else currentLowestBidderPub | |
306 | 306 | } | |
307 | 307 | WriteSet([DataEntry((auctionId + "_LowestBidderPub"), newLowestBidderPub), DataEntry(((auctionId + "_Bid_") + newFreelancer), betPrice)]) | |
308 | 308 | } | |
309 | 309 | else throw(((((("Incorrect jobId state. Now: " + auctionState) + ", must be: ") + stateOpen) + " or ") + stateSuggested)) | |
310 | 310 | } | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | ||
314 | 314 | @Callable(i) | |
315 | 315 | func chooseFreelancer (auctionId,freelancerPub) = { | |
316 | 316 | let callerPub = extract(i.callerPublicKey) | |
317 | 317 | let betTime = height | |
318 | 318 | let auctionState = { | |
319 | 319 | let valueState = getString(this, (auctionId + "_State")) | |
320 | 320 | match valueState { | |
321 | 321 | case a: String => | |
322 | 322 | a | |
323 | 323 | case _ => | |
324 | 324 | throw("Auction State was not found") | |
325 | 325 | } | |
326 | 326 | } | |
327 | 327 | let auctionClient = { | |
328 | 328 | let valueClient = getString(this, (auctionId + "_Client")) | |
329 | 329 | let a = match valueClient { | |
330 | 330 | case a: String => | |
331 | 331 | a | |
332 | 332 | case _ => | |
333 | 333 | throw("Auction Client was not found") | |
334 | 334 | } | |
335 | 335 | fromBase58String(a) | |
336 | 336 | } | |
337 | 337 | let auctionStart = { | |
338 | 338 | let valueAuctionStart = getInteger(this, (auctionId + "_AuctionStart")) | |
339 | 339 | match valueAuctionStart { | |
340 | 340 | case a: Int => | |
341 | 341 | a | |
342 | 342 | case _ => | |
343 | 343 | throw("Auction Start time was not found") | |
344 | 344 | } | |
345 | 345 | } | |
346 | 346 | let auctionDuration = { | |
347 | 347 | let valueauctionDuration = getInteger(this, (auctionId + "_AuctionDuration")) | |
348 | 348 | match valueauctionDuration { | |
349 | 349 | case a: Int => | |
350 | 350 | a | |
351 | 351 | case _ => | |
352 | 352 | throw("Auction duration time was not found") | |
353 | 353 | } | |
354 | 354 | } | |
355 | 355 | let auctionAssetName = { | |
356 | 356 | let valueAssetName = getString(this, (auctionId + "_AssetName")) | |
357 | 357 | match valueAssetName { | |
358 | 358 | case a: String => | |
359 | 359 | a | |
360 | 360 | case _ => | |
361 | 361 | throw("Auction asset name was not found") | |
362 | 362 | } | |
363 | 363 | } | |
364 | 364 | let auctionPrice = { | |
365 | 365 | let valuePrice = getInteger(this, (auctionId + "_Price")) | |
366 | 366 | match valuePrice { | |
367 | 367 | case a: Int => | |
368 | 368 | a | |
369 | 369 | case _ => | |
370 | 370 | throw("Auction price was not found") | |
371 | 371 | } | |
372 | 372 | } | |
373 | 373 | let auctionAssetId58 = AssetNameToBase58(auctionAssetName) | |
374 | 374 | let freelancerBidAmount = { | |
375 | 375 | let keyFreelancerBid = ((auctionId + "_Bid_") + freelancerPub) | |
376 | 376 | let valueFreelacerBid = getInteger(this, keyFreelancerBid) | |
377 | 377 | match valueFreelacerBid { | |
378 | 378 | case a: Int => | |
379 | 379 | a | |
380 | 380 | case _ => | |
381 | 381 | throw("Freelancer's bet was not found") | |
382 | 382 | } | |
383 | 383 | } | |
384 | 384 | let dAppCommission = ((auctionPrice * 3) / 100) | |
385 | 385 | let amountDifference = ((auctionPrice - freelancerBidAmount) - dAppCommission) | |
386 | 386 | let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration) | |
387 | 387 | if ((callerPub == auctionClient)) | |
388 | 388 | then if (auctionTimeisOver) | |
389 | 389 | then if ((auctionState == stateOpen)) | |
390 | 390 | then { | |
391 | 391 | let newPrice = (auctionPrice - dAppCommission) | |
392 | 392 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, newPrice) | |
393 | 393 | ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), newPrice, auctionAssetId58)])) | |
394 | 394 | } | |
395 | 395 | else if ((auctionState == stateSuggested)) | |
396 | 396 | then { | |
397 | 397 | let auctionLowestBidder = { | |
398 | 398 | let valueLowestBidder = getString(this, (auctionId + "_LowestBidderPub")) | |
399 | 399 | match valueLowestBidder { | |
400 | 400 | case a: String => | |
401 | 401 | a | |
402 | 402 | case _ => | |
403 | 403 | throw("Auction lowest bidder was not found") | |
404 | 404 | } | |
405 | 405 | } | |
406 | 406 | let newAuctionPrice = { | |
407 | 407 | let valueNewAuctionPrice = getInteger(this, ((auctionId + "_Bid_") + auctionLowestBidder)) | |
408 | 408 | match valueNewAuctionPrice { | |
409 | 409 | case a: Int => | |
410 | 410 | a | |
411 | 411 | case _ => | |
412 | 412 | throw("Auction lowest bid was not found") | |
413 | 413 | } | |
414 | 414 | } | |
415 | 415 | WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_Freelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), newAuctionPrice)]) | |
416 | 416 | } | |
417 | 417 | else throw("Incorrect auction state") | |
418 | 418 | else { | |
419 | 419 | let setNewFreelancer = { | |
420 | 420 | let newFreelancer = getInteger(this, ((auctionId + "_Bid_") + freelancerPub)) | |
421 | 421 | match newFreelancer { | |
422 | 422 | case a: Int => | |
423 | 423 | freelancerPub | |
424 | 424 | case _ => | |
425 | 425 | throw("Error: Incorrect freelancerPub") | |
426 | 426 | } | |
427 | 427 | } | |
428 | 428 | let setNewPrice = { | |
429 | 429 | let freelancerBid = getInteger(this, ((auctionId + "_Bid_") + freelancerPub)) | |
430 | 430 | match freelancerBid { | |
431 | 431 | case a: Int => | |
432 | 432 | a | |
433 | 433 | case _ => | |
434 | 434 | throw("Auction lowest bidder was not found") | |
435 | 435 | } | |
436 | 436 | } | |
437 | 437 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, setNewPrice) | |
438 | 438 | ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_Freelancer"), setNewFreelancer), DataEntry((auctionId + "_Price"), setNewPrice), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountDifference, auctionAssetId58)])) | |
439 | 439 | } | |
440 | 440 | else throw("Only auction customer can choose a freelancer") | |
441 | 441 | } | |
442 | 442 | ||
443 | 443 | ||
444 | 444 | ||
445 | 445 | @Callable(i) | |
446 | 446 | func increaseExecutionTime (auctionId,executionDays) = { | |
447 | 447 | let caller = extract(i.callerPublicKey) | |
448 | 448 | let auctionState = { | |
449 | 449 | let valueState = getString(this, (auctionId + "_State")) | |
450 | 450 | match valueState { | |
451 | 451 | case a: String => | |
452 | 452 | a | |
453 | 453 | case _ => | |
454 | 454 | throw("Auction State was not found") | |
455 | 455 | } | |
456 | 456 | } | |
457 | 457 | let auctionClient = { | |
458 | 458 | let valueClient = getString(this, (auctionId + "_Client")) | |
459 | 459 | let a = match valueClient { | |
460 | 460 | case a: String => | |
461 | 461 | a | |
462 | 462 | case _ => | |
463 | 463 | throw("Auction Client was not found") | |
464 | 464 | } | |
465 | 465 | fromBase58String(a) | |
466 | 466 | } | |
467 | 467 | let auctionExecutionTime = { | |
468 | 468 | let valueBlocksForExecution = getInteger(this, (auctionId + "JobPerformance")) | |
469 | 469 | match valueBlocksForExecution { | |
470 | 470 | case a: Int => | |
471 | 471 | a | |
472 | 472 | case _ => | |
473 | 473 | throw("Auction job performance time was not found") | |
474 | 474 | } | |
475 | 475 | } | |
476 | 476 | let newAuctionExecutionTime = { | |
477 | 477 | let newAuctionBlocksForExecution = (executionDays * day) | |
478 | 478 | if ((newAuctionBlocksForExecution > auctionExecutionTime)) | |
479 | 479 | then newAuctionBlocksForExecution | |
480 | 480 | else throw("New execution time must more than current execution time") | |
481 | 481 | } | |
482 | 482 | if ((caller == auctionClient)) | |
483 | 483 | then if (if (if ((auctionState == stateOpen)) | |
484 | 484 | then true | |
485 | 485 | else (auctionState == stateSuggested)) | |
486 | 486 | then true | |
487 | 487 | else (auctionState == stateInProgress)) | |
488 | - | then WriteSet([DataEntry((auctionId + "JobPerformance"), newAuctionExecutionTime)]) | |
488 | + | then WriteSet([DataEntry((auctionId + "_JobPerformance"), newAuctionExecutionTime)]) | |
489 | 489 | else throw("Incorrect state") | |
490 | 490 | else throw("Only Client can increase execution time") | |
491 | 491 | } | |
492 | 492 | ||
493 | 493 | ||
494 | 494 | ||
495 | 495 | @Callable(i) | |
496 | 496 | func cancelAuction (auctionId) = { | |
497 | 497 | let callerPub = extract(i.callerPublicKey) | |
498 | 498 | let auctionState = { | |
499 | 499 | let valueState = getString(this, (auctionId + "_State")) | |
500 | 500 | match valueState { | |
501 | 501 | case a: String => | |
502 | 502 | a | |
503 | 503 | case _ => | |
504 | 504 | throw("Auction State was not found") | |
505 | 505 | } | |
506 | 506 | } | |
507 | 507 | let auctionClient = { | |
508 | 508 | let valueClient = getString(this, (auctionId + "_Client")) | |
509 | 509 | let a = match valueClient { | |
510 | 510 | case a: String => | |
511 | 511 | a | |
512 | 512 | case _ => | |
513 | 513 | throw("Auction Client was not found") | |
514 | 514 | } | |
515 | 515 | fromBase58String(a) | |
516 | 516 | } | |
517 | 517 | let callerIsClient = if ((callerPub == auctionClient)) | |
518 | 518 | then true | |
519 | 519 | else throw("Auction can be canceled only by owner.") | |
520 | 520 | if (callerIsClient) | |
521 | 521 | then if ((auctionState == stateOpen)) | |
522 | 522 | then WriteSet([DataEntry((auctionId + "_State"), stateCancel)]) | |
523 | 523 | else throw("Incorrect auction state.") | |
524 | 524 | else throw("Only Client can cancel auction") | |
525 | 525 | } | |
526 | 526 | ||
527 | 527 | ||
528 | 528 | ||
529 | 529 | @Callable(i) | |
530 | 530 | func openDispute (auctionId) = { | |
531 | 531 | let caller = extract(i.callerPublicKey) | |
532 | 532 | let auctionState = { | |
533 | 533 | let valueState = getString(this, (auctionId + "_State")) | |
534 | 534 | match valueState { | |
535 | 535 | case a: String => | |
536 | 536 | a | |
537 | 537 | case _ => | |
538 | 538 | throw("Auction State was not found") | |
539 | 539 | } | |
540 | 540 | } | |
541 | 541 | let auctionClient = { | |
542 | 542 | let valueClient = getString(this, (auctionId + "_Client")) | |
543 | 543 | let a = match valueClient { | |
544 | 544 | case a: String => | |
545 | 545 | a | |
546 | 546 | case _ => | |
547 | 547 | throw("Auction Client was not found") | |
548 | 548 | } | |
549 | 549 | fromBase58String(a) | |
550 | 550 | } | |
551 | 551 | let auctionFreelancer = { | |
552 | 552 | let valueClient = getString(this, (auctionId + "_Freelancer")) | |
553 | 553 | let a = match valueClient { | |
554 | 554 | case a: String => | |
555 | 555 | a | |
556 | 556 | case _ => | |
557 | 557 | throw("Auction Client was not found") | |
558 | 558 | } | |
559 | 559 | fromBase58String(a) | |
560 | 560 | } | |
561 | 561 | if (if ((auctionState == stateOpen)) | |
562 | 562 | then true | |
563 | 563 | else (auctionState == stateSuggested)) | |
564 | 564 | then throw("Incorrect auction state for dispute opening") | |
565 | 565 | else if (if ((caller == auctionClient)) | |
566 | 566 | then true | |
567 | 567 | else (caller == auctionFreelancer)) | |
568 | 568 | then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), 0)]) | |
569 | 569 | else throw("Only customer and freelancer can open dispute") | |
570 | 570 | } | |
571 | 571 | ||
572 | 572 | ||
573 | 573 | ||
574 | 574 | @Callable(i) | |
575 | 575 | func voteDispute (auctionId,vote) = { | |
576 | 576 | let callerPub = extract(i.callerPublicKey) | |
577 | 577 | let auctionState = { | |
578 | 578 | let valueState = getString(this, (auctionId + "_State")) | |
579 | 579 | match valueState { | |
580 | 580 | case a: String => | |
581 | 581 | a | |
582 | 582 | case _ => | |
583 | 583 | throw("Auction State was not found") | |
584 | 584 | } | |
585 | 585 | } | |
586 | 586 | let auctionClient = { | |
587 | 587 | let valueClient = getString(this, (auctionId + "_Client")) | |
588 | 588 | let a = match valueClient { | |
589 | 589 | case a: String => | |
590 | 590 | a | |
591 | 591 | case _ => | |
592 | 592 | throw("Auction Client was not found") | |
593 | 593 | } | |
594 | 594 | fromBase58String(a) | |
595 | 595 | } | |
596 | 596 | let auctionAssetName = { | |
597 | 597 | let valueAssetName = getString(this, (auctionId + "_AssetName")) | |
598 | 598 | match valueAssetName { | |
599 | 599 | case a: String => | |
600 | 600 | a | |
601 | 601 | case _ => | |
602 | 602 | throw("Auction asset name was not found") | |
603 | 603 | } | |
604 | 604 | } | |
605 | 605 | let auctionPrice = { | |
606 | 606 | let valuePrice = getInteger(this, (auctionId + "_Price")) | |
607 | 607 | match valuePrice { | |
608 | 608 | case a: Int => | |
609 | 609 | a | |
610 | 610 | case _ => | |
611 | 611 | throw("Auction price was not found") | |
612 | 612 | } | |
613 | 613 | } | |
614 | 614 | let auctionFreelancer = { | |
615 | 615 | let valueClient = getString(this, (auctionId + "_Freelancer")) | |
616 | 616 | let a = match valueClient { | |
617 | 617 | case a: String => | |
618 | 618 | a | |
619 | 619 | case _ => | |
620 | 620 | throw("Auction Client was not found") | |
621 | 621 | } | |
622 | 622 | fromBase58String(a) | |
623 | 623 | } | |
624 | 624 | let comission = ((auctionPrice * 3) / 100) | |
625 | 625 | let auctionAssetId58 = AssetNameToBase58(auctionAssetName) | |
626 | 626 | let callerIsAmbassador = if (if (if (if (if ((callerPub == ambassador1)) | |
627 | 627 | then true | |
628 | 628 | else (callerPub == ambassador2)) | |
629 | 629 | then true | |
630 | 630 | else (callerPub == ambassador3)) | |
631 | 631 | then true | |
632 | 632 | else (callerPub == ambassador4)) | |
633 | 633 | then true | |
634 | 634 | else (callerPub == ambassador5)) | |
635 | 635 | then toBase58String(callerPub) | |
636 | 636 | else throw("Only defined ambassadors can vote in disputes") | |
637 | 637 | let newVote = if (if ((vote == client)) | |
638 | 638 | then true | |
639 | 639 | else (vote == freelancer)) | |
640 | 640 | then vote | |
641 | 641 | else throw(((("Vote is incorrect. Must be: " + client) + " or ") + freelancer)) | |
642 | 642 | let newVoter = { | |
643 | 643 | let keyVoter = ((auctionId + "_DiputeVote_") + callerIsAmbassador) | |
644 | 644 | let valueVoter = getString(this, keyVoter) | |
645 | 645 | match valueVoter { | |
646 | 646 | case a: String => | |
647 | 647 | throw("User already voted") | |
648 | 648 | case _ => | |
649 | 649 | callerIsAmbassador | |
650 | 650 | } | |
651 | 651 | } | |
652 | 652 | let votesNumber = { | |
653 | 653 | let valueVotesNumber = getInteger(this, (auctionId + "_DisputeVotes")) | |
654 | 654 | match valueVotesNumber { | |
655 | 655 | case a: Int => | |
656 | 656 | a | |
657 | 657 | case _ => | |
658 | 658 | throw("VotesNumber was not found") | |
659 | 659 | } | |
660 | 660 | } | |
661 | 661 | if ((auctionState == stateDispute)) | |
662 | 662 | then if ((votesNumber == 4)) | |
663 | 663 | then { | |
664 | 664 | let disputeWinner = { | |
665 | 665 | let ambassador1Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador1))) | |
666 | 666 | let ambassador2Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador2))) | |
667 | 667 | let ambassador3Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador3))) | |
668 | 668 | let ambassador4Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador4))) | |
669 | 669 | let ambassador5Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador5))) | |
670 | 670 | let v1 = if ((ambassador1Vote == client)) | |
671 | 671 | then 1 | |
672 | 672 | else 0 | |
673 | 673 | let v2 = if ((ambassador2Vote == client)) | |
674 | 674 | then 1 | |
675 | 675 | else 0 | |
676 | 676 | let v3 = if ((ambassador3Vote == client)) | |
677 | 677 | then 1 | |
678 | 678 | else 0 | |
679 | 679 | let v4 = if ((ambassador4Vote == client)) | |
680 | 680 | then 1 | |
681 | 681 | else 0 | |
682 | 682 | let v5 = if ((ambassador5Vote == client)) | |
683 | 683 | then 1 | |
684 | 684 | else 0 | |
685 | 685 | let currentVote = if ((newVote == client)) | |
686 | 686 | then 1 | |
687 | 687 | else 0 | |
688 | 688 | let votesForClient = (((((v1 + v2) + v3) + v4) + v5) + currentVote) | |
689 | 689 | if ((votesForClient > 2)) | |
690 | 690 | then auctionClient | |
691 | 691 | else auctionFreelancer | |
692 | 692 | } | |
693 | 693 | let paymentWithoutComm = if ((disputeWinner == auctionClient)) | |
694 | 694 | then auctionPrice | |
695 | 695 | else (auctionPrice - comission) | |
696 | 696 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, paymentWithoutComm) | |
697 | 697 | ScriptResult(WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry((auctionId + "_State"), stateDisputeResolved), DataEntry(((auctionId + "_DiputeVote_") + callerIsAmbassador), newVote), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinner), paymentWithoutComm, auctionAssetId58)])) | |
698 | 698 | } | |
699 | 699 | else WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry(((auctionId + "_DiputeVote_") + callerIsAmbassador), newVote)]) | |
700 | 700 | else throw(("Incorrect state. Must be: " + stateDispute)) | |
701 | 701 | } | |
702 | 702 | ||
703 | 703 | ||
704 | 704 | ||
705 | 705 | @Callable(i) | |
706 | 706 | func workHandOver (auctionId) = { | |
707 | 707 | let callerPub = extract(i.callerPublicKey) | |
708 | 708 | let auctionState = { | |
709 | 709 | let valueState = getString(this, (auctionId + "_State")) | |
710 | 710 | match valueState { | |
711 | 711 | case a: String => | |
712 | 712 | a | |
713 | 713 | case _ => | |
714 | 714 | throw("Auction State was not found") | |
715 | 715 | } | |
716 | 716 | } | |
717 | 717 | let auctionStart = { | |
718 | 718 | let valueAuctionStart = getInteger(this, (auctionId + "_AuctionStart")) | |
719 | 719 | match valueAuctionStart { | |
720 | 720 | case a: Int => | |
721 | 721 | a | |
722 | 722 | case _ => | |
723 | 723 | throw("Auction Start time was not found") | |
724 | 724 | } | |
725 | 725 | } | |
726 | 726 | let auctionDuration = { | |
727 | 727 | let valueauctionDuration = getInteger(this, (auctionId + "_AuctionDuration")) | |
728 | 728 | match valueauctionDuration { | |
729 | 729 | case a: Int => | |
730 | 730 | a | |
731 | 731 | case _ => | |
732 | 732 | throw("Auction duration time was not found") | |
733 | 733 | } | |
734 | 734 | } | |
735 | 735 | let auctionExecutionTime = { | |
736 | - | let valueBlocksForExecution = getInteger(this, (auctionId + "JobPerformance")) | |
736 | + | let valueBlocksForExecution = getInteger(this, (auctionId + "_JobPerformance")) | |
737 | 737 | match valueBlocksForExecution { | |
738 | 738 | case a: Int => | |
739 | 739 | a | |
740 | 740 | case _ => | |
741 | 741 | throw("Auction job performance time was not found") | |
742 | 742 | } | |
743 | 743 | } | |
744 | 744 | let auctionFreelancer = { | |
745 | 745 | let valueClient = getString(this, (auctionId + "_Freelancer")) | |
746 | 746 | let a = match valueClient { | |
747 | 747 | case a: String => | |
748 | 748 | a | |
749 | 749 | case _ => | |
750 | 750 | throw("Auction Client was not found") | |
751 | 751 | } | |
752 | 752 | fromBase58String(a) | |
753 | 753 | } | |
754 | 754 | let currentTime = height | |
755 | 755 | let freelancerPubCheck = if ((callerPub == auctionFreelancer)) | |
756 | 756 | then callerPub | |
757 | 757 | else throw("Only a freelancer can indicate that the work is done") | |
758 | 758 | let timeIsOver = ((currentTime - auctionStart) > auctionExecutionTime) | |
759 | 759 | if ((auctionState == stateInProgress)) | |
760 | 760 | then if (timeIsOver) | |
761 | 761 | then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), "0")]) | |
762 | 762 | else WriteSet([DataEntry((auctionId + "_State"), stateWait4Confirm)]) | |
763 | 763 | else throw("Auction state is incorrect") | |
764 | 764 | } | |
765 | 765 | ||
766 | 766 | ||
767 | 767 | ||
768 | 768 | @Callable(i) | |
769 | 769 | func acceptWork (auctionId) = { | |
770 | 770 | let callerPub = extract(i.callerPublicKey) | |
771 | 771 | let auctionState = { | |
772 | 772 | let valueState = getString(this, (auctionId + "_State")) | |
773 | 773 | match valueState { | |
774 | 774 | case a: String => | |
775 | 775 | a | |
776 | 776 | case _ => | |
777 | 777 | throw("Auction State was not found") | |
778 | 778 | } | |
779 | 779 | } | |
780 | 780 | let auctionClient = { | |
781 | 781 | let valueClient = getString(this, (auctionId + "_Client")) | |
782 | 782 | let a = match valueClient { | |
783 | 783 | case a: String => | |
784 | 784 | a | |
785 | 785 | case _ => | |
786 | 786 | throw("Auction Client was not found") | |
787 | 787 | } | |
788 | 788 | fromBase58String(a) | |
789 | 789 | } | |
790 | 790 | let auctionStart = { | |
791 | 791 | let valueAuctionStart = getInteger(this, (auctionId + "_AuctionStart")) | |
792 | 792 | match valueAuctionStart { | |
793 | 793 | case a: Int => | |
794 | 794 | a | |
795 | 795 | case _ => | |
796 | 796 | throw("Auction Start time was not found") | |
797 | 797 | } | |
798 | 798 | } | |
799 | 799 | let auctionDuration = { | |
800 | 800 | let valueauctionDuration = getInteger(this, (auctionId + "_AuctionDuration")) | |
801 | 801 | match valueauctionDuration { | |
802 | 802 | case a: Int => | |
803 | 803 | a | |
804 | 804 | case _ => | |
805 | 805 | throw("Auction duration time was not found") | |
806 | 806 | } | |
807 | 807 | } | |
808 | 808 | let auctionExecutionTime = { | |
809 | - | let valueBlocksForExecution = getInteger(this, (auctionId + "JobPerformance")) | |
809 | + | let valueBlocksForExecution = getInteger(this, (auctionId + "_JobPerformance")) | |
810 | 810 | match valueBlocksForExecution { | |
811 | 811 | case a: Int => | |
812 | 812 | a | |
813 | 813 | case _ => | |
814 | 814 | throw("Auction job performance time was not found") | |
815 | 815 | } | |
816 | 816 | } | |
817 | 817 | let auctionAssetName = { | |
818 | 818 | let valueAssetName = getString(this, (auctionId + "_AssetName")) | |
819 | 819 | match valueAssetName { | |
820 | 820 | case a: String => | |
821 | 821 | a | |
822 | 822 | case _ => | |
823 | 823 | throw("Auction asset name was not found") | |
824 | 824 | } | |
825 | 825 | } | |
826 | 826 | let auctionPrice = { | |
827 | 827 | let valuePrice = getInteger(this, (auctionId + "_Price")) | |
828 | 828 | match valuePrice { | |
829 | 829 | case a: Int => | |
830 | 830 | a | |
831 | 831 | case _ => | |
832 | 832 | throw("Auction price was not found") | |
833 | 833 | } | |
834 | 834 | } | |
835 | 835 | let auctionFreelancer = { | |
836 | 836 | let valueClient = getString(this, (auctionId + "_Freelancer")) | |
837 | 837 | let a = match valueClient { | |
838 | 838 | case a: String => | |
839 | 839 | a | |
840 | 840 | case _ => | |
841 | 841 | throw("Auction Client was not found") | |
842 | 842 | } | |
843 | 843 | fromBase58String(a) | |
844 | 844 | } | |
845 | 845 | let dAppCommission = ((auctionPrice * 3) / 100) | |
846 | 846 | let amountWithoutComm = (auctionPrice - dAppCommission) | |
847 | 847 | let auctionAssetId58 = AssetNameToBase58(auctionAssetName) | |
848 | 848 | let newRating = { | |
849 | 849 | let valueRating = getInteger(this, (toBase58String(auctionFreelancer) + "_Rating")) | |
850 | 850 | let currentRating = match valueRating { | |
851 | 851 | case a: Int => | |
852 | 852 | a | |
853 | 853 | case _ => | |
854 | 854 | 0 | |
855 | 855 | } | |
856 | 856 | (currentRating + 1) | |
857 | 857 | } | |
858 | 858 | if ((callerPub == auctionClient)) | |
859 | 859 | then if ((auctionState == stateWait4Confirm)) | |
860 | 860 | then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateComplete), DataEntry((toBase58String(auctionFreelancer) + "_Rating"), newRating)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionFreelancer), amountWithoutComm, auctionAssetId58)])) | |
861 | 861 | else throw(("Incorrect state. Must be: " + stateWait4Confirm)) | |
862 | 862 | else throw("Only auction customer can use this function") | |
863 | 863 | } | |
864 | 864 | ||
865 | 865 | ||
866 | 866 | @Verifier(tx) | |
867 | 867 | func verify () = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) | |
868 | 868 | then match tx { | |
869 | 869 | case ttx: TransferTransaction => | |
870 | 870 | true | |
871 | 871 | case stx: SetScriptTransaction => | |
872 | 872 | true | |
873 | 873 | case _ => | |
874 | 874 | false | |
875 | 875 | } | |
876 | 876 | else false | |
877 | 877 |
github/deemru/w8io/169f3d6 83.92 ms ◑