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