tx · 9CGbAfVy4B2cCeQMiGv162p29ngsBbBFKe4Yb4MULuaU 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2: -0.01500000 Waves 2019.09.24 13:06 [690282] smart account 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2 > SELF 0.00000000 Waves
{ "type": 13, "id": "9CGbAfVy4B2cCeQMiGv162p29ngsBbBFKe4Yb4MULuaU", "fee": 1500000, "feeAssetId": null, "timestamp": 1569319568332, "version": 1, "sender": "3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2", "senderPublicKey": "8y2Uc9uYf5gRD6Dzm1aC73zYe3LZvtVDUVAnAhNdN2mg", "proofs": [ "5b2Au9iPNn9nbohPb1nuZiDefg91AwmypnwXQSGrFUa9cH4CsmrF19q5iuoo4NwXkaJkLuHHUwnX1yh3C9Y23AmG" ], "script": "base64:AAIDAAAAAAAAAD8IARIDCgEIEgMKAQgSBQoDAQEIEgQKAggBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgAAAAdAAAAAANkYXkAAAAAAAAABaAAAAAABVdBVkVTBQAAAAR1bml0AAAAAAR3QlRDAQAAACBs+mr/xe2qjAt/tSqT0qIML4KC23R6BIxT+/0TH3Og/wAAAAAEd0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABHdVU0QBAAAAIN0cvQHwz3UFMHgHsqi2OJjRRd1cH7ozWuNAb/pmWXD9AAAAAAlzdGF0ZU9wZW4CAAAABk9wZW5lZAAAAAAOc3RhdGVTdWdnZXN0ZWQCAAAACVN1Z2dlc3RlZAAAAAALc3RhdGVDYW5jZWwCAAAACENhbmNlbGVkAAAAAA9zdGF0ZUluUHJvZ3Jlc3MCAAAACkluUHJvZ3Jlc3MAAAAAEXN0YXRlV2FpdDRDb25maXJtAgAAABNXYWl0Rm9yQ29uZmlybWF0aW9uAAAAAA1zdGF0ZUNvbXBsZXRlAgAAAAlDb21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", "chainId": 84, "height": 690282, "spentComplexity": 0 } View: original | compacted Prev: 4yp4WC4YAYtuhodUohRuPXSQxLbYwf29jCbfY2Wztf94 Next: B7LnJBzoDvajfnDqSFAPgQrKdDwUpRco2CnqWCvvSRxH Diff:
Old | New | Differences | |
---|---|---|---|
200 | 200 | then ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateCancel + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + "NoFreelancer") + "_") + "NoBid")), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionCustomer), (auctionPrice - dAppCommission), auctionAssetId58)])) | |
201 | 201 | else if ((auctionState == stateSuggested)) | |
202 | 202 | then { | |
203 | - | let | |
204 | - | let | |
205 | - | WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + auctionFreelancer) + "_") + | |
203 | + | let auctionLowestBidder = auctionDataList[9] | |
204 | + | let auctionFreelancer = auctionDataList[8] | |
205 | + | WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + auctionFreelancer) + "_") + auctionLowestBidder))]) | |
206 | 206 | } | |
207 | 207 | else throw("Incorrect auction state") | |
208 | 208 | else if ((auctionState == stateOpen)) | |
209 | 209 | then WriteSet([DataEntry(((auctionId + "_") + newFreelancer), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newFreelancer))]) | |
210 | 210 | else if ((auctionState == stateSuggested)) | |
211 | 211 | then { | |
212 | - | let auctionLowestBidder = auctionDataList[ | |
212 | + | let auctionLowestBidder = auctionDataList[9] | |
213 | 213 | let newAuctionLowestBidder = { | |
214 | 214 | let keyCurrentLowestBid = ((auctionId + "_") + auctionLowestBidder) | |
215 | 215 | let valueCurrentLowestBid = getInteger(this, keyCurrentLowestBid) |
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 customer = "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 betPriceCheck (betPrice,auctionPrice) = if ((auctionPrice > betPrice)) | |
84 | 84 | then betPrice | |
85 | 85 | else throw(("Bet price must be lower than actual price. Actual price: " + toString(auctionPrice))) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func timeCheck (currentTime,startTime,expirationTime) = ((currentTime - startTime) > expirationTime) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func increaseFreezedBalance (pmtAssetName,auctionPrice) = { | |
92 | 92 | let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed")) | |
93 | 93 | let currentFreezedBalance = match keyFreezedFunds { | |
94 | 94 | case a: Int => | |
95 | 95 | a | |
96 | 96 | case _ => | |
97 | 97 | 0 | |
98 | 98 | } | |
99 | 99 | (currentFreezedBalance + auctionPrice) | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func decreaseFreezedBalance (pmtAssetName,auctionPrice) = { | |
104 | 104 | let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed")) | |
105 | 105 | let currentFreezedBalance = match keyFreezedFunds { | |
106 | 106 | case a: Int => | |
107 | 107 | a | |
108 | 108 | case _ => | |
109 | 109 | 0 | |
110 | 110 | } | |
111 | 111 | let a = (currentFreezedBalance - auctionPrice) | |
112 | 112 | if ((a > 0)) | |
113 | 113 | then a | |
114 | 114 | else throw("Freezed amount couldn't be less than 0") | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func freelancerIsRegistered (callerPub) = { | |
119 | 119 | let freelancerIsRegistered = getString(this, (callerPub + "_Freelancer")) | |
120 | 120 | match freelancerIsRegistered { | |
121 | 121 | case a: String => | |
122 | 122 | callerPub | |
123 | 123 | case _ => | |
124 | 124 | throw("Only registered users can make bets") | |
125 | 125 | } | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | @Callable(i) | |
130 | 130 | func freelancerSignUp (info) = { | |
131 | 131 | let userPublicKey = toBase58String(i.callerPublicKey) | |
132 | 132 | let alreadyRegistered = getString(this, (userPublicKey + "_Freelancer")) | |
133 | 133 | if (isDefined(alreadyRegistered)) | |
134 | 134 | then throw("User already registered") | |
135 | 135 | else WriteSet([DataEntry((userPublicKey + "_Freelancer"), info)]) | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | ||
140 | 140 | @Callable(i) | |
141 | 141 | func clientSignUp (info) = { | |
142 | 142 | let userPublicKey = toBase58String(i.callerPublicKey) | |
143 | 143 | let alreadyRegistered = getString(this, (userPublicKey + "_Client")) | |
144 | 144 | if (isDefined(alreadyRegistered)) | |
145 | 145 | then throw("User already registered") | |
146 | 146 | else WriteSet([DataEntry((userPublicKey + "_Client"), info)]) | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | ||
151 | 151 | @Callable(i) | |
152 | 152 | func createAuction (jobExecutionDays,auctionDurationDays,auctionInfo) = { | |
153 | 153 | let auctionId = toBase58String(i.transactionId) | |
154 | 154 | let auctionCustomer = toBase58String(i.callerPublicKey) | |
155 | 155 | let pmt = extract(i.payment) | |
156 | 156 | let pmtAmount = pmt.amount | |
157 | 157 | let auctionPrice = if ((pmtAmount > 0)) | |
158 | 158 | then pmtAmount | |
159 | 159 | else throw("Amount must be higher then 0") | |
160 | 160 | let auctionStart = height | |
161 | 161 | let auctionDurationBlocks = (auctionDurationDays * day) | |
162 | 162 | let blocksForExecution = (jobExecutionDays * day) | |
163 | 163 | let pmtAssetName = if (!(isDefined(pmt.assetId))) | |
164 | 164 | then "WAVES" | |
165 | 165 | else if ((pmt.assetId == wBTC)) | |
166 | 166 | then "BTC" | |
167 | 167 | else if ((pmt.assetId == wEUR)) | |
168 | 168 | then "EUR" | |
169 | 169 | else if ((pmt.assetId == wUSD)) | |
170 | 170 | then "USD" | |
171 | 171 | else throw("AssetId is incorrect") | |
172 | 172 | let newFreezedBalance = increaseFreezedBalance(pmtAssetName, auctionPrice) | |
173 | 173 | WriteSet([DataEntry(AuctionIdDataKey(auctionId), ((((((((((((((stateOpen + "_") + auctionInfo) + "_") + auctionCustomer) + "_") + toString(auctionStart)) + "_") + toString(auctionDurationBlocks)) + "_") + toString(blocksForExecution)) + "_") + pmtAssetName) + "_") + toString(auctionPrice))), DataEntry((pmtAssetName + "_Freezed"), newFreezedBalance)]) | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | ||
178 | 178 | @Callable(i) | |
179 | 179 | func makeBid (auctionId,betPrice) = { | |
180 | 180 | let callerPub = toBase58String(i.callerPublicKey) | |
181 | 181 | let betTime = height | |
182 | 182 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
183 | 183 | let auctionDataList = getDataList(AuctionIdKey) | |
184 | 184 | let auctionState = auctionDataList[0] | |
185 | 185 | let auctionInfo = auctionDataList[1] | |
186 | 186 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
187 | 187 | let auctionStart = parseIntValue(auctionDataList[3]) | |
188 | 188 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
189 | 189 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
190 | 190 | let auctionAssetName = auctionDataList[6] | |
191 | 191 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
192 | 192 | let auctionAssetId58 = AssetNameToBase58(auctionAssetName) | |
193 | 193 | let newBid = betPriceCheck(betPrice, auctionPrice) | |
194 | 194 | let newFreelancer = freelancerIsRegistered(callerPub) | |
195 | 195 | let dAppCommission = ((auctionPrice * 3) / 100) | |
196 | 196 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice) | |
197 | 197 | let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration) | |
198 | 198 | if (auctionTimeisOver) | |
199 | 199 | then if ((auctionState == stateOpen)) | |
200 | 200 | then ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateCancel + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + "NoFreelancer") + "_") + "NoBid")), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionCustomer), (auctionPrice - dAppCommission), auctionAssetId58)])) | |
201 | 201 | else if ((auctionState == stateSuggested)) | |
202 | 202 | then { | |
203 | - | let | |
204 | - | let | |
205 | - | WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + auctionFreelancer) + "_") + | |
203 | + | let auctionLowestBidder = auctionDataList[9] | |
204 | + | let auctionFreelancer = auctionDataList[8] | |
205 | + | WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + auctionFreelancer) + "_") + auctionLowestBidder))]) | |
206 | 206 | } | |
207 | 207 | else throw("Incorrect auction state") | |
208 | 208 | else if ((auctionState == stateOpen)) | |
209 | 209 | then WriteSet([DataEntry(((auctionId + "_") + newFreelancer), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newFreelancer))]) | |
210 | 210 | else if ((auctionState == stateSuggested)) | |
211 | 211 | then { | |
212 | - | let auctionLowestBidder = auctionDataList[ | |
212 | + | let auctionLowestBidder = auctionDataList[9] | |
213 | 213 | let newAuctionLowestBidder = { | |
214 | 214 | let keyCurrentLowestBid = ((auctionId + "_") + auctionLowestBidder) | |
215 | 215 | let valueCurrentLowestBid = getInteger(this, keyCurrentLowestBid) | |
216 | 216 | let currentLowestBid = match valueCurrentLowestBid { | |
217 | 217 | case a: Int => | |
218 | 218 | a | |
219 | 219 | case _ => | |
220 | 220 | throw("Can't find lowest bid by public key") | |
221 | 221 | } | |
222 | 222 | if ((currentLowestBid > newBid)) | |
223 | 223 | then newFreelancer | |
224 | 224 | else auctionLowestBidder | |
225 | 225 | } | |
226 | 226 | WriteSet([DataEntry(((auctionId + "_") + callerPub), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newAuctionLowestBidder))]) | |
227 | 227 | } | |
228 | 228 | else throw(((((("Incorrect jobId state. Now: " + auctionState) + ", must be: ") + stateOpen) + " or ") + stateSuggested)) | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Callable(i) | |
234 | 234 | func chooseFreelancer (auctionId,freelancerPub) = { | |
235 | 235 | let callerPub = extract(i.callerPublicKey) | |
236 | 236 | let betTime = height | |
237 | 237 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
238 | 238 | let auctionDataList = getDataList(AuctionIdKey) | |
239 | 239 | let auctionState = auctionDataList[0] | |
240 | 240 | let auctionInfo = auctionDataList[1] | |
241 | 241 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
242 | 242 | let auctionStart = parseIntValue(auctionDataList[3]) | |
243 | 243 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
244 | 244 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
245 | 245 | let auctionAssetName = auctionDataList[6] | |
246 | 246 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
247 | 247 | let auctionAssetId58 = AssetNameToBase58(auctionAssetName) | |
248 | 248 | let FreelancerBidAmount = { | |
249 | 249 | let keyFreelancerBid = ((auctionId + "_") + freelancerPub) | |
250 | 250 | let valueFreelacerBid = getInteger(this, keyFreelancerBid) | |
251 | 251 | match valueFreelacerBid { | |
252 | 252 | case a: Int => | |
253 | 253 | a | |
254 | 254 | case _ => | |
255 | 255 | throw("Freelancer's bet was not found") | |
256 | 256 | } | |
257 | 257 | } | |
258 | 258 | let dAppCommission = ((auctionPrice * 3) / 100) | |
259 | 259 | let amountDifference = ((auctionPrice - FreelancerBidAmount) - dAppCommission) | |
260 | 260 | let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration) | |
261 | 261 | if ((callerPub == auctionCustomer)) | |
262 | 262 | then if (auctionTimeisOver) | |
263 | 263 | then if ((auctionState == stateOpen)) | |
264 | 264 | then ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateCancel + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + "NoFreelancer") + "_") + "NoBid"))]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionCustomer), (auctionPrice - dAppCommission), auctionAssetId58)])) | |
265 | 265 | else if ((auctionState == stateSuggested)) | |
266 | 266 | then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))]) | |
267 | 267 | else throw("Incorrect auction state") | |
268 | 268 | else ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(FreelancerBidAmount)) + "_") + freelancerPub))]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionCustomer), amountDifference, auctionAssetId58)])) | |
269 | 269 | else throw("Only auction customer can choose a freelancer") | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | ||
274 | 274 | @Callable(i) | |
275 | 275 | func increaseExecutionTime (auctionId,executionDays) = { | |
276 | 276 | let caller = extract(i.callerPublicKey) | |
277 | 277 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
278 | 278 | let auctionDataList = getDataList(AuctionIdKey) | |
279 | 279 | let auctionState = auctionDataList[0] | |
280 | 280 | let auctionInfo = auctionDataList[1] | |
281 | 281 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
282 | 282 | let auctionStart = parseIntValue(auctionDataList[3]) | |
283 | 283 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
284 | 284 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
285 | 285 | let auctionAssetName = auctionDataList[6] | |
286 | 286 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
287 | 287 | let newAuctionExecutionTime = { | |
288 | 288 | let newAuctionBlocksForExecution = (executionDays * day) | |
289 | 289 | if ((newAuctionBlocksForExecution > auctionBlocksForExecution)) | |
290 | 290 | then newAuctionBlocksForExecution | |
291 | 291 | else throw("New execution time must more than current execution time") | |
292 | 292 | } | |
293 | 293 | if ((caller == auctionCustomer)) | |
294 | 294 | then if ((auctionState == stateOpen)) | |
295 | 295 | then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((auctionState + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))]) | |
296 | 296 | else if (if ((auctionState == stateSuggested)) | |
297 | 297 | then true | |
298 | 298 | else (auctionState == stateInProgress)) | |
299 | 299 | then { | |
300 | 300 | let freelancerPub = auctionDataList[7] | |
301 | 301 | WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((auctionState + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + freelancerPub))]) | |
302 | 302 | } | |
303 | 303 | else throw("Incorrect state") | |
304 | 304 | else throw("Only customer can increase execution time") | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | ||
309 | 309 | @Callable(i) | |
310 | 310 | func cancelAuction (auctionId) = { | |
311 | 311 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
312 | 312 | let auctionDataList = getDataList(AuctionIdKey) | |
313 | 313 | let auctionState = auctionDataList[0] | |
314 | 314 | let auctionInfo = auctionDataList[1] | |
315 | 315 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
316 | 316 | let auctionStart = parseIntValue(auctionDataList[3]) | |
317 | 317 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
318 | 318 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
319 | 319 | let auctionAssetName = auctionDataList[6] | |
320 | 320 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
321 | 321 | let auctionIdOwnerCheck = if ((i.callerPublicKey == auctionCustomer)) | |
322 | 322 | then true | |
323 | 323 | else throw("Auction can be canceled only by owner.") | |
324 | 324 | if ((auctionState == stateOpen)) | |
325 | 325 | then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((stateCancel + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))]) | |
326 | 326 | else throw("Incorrect auction state.") | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | ||
331 | 331 | @Callable(i) | |
332 | 332 | func openDispute (auctionId) = { | |
333 | 333 | let caller = extract(i.callerPublicKey) | |
334 | 334 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
335 | 335 | let auctionDataList = getDataList(AuctionIdKey) | |
336 | 336 | let auctionState = auctionDataList[0] | |
337 | 337 | let auctionInfo = auctionDataList[1] | |
338 | 338 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
339 | 339 | let auctionStart = parseIntValue(auctionDataList[3]) | |
340 | 340 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
341 | 341 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
342 | 342 | let auctionAssetName = auctionDataList[6] | |
343 | 343 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
344 | 344 | let auctionFreelancer = fromBase58String(auctionDataList[8]) | |
345 | 345 | if (if ((caller == auctionCustomer)) | |
346 | 346 | then true | |
347 | 347 | else (caller == auctionFreelancer)) | |
348 | 348 | then { | |
349 | 349 | let dataString = "1" | |
350 | 350 | WriteSet([DataEntry(AuctionIdKey, ((((stateDispute + "_") + auctionInfo) + "_") + dataString)), DataEntry((auctionId + "_Dispute"), "0")]) | |
351 | 351 | } | |
352 | 352 | else throw("Only customer and freelancer can open dispute") | |
353 | 353 | } | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | ||
357 | 357 | @Callable(i) | |
358 | 358 | func voteDispute (auctionId,vote) = { | |
359 | 359 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
360 | 360 | let auctionDataList = getDataList(AuctionIdKey) | |
361 | 361 | let auctionState = auctionDataList[0] | |
362 | 362 | let auctionInfo = auctionDataList[1] | |
363 | 363 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
364 | 364 | let auctionStart = parseIntValue(auctionDataList[3]) | |
365 | 365 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
366 | 366 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
367 | 367 | let auctionAssetName = auctionDataList[6] | |
368 | 368 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
369 | 369 | let auctionFreelancer = fromBase58String(auctionDataList[8]) | |
370 | 370 | let comission = ((auctionPrice * 3) / 100) | |
371 | 371 | let auctionStateCheck = if ((auctionState == stateDispute)) | |
372 | 372 | then true | |
373 | 373 | else throw(("Incorrect state. Must be: " + stateDispute)) | |
374 | 374 | let newVote = if (if ((vote == customer)) | |
375 | 375 | then true | |
376 | 376 | else (vote == freelancer)) | |
377 | 377 | then vote | |
378 | 378 | else throw(((("Vote is incorrect. Must be: " + customer) + " or ") + freelancer)) | |
379 | 379 | let newVoter = if (if (if (if (if ((i.callerPublicKey == ambassador1)) | |
380 | 380 | then true | |
381 | 381 | else (i.callerPublicKey == ambassador2)) | |
382 | 382 | then true | |
383 | 383 | else (i.callerPublicKey == ambassador3)) | |
384 | 384 | then true | |
385 | 385 | else (i.callerPublicKey == ambassador4)) | |
386 | 386 | then true | |
387 | 387 | else (i.callerPublicKey == ambassador5)) | |
388 | 388 | then toBase58String(i.callerPublicKey) | |
389 | 389 | else throw("You have no rights for disputes resolving") | |
390 | 390 | let disputeData = { | |
391 | 391 | let keyDispute = ((auctionId + "_") + stateDispute) | |
392 | 392 | let valueDispute = getString(this, keyDispute) | |
393 | 393 | match valueDispute { | |
394 | 394 | case a: String => | |
395 | 395 | a | |
396 | 396 | case _ => | |
397 | 397 | throw("Cannot find data of dispute in storage") | |
398 | 398 | } | |
399 | 399 | } | |
400 | 400 | let disputeDataList = split(disputeData, "/") | |
401 | 401 | let votesCounter = disputeDataList[0] | |
402 | 402 | if ((votesCounter == "4")) | |
403 | 403 | then { | |
404 | 404 | let votersList = split(disputeDataList[1], "_") | |
405 | 405 | let votesList = split(disputeDataList[2], "_") | |
406 | 406 | let alreadyVoted = if ((newVoter == votersList[0])) | |
407 | 407 | then true | |
408 | 408 | else (newVoter == votersList[1]) | |
409 | 409 | if (alreadyVoted) | |
410 | 410 | then throw("You already voted") | |
411 | 411 | else { | |
412 | 412 | let newVotesCounter = "5" | |
413 | 413 | let newVoters = ((disputeDataList[1] + "_") + newVoter) | |
414 | 414 | let newVotes = ((disputeDataList[2] + "_") + newVote) | |
415 | 415 | let newDisputeDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
416 | 416 | let disputeWinner = { | |
417 | 417 | let vote1 = if ((votesList[0] == customer)) | |
418 | 418 | then 1 | |
419 | 419 | else 0 | |
420 | 420 | let vote2 = if ((votesList[1] == customer)) | |
421 | 421 | then 1 | |
422 | 422 | else 0 | |
423 | 423 | let vote3 = if ((votesList[2] == customer)) | |
424 | 424 | then 1 | |
425 | 425 | else 0 | |
426 | 426 | let vote4 = if ((votesList[3] == customer)) | |
427 | 427 | then 1 | |
428 | 428 | else 0 | |
429 | 429 | let vote5 = if ((newVote == customer)) | |
430 | 430 | then 1 | |
431 | 431 | else 0 | |
432 | 432 | let customerVotes = ((((vote1 + vote2) + vote3) + vote4) + vote5) | |
433 | 433 | if ((customerVotes > 2)) | |
434 | 434 | then customer | |
435 | 435 | else freelancer | |
436 | 436 | } | |
437 | 437 | let newDataString = ((((((((((((((auctionInfo + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + toBase58String(auctionFreelancer)) | |
438 | 438 | let disputeWinnerPublic = if ((disputeWinner == customer)) | |
439 | 439 | then auctionCustomer | |
440 | 440 | else auctionFreelancer | |
441 | 441 | let amountWithoutComm = if ((disputeWinnerPublic == auctionCustomer)) | |
442 | 442 | then (auctionPrice - comission) | |
443 | 443 | else ((auctionPrice - comission) - comission) | |
444 | 444 | ScriptResult(WriteSet([DataEntry(AuctionIdDataKey(auctionId), ((stateDisputeResolved + "_") + newDataString)), DataEntry(((auctionId + "_") + stateDispute), newDisputeDataString)]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinnerPublic), amountWithoutComm, AssetNameToBase58(auctionAssetName))])) | |
445 | 445 | } | |
446 | 446 | } | |
447 | 447 | else { | |
448 | 448 | let newDisputeDataString = if ((votesCounter == "0")) | |
449 | 449 | then { | |
450 | 450 | let newVotesCounter = "1" | |
451 | 451 | let newVoters = newVoter | |
452 | 452 | let newVotes = newVote | |
453 | 453 | let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
454 | 454 | newDataString | |
455 | 455 | } | |
456 | 456 | else if ((votesCounter == "1")) | |
457 | 457 | then { | |
458 | 458 | let voter1 = disputeDataList[1] | |
459 | 459 | let vote1 = disputeDataList[2] | |
460 | 460 | let alreadyVoted = (newVoter == voter1) | |
461 | 461 | if (alreadyVoted) | |
462 | 462 | then throw("You already voted") | |
463 | 463 | else { | |
464 | 464 | let newVotesCounter = "1" | |
465 | 465 | let newVoters = (voter1 + newVoter) | |
466 | 466 | let newVotes = (vote1 + newVote) | |
467 | 467 | let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
468 | 468 | newDataString | |
469 | 469 | } | |
470 | 470 | } | |
471 | 471 | else if ((votesCounter == "2")) | |
472 | 472 | then { | |
473 | 473 | let votersList = split(disputeDataList[1], "_") | |
474 | 474 | let votesList = split(disputeDataList[2], "_") | |
475 | 475 | let alreadyVoted = if ((newVoter == votersList[0])) | |
476 | 476 | then true | |
477 | 477 | else (newVoter == votersList[1]) | |
478 | 478 | if (alreadyVoted) | |
479 | 479 | then throw("You already voted") | |
480 | 480 | else { | |
481 | 481 | let newVotesCounter = "3" | |
482 | 482 | let newVoters = ((disputeDataList[1] + "_") + newVoter) | |
483 | 483 | let newVotes = ((disputeDataList[2] + "_") + newVote) | |
484 | 484 | let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
485 | 485 | newDataString | |
486 | 486 | } | |
487 | 487 | } | |
488 | 488 | else if ((votesCounter == "3")) | |
489 | 489 | then { | |
490 | 490 | let votersList = split(disputeDataList[1], "_") | |
491 | 491 | let votesList = split(disputeDataList[2], "_") | |
492 | 492 | let alreadyVoted = if (if ((newVoter == votersList[0])) | |
493 | 493 | then true | |
494 | 494 | else (newVoter == votersList[1])) | |
495 | 495 | then true | |
496 | 496 | else (newVoter == votersList[2]) | |
497 | 497 | if (alreadyVoted) | |
498 | 498 | then throw("You already voted") | |
499 | 499 | else { | |
500 | 500 | let newVotesCounter = "4" | |
501 | 501 | let newVoters = ((disputeDataList[1] + "_") + newVoter) | |
502 | 502 | let newVotes = ((disputeDataList[2] + "_") + newVote) | |
503 | 503 | let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
504 | 504 | newDataString | |
505 | 505 | } | |
506 | 506 | } | |
507 | 507 | else throw("Dispute has been already resolved") | |
508 | 508 | WriteSet([DataEntry(((auctionId + "_") + stateDispute), newDisputeDataString)]) | |
509 | 509 | } | |
510 | 510 | } | |
511 | 511 | ||
512 | 512 | ||
513 | 513 | ||
514 | 514 | @Callable(i) | |
515 | 515 | func workHandOver (auctionId) = { | |
516 | 516 | let callerPub = extract(i.callerPublicKey) | |
517 | 517 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
518 | 518 | let auctionDataList = getDataList(AuctionIdKey) | |
519 | 519 | let auctionState = auctionDataList[0] | |
520 | 520 | let auctionInfo = auctionDataList[1] | |
521 | 521 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
522 | 522 | let auctionStart = parseIntValue(auctionDataList[3]) | |
523 | 523 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
524 | 524 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
525 | 525 | let auctionAssetName = auctionDataList[6] | |
526 | 526 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
527 | 527 | let auctionFreelancer = fromBase58String(auctionDataList[8]) | |
528 | 528 | let currentTime = height | |
529 | 529 | let freelancerPubCheck = if ((callerPub == auctionFreelancer)) | |
530 | 530 | then callerPub | |
531 | 531 | else throw("Only a freelancer can indicate that the work is done") | |
532 | 532 | let timeIsOver = ((currentTime - auctionStart) > auctionBlocksForExecution) | |
533 | 533 | if ((auctionState == stateInProgress)) | |
534 | 534 | then if (timeIsOver) | |
535 | 535 | then { | |
536 | 536 | let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6]) | |
537 | 537 | WriteSet([DataEntry(AuctionIdKey, ((((stateDispute + "_") + auctionInfo) + "_") + newDataString))]) | |
538 | 538 | } | |
539 | 539 | else { | |
540 | 540 | let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6]) | |
541 | 541 | WriteSet([DataEntry(AuctionIdKey, ((((stateWait4Confirm + "_") + auctionInfo) + "_") + newDataString))]) | |
542 | 542 | } | |
543 | 543 | else throw("Auction state is incorrect") | |
544 | 544 | } | |
545 | 545 | ||
546 | 546 | ||
547 | 547 | ||
548 | 548 | @Callable(i) | |
549 | 549 | func acceptWork (auctionId) = { | |
550 | 550 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
551 | 551 | let auctionDataList = getDataList(AuctionIdKey) | |
552 | 552 | let auctionState = auctionDataList[0] | |
553 | 553 | let auctionInfo = auctionDataList[1] | |
554 | 554 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
555 | 555 | let auctionStart = parseIntValue(auctionDataList[3]) | |
556 | 556 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
557 | 557 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
558 | 558 | let auctionAssetName = auctionDataList[6] | |
559 | 559 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
560 | 560 | let auctionFreelancer = auctionDataList[2] | |
561 | 561 | let caller = extract(i.callerPublicKey) | |
562 | 562 | let dAppCommission = ((auctionPrice * 3) / 100) | |
563 | 563 | let amountWithoutComm = (auctionPrice - dAppCommission) | |
564 | 564 | let newRating = { | |
565 | 565 | let valueRating = getInteger(this, (auctionFreelancer + "_Rating")) | |
566 | 566 | let currentRating = match valueRating { | |
567 | 567 | case a: Int => | |
568 | 568 | a | |
569 | 569 | case _ => | |
570 | 570 | 0 | |
571 | 571 | } | |
572 | 572 | (currentRating + 1) | |
573 | 573 | } | |
574 | 574 | if ((caller == auctionCustomer)) | |
575 | 575 | then if ((auctionState == stateWait4Confirm)) | |
576 | 576 | then { | |
577 | 577 | let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6]) | |
578 | 578 | ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((stateComplete + "_") + auctionInfo) + "_") + newDataString)), DataEntry((auctionFreelancer + "_Rating"), newRating)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionFreelancer)), amountWithoutComm, AssetNameToBase58(auctionAssetName))])) | |
579 | 579 | } | |
580 | 580 | else throw(("Incorrect state. Must be: " + stateWait4Confirm)) | |
581 | 581 | else throw("Only auction customer can use this function") | |
582 | 582 | } | |
583 | 583 | ||
584 | 584 | ||
585 | 585 | @Verifier(tx) | |
586 | 586 | func verify () = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) | |
587 | 587 | then match tx { | |
588 | 588 | case ttx: TransferTransaction => | |
589 | 589 | true | |
590 | 590 | case stx: SetScriptTransaction => | |
591 | 591 | true | |
592 | 592 | case _ => | |
593 | 593 | false | |
594 | 594 | } | |
595 | 595 | else false | |
596 | 596 |
github/deemru/w8io/026f985 75.40 ms ◑