tx · B7LnJBzoDvajfnDqSFAPgQrKdDwUpRco2CnqWCvvSRxH 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2: -0.01500000 Waves 2019.09.24 16:56 [690511] smart account 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2 > SELF 0.00000000 Waves
{ "type": 13, "id": "B7LnJBzoDvajfnDqSFAPgQrKdDwUpRco2CnqWCvvSRxH", "fee": 1500000, "feeAssetId": null, "timestamp": 1569333253297, "version": 1, "sender": "3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2", "senderPublicKey": "8y2Uc9uYf5gRD6Dzm1aC73zYe3LZvtVDUVAnAhNdN2mg", "proofs": [ "UmJMTzu5rCZNGV9W4B94MkPEAoxyQC1h9RwMnpMkugDVhJjcgn1YGqffo8ZnzNP8Tx4tVCkzR8fVZvXCeGxW7W1" ], "script": "base64:AAIDAAAAAAAAAD8IARIDCgEIEgMKAQgSBQoDAQEIEgQKAggBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgAAAAdAAAAAANkYXkAAAAAAAAABaAAAAAABVdBVkVTBQAAAAR1bml0AAAAAAR3QlRDAQAAACBs+mr/xe2qjAt/tSqT0qIML4KC23R6BIxT+/0TH3Og/wAAAAAEd0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABHdVU0QBAAAAIN0cvQHwz3UFMHgHsqi2OJjRRd1cH7ozWuNAb/pmWXD9AAAAAAlzdGF0ZU9wZW4CAAAABk9wZW5lZAAAAAAOc3RhdGVTdWdnZXN0ZWQCAAAACVN1Z2dlc3RlZAAAAAALc3RhdGVDYW5jZWwCAAAACENhbmNlbGVkAAAAAA9zdGF0ZUluUHJvZ3Jlc3MCAAAACkluUHJvZ3Jlc3MAAAAAEXN0YXRlV2FpdDRDb25maXJtAgAAABNXYWl0Rm9yQ29uZmlybWF0aW9uAAAAAA1zdGF0ZUNvbXBsZXRlAgAAAA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GFFbnRyeQAAAAIJAAEsAAAAAgUAAAARYXVjdGlvbkZyZWVsYW5jZXICAAAAB19SYXRpbmcFAAAACW5ld1JhdGluZwUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQUAAAARYXVjdGlvbkZyZWVsYW5jZXIFAAAAEWFtb3VudFdpdGhvdXRDb21tCQEAAAARQXNzZXROYW1lVG9CYXNlNTgAAAABBQAAABBhdWN0aW9uQXNzZXROYW1lBQAAAANuaWwJAAACAAAAAQkAASwAAAACAgAAABpJbmNvcnJlY3Qgc3RhdGUuIE11c3QgYmU6IAUAAAARc3RhdGVXYWl0NENvbmZpcm0JAAACAAAAAQIAAAArT25seSBhdWN0aW9uIGN1c3RvbWVyIGNhbiB1c2UgdGhpcyBmdW5jdGlvbgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA3R0eAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAANzdHgFAAAAByRtYXRjaDAGBwe+JB5a", "chainId": 84, "height": 690511, "spentComplexity": 0 } View: original | compacted Prev: 9CGbAfVy4B2cCeQMiGv162p29ngsBbBFKe4Yb4MULuaU Next: 7rvQMyy4CtojGSToxHZYVY9okMpf53U8Fdwv8LiVYyex 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 auctionLowestBidder = auctionDataList[9] | |
204 | 203 | let auctionFreelancer = auctionDataList[8] | |
205 | - | WriteSet([DataEntry(AuctionIdKey, | |
204 | + | WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + auctionFreelancer))]) | |
206 | 205 | } | |
207 | 206 | else throw("Incorrect auction state") | |
208 | 207 | else if ((auctionState == stateOpen)) | |
209 | 208 | then WriteSet([DataEntry(((auctionId + "_") + newFreelancer), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newFreelancer))]) | |
210 | 209 | else if ((auctionState == stateSuggested)) | |
211 | 210 | then { | |
212 | - | let auctionLowestBidder = auctionDataList[ | |
211 | + | let auctionLowestBidder = auctionDataList[8] | |
213 | 212 | let newAuctionLowestBidder = { | |
214 | 213 | let keyCurrentLowestBid = ((auctionId + "_") + auctionLowestBidder) | |
215 | 214 | let valueCurrentLowestBid = getInteger(this, keyCurrentLowestBid) | |
223 | 222 | then newFreelancer | |
224 | 223 | else auctionLowestBidder | |
225 | 224 | } | |
226 | - | WriteSet([DataEntry(((auctionId + "_") + callerPub), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newAuctionLowestBidder))]) | |
225 | + | WriteSet([DataEntry(((auctionId + "_Bid_") + callerPub), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newAuctionLowestBidder))]) | |
227 | 226 | } | |
228 | 227 | else throw(((((("Incorrect jobId state. Now: " + auctionState) + ", must be: ") + stateOpen) + " or ") + stateSuggested)) | |
229 | 228 | } |
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 auctionLowestBidder = auctionDataList[9] | |
204 | 203 | let auctionFreelancer = auctionDataList[8] | |
205 | - | WriteSet([DataEntry(AuctionIdKey, | |
204 | + | WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + auctionFreelancer))]) | |
206 | 205 | } | |
207 | 206 | else throw("Incorrect auction state") | |
208 | 207 | else if ((auctionState == stateOpen)) | |
209 | 208 | then WriteSet([DataEntry(((auctionId + "_") + newFreelancer), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newFreelancer))]) | |
210 | 209 | else if ((auctionState == stateSuggested)) | |
211 | 210 | then { | |
212 | - | let auctionLowestBidder = auctionDataList[ | |
211 | + | let auctionLowestBidder = auctionDataList[8] | |
213 | 212 | let newAuctionLowestBidder = { | |
214 | 213 | let keyCurrentLowestBid = ((auctionId + "_") + auctionLowestBidder) | |
215 | 214 | let valueCurrentLowestBid = getInteger(this, keyCurrentLowestBid) | |
216 | 215 | let currentLowestBid = match valueCurrentLowestBid { | |
217 | 216 | case a: Int => | |
218 | 217 | a | |
219 | 218 | case _ => | |
220 | 219 | throw("Can't find lowest bid by public key") | |
221 | 220 | } | |
222 | 221 | if ((currentLowestBid > newBid)) | |
223 | 222 | then newFreelancer | |
224 | 223 | else auctionLowestBidder | |
225 | 224 | } | |
226 | - | WriteSet([DataEntry(((auctionId + "_") + callerPub), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newAuctionLowestBidder))]) | |
225 | + | WriteSet([DataEntry(((auctionId + "_Bid_") + callerPub), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newAuctionLowestBidder))]) | |
227 | 226 | } | |
228 | 227 | else throw(((((("Incorrect jobId state. Now: " + auctionState) + ", must be: ") + stateOpen) + " or ") + stateSuggested)) | |
229 | 228 | } | |
230 | 229 | ||
231 | 230 | ||
232 | 231 | ||
233 | 232 | @Callable(i) | |
234 | 233 | func chooseFreelancer (auctionId,freelancerPub) = { | |
235 | 234 | let callerPub = extract(i.callerPublicKey) | |
236 | 235 | let betTime = height | |
237 | 236 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
238 | 237 | let auctionDataList = getDataList(AuctionIdKey) | |
239 | 238 | let auctionState = auctionDataList[0] | |
240 | 239 | let auctionInfo = auctionDataList[1] | |
241 | 240 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
242 | 241 | let auctionStart = parseIntValue(auctionDataList[3]) | |
243 | 242 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
244 | 243 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
245 | 244 | let auctionAssetName = auctionDataList[6] | |
246 | 245 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
247 | 246 | let auctionAssetId58 = AssetNameToBase58(auctionAssetName) | |
248 | 247 | let FreelancerBidAmount = { | |
249 | 248 | let keyFreelancerBid = ((auctionId + "_") + freelancerPub) | |
250 | 249 | let valueFreelacerBid = getInteger(this, keyFreelancerBid) | |
251 | 250 | match valueFreelacerBid { | |
252 | 251 | case a: Int => | |
253 | 252 | a | |
254 | 253 | case _ => | |
255 | 254 | throw("Freelancer's bet was not found") | |
256 | 255 | } | |
257 | 256 | } | |
258 | 257 | let dAppCommission = ((auctionPrice * 3) / 100) | |
259 | 258 | let amountDifference = ((auctionPrice - FreelancerBidAmount) - dAppCommission) | |
260 | 259 | let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration) | |
261 | 260 | if ((callerPub == auctionCustomer)) | |
262 | 261 | then if (auctionTimeisOver) | |
263 | 262 | then if ((auctionState == stateOpen)) | |
264 | 263 | 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 | 264 | else if ((auctionState == stateSuggested)) | |
266 | 265 | then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))]) | |
267 | 266 | else throw("Incorrect auction state") | |
268 | 267 | 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 | 268 | else throw("Only auction customer can choose a freelancer") | |
270 | 269 | } | |
271 | 270 | ||
272 | 271 | ||
273 | 272 | ||
274 | 273 | @Callable(i) | |
275 | 274 | func increaseExecutionTime (auctionId,executionDays) = { | |
276 | 275 | let caller = extract(i.callerPublicKey) | |
277 | 276 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
278 | 277 | let auctionDataList = getDataList(AuctionIdKey) | |
279 | 278 | let auctionState = auctionDataList[0] | |
280 | 279 | let auctionInfo = auctionDataList[1] | |
281 | 280 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
282 | 281 | let auctionStart = parseIntValue(auctionDataList[3]) | |
283 | 282 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
284 | 283 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
285 | 284 | let auctionAssetName = auctionDataList[6] | |
286 | 285 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
287 | 286 | let newAuctionExecutionTime = { | |
288 | 287 | let newAuctionBlocksForExecution = (executionDays * day) | |
289 | 288 | if ((newAuctionBlocksForExecution > auctionBlocksForExecution)) | |
290 | 289 | then newAuctionBlocksForExecution | |
291 | 290 | else throw("New execution time must more than current execution time") | |
292 | 291 | } | |
293 | 292 | if ((caller == auctionCustomer)) | |
294 | 293 | then if ((auctionState == stateOpen)) | |
295 | 294 | then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((auctionState + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))]) | |
296 | 295 | else if (if ((auctionState == stateSuggested)) | |
297 | 296 | then true | |
298 | 297 | else (auctionState == stateInProgress)) | |
299 | 298 | then { | |
300 | 299 | let freelancerPub = auctionDataList[7] | |
301 | 300 | WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((auctionState + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + freelancerPub))]) | |
302 | 301 | } | |
303 | 302 | else throw("Incorrect state") | |
304 | 303 | else throw("Only customer can increase execution time") | |
305 | 304 | } | |
306 | 305 | ||
307 | 306 | ||
308 | 307 | ||
309 | 308 | @Callable(i) | |
310 | 309 | func cancelAuction (auctionId) = { | |
311 | 310 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
312 | 311 | let auctionDataList = getDataList(AuctionIdKey) | |
313 | 312 | let auctionState = auctionDataList[0] | |
314 | 313 | let auctionInfo = auctionDataList[1] | |
315 | 314 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
316 | 315 | let auctionStart = parseIntValue(auctionDataList[3]) | |
317 | 316 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
318 | 317 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
319 | 318 | let auctionAssetName = auctionDataList[6] | |
320 | 319 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
321 | 320 | let auctionIdOwnerCheck = if ((i.callerPublicKey == auctionCustomer)) | |
322 | 321 | then true | |
323 | 322 | else throw("Auction can be canceled only by owner.") | |
324 | 323 | if ((auctionState == stateOpen)) | |
325 | 324 | then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((stateCancel + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))]) | |
326 | 325 | else throw("Incorrect auction state.") | |
327 | 326 | } | |
328 | 327 | ||
329 | 328 | ||
330 | 329 | ||
331 | 330 | @Callable(i) | |
332 | 331 | func openDispute (auctionId) = { | |
333 | 332 | let caller = extract(i.callerPublicKey) | |
334 | 333 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
335 | 334 | let auctionDataList = getDataList(AuctionIdKey) | |
336 | 335 | let auctionState = auctionDataList[0] | |
337 | 336 | let auctionInfo = auctionDataList[1] | |
338 | 337 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
339 | 338 | let auctionStart = parseIntValue(auctionDataList[3]) | |
340 | 339 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
341 | 340 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
342 | 341 | let auctionAssetName = auctionDataList[6] | |
343 | 342 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
344 | 343 | let auctionFreelancer = fromBase58String(auctionDataList[8]) | |
345 | 344 | if (if ((caller == auctionCustomer)) | |
346 | 345 | then true | |
347 | 346 | else (caller == auctionFreelancer)) | |
348 | 347 | then { | |
349 | 348 | let dataString = "1" | |
350 | 349 | WriteSet([DataEntry(AuctionIdKey, ((((stateDispute + "_") + auctionInfo) + "_") + dataString)), DataEntry((auctionId + "_Dispute"), "0")]) | |
351 | 350 | } | |
352 | 351 | else throw("Only customer and freelancer can open dispute") | |
353 | 352 | } | |
354 | 353 | ||
355 | 354 | ||
356 | 355 | ||
357 | 356 | @Callable(i) | |
358 | 357 | func voteDispute (auctionId,vote) = { | |
359 | 358 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
360 | 359 | let auctionDataList = getDataList(AuctionIdKey) | |
361 | 360 | let auctionState = auctionDataList[0] | |
362 | 361 | let auctionInfo = auctionDataList[1] | |
363 | 362 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
364 | 363 | let auctionStart = parseIntValue(auctionDataList[3]) | |
365 | 364 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
366 | 365 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
367 | 366 | let auctionAssetName = auctionDataList[6] | |
368 | 367 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
369 | 368 | let auctionFreelancer = fromBase58String(auctionDataList[8]) | |
370 | 369 | let comission = ((auctionPrice * 3) / 100) | |
371 | 370 | let auctionStateCheck = if ((auctionState == stateDispute)) | |
372 | 371 | then true | |
373 | 372 | else throw(("Incorrect state. Must be: " + stateDispute)) | |
374 | 373 | let newVote = if (if ((vote == customer)) | |
375 | 374 | then true | |
376 | 375 | else (vote == freelancer)) | |
377 | 376 | then vote | |
378 | 377 | else throw(((("Vote is incorrect. Must be: " + customer) + " or ") + freelancer)) | |
379 | 378 | let newVoter = if (if (if (if (if ((i.callerPublicKey == ambassador1)) | |
380 | 379 | then true | |
381 | 380 | else (i.callerPublicKey == ambassador2)) | |
382 | 381 | then true | |
383 | 382 | else (i.callerPublicKey == ambassador3)) | |
384 | 383 | then true | |
385 | 384 | else (i.callerPublicKey == ambassador4)) | |
386 | 385 | then true | |
387 | 386 | else (i.callerPublicKey == ambassador5)) | |
388 | 387 | then toBase58String(i.callerPublicKey) | |
389 | 388 | else throw("You have no rights for disputes resolving") | |
390 | 389 | let disputeData = { | |
391 | 390 | let keyDispute = ((auctionId + "_") + stateDispute) | |
392 | 391 | let valueDispute = getString(this, keyDispute) | |
393 | 392 | match valueDispute { | |
394 | 393 | case a: String => | |
395 | 394 | a | |
396 | 395 | case _ => | |
397 | 396 | throw("Cannot find data of dispute in storage") | |
398 | 397 | } | |
399 | 398 | } | |
400 | 399 | let disputeDataList = split(disputeData, "/") | |
401 | 400 | let votesCounter = disputeDataList[0] | |
402 | 401 | if ((votesCounter == "4")) | |
403 | 402 | then { | |
404 | 403 | let votersList = split(disputeDataList[1], "_") | |
405 | 404 | let votesList = split(disputeDataList[2], "_") | |
406 | 405 | let alreadyVoted = if ((newVoter == votersList[0])) | |
407 | 406 | then true | |
408 | 407 | else (newVoter == votersList[1]) | |
409 | 408 | if (alreadyVoted) | |
410 | 409 | then throw("You already voted") | |
411 | 410 | else { | |
412 | 411 | let newVotesCounter = "5" | |
413 | 412 | let newVoters = ((disputeDataList[1] + "_") + newVoter) | |
414 | 413 | let newVotes = ((disputeDataList[2] + "_") + newVote) | |
415 | 414 | let newDisputeDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
416 | 415 | let disputeWinner = { | |
417 | 416 | let vote1 = if ((votesList[0] == customer)) | |
418 | 417 | then 1 | |
419 | 418 | else 0 | |
420 | 419 | let vote2 = if ((votesList[1] == customer)) | |
421 | 420 | then 1 | |
422 | 421 | else 0 | |
423 | 422 | let vote3 = if ((votesList[2] == customer)) | |
424 | 423 | then 1 | |
425 | 424 | else 0 | |
426 | 425 | let vote4 = if ((votesList[3] == customer)) | |
427 | 426 | then 1 | |
428 | 427 | else 0 | |
429 | 428 | let vote5 = if ((newVote == customer)) | |
430 | 429 | then 1 | |
431 | 430 | else 0 | |
432 | 431 | let customerVotes = ((((vote1 + vote2) + vote3) + vote4) + vote5) | |
433 | 432 | if ((customerVotes > 2)) | |
434 | 433 | then customer | |
435 | 434 | else freelancer | |
436 | 435 | } | |
437 | 436 | let newDataString = ((((((((((((((auctionInfo + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + toBase58String(auctionFreelancer)) | |
438 | 437 | let disputeWinnerPublic = if ((disputeWinner == customer)) | |
439 | 438 | then auctionCustomer | |
440 | 439 | else auctionFreelancer | |
441 | 440 | let amountWithoutComm = if ((disputeWinnerPublic == auctionCustomer)) | |
442 | 441 | then (auctionPrice - comission) | |
443 | 442 | else ((auctionPrice - comission) - comission) | |
444 | 443 | ScriptResult(WriteSet([DataEntry(AuctionIdDataKey(auctionId), ((stateDisputeResolved + "_") + newDataString)), DataEntry(((auctionId + "_") + stateDispute), newDisputeDataString)]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinnerPublic), amountWithoutComm, AssetNameToBase58(auctionAssetName))])) | |
445 | 444 | } | |
446 | 445 | } | |
447 | 446 | else { | |
448 | 447 | let newDisputeDataString = if ((votesCounter == "0")) | |
449 | 448 | then { | |
450 | 449 | let newVotesCounter = "1" | |
451 | 450 | let newVoters = newVoter | |
452 | 451 | let newVotes = newVote | |
453 | 452 | let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
454 | 453 | newDataString | |
455 | 454 | } | |
456 | 455 | else if ((votesCounter == "1")) | |
457 | 456 | then { | |
458 | 457 | let voter1 = disputeDataList[1] | |
459 | 458 | let vote1 = disputeDataList[2] | |
460 | 459 | let alreadyVoted = (newVoter == voter1) | |
461 | 460 | if (alreadyVoted) | |
462 | 461 | then throw("You already voted") | |
463 | 462 | else { | |
464 | 463 | let newVotesCounter = "1" | |
465 | 464 | let newVoters = (voter1 + newVoter) | |
466 | 465 | let newVotes = (vote1 + newVote) | |
467 | 466 | let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
468 | 467 | newDataString | |
469 | 468 | } | |
470 | 469 | } | |
471 | 470 | else if ((votesCounter == "2")) | |
472 | 471 | then { | |
473 | 472 | let votersList = split(disputeDataList[1], "_") | |
474 | 473 | let votesList = split(disputeDataList[2], "_") | |
475 | 474 | let alreadyVoted = if ((newVoter == votersList[0])) | |
476 | 475 | then true | |
477 | 476 | else (newVoter == votersList[1]) | |
478 | 477 | if (alreadyVoted) | |
479 | 478 | then throw("You already voted") | |
480 | 479 | else { | |
481 | 480 | let newVotesCounter = "3" | |
482 | 481 | let newVoters = ((disputeDataList[1] + "_") + newVoter) | |
483 | 482 | let newVotes = ((disputeDataList[2] + "_") + newVote) | |
484 | 483 | let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
485 | 484 | newDataString | |
486 | 485 | } | |
487 | 486 | } | |
488 | 487 | else if ((votesCounter == "3")) | |
489 | 488 | then { | |
490 | 489 | let votersList = split(disputeDataList[1], "_") | |
491 | 490 | let votesList = split(disputeDataList[2], "_") | |
492 | 491 | let alreadyVoted = if (if ((newVoter == votersList[0])) | |
493 | 492 | then true | |
494 | 493 | else (newVoter == votersList[1])) | |
495 | 494 | then true | |
496 | 495 | else (newVoter == votersList[2]) | |
497 | 496 | if (alreadyVoted) | |
498 | 497 | then throw("You already voted") | |
499 | 498 | else { | |
500 | 499 | let newVotesCounter = "4" | |
501 | 500 | let newVoters = ((disputeDataList[1] + "_") + newVoter) | |
502 | 501 | let newVotes = ((disputeDataList[2] + "_") + newVote) | |
503 | 502 | let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
504 | 503 | newDataString | |
505 | 504 | } | |
506 | 505 | } | |
507 | 506 | else throw("Dispute has been already resolved") | |
508 | 507 | WriteSet([DataEntry(((auctionId + "_") + stateDispute), newDisputeDataString)]) | |
509 | 508 | } | |
510 | 509 | } | |
511 | 510 | ||
512 | 511 | ||
513 | 512 | ||
514 | 513 | @Callable(i) | |
515 | 514 | func workHandOver (auctionId) = { | |
516 | 515 | let callerPub = extract(i.callerPublicKey) | |
517 | 516 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
518 | 517 | let auctionDataList = getDataList(AuctionIdKey) | |
519 | 518 | let auctionState = auctionDataList[0] | |
520 | 519 | let auctionInfo = auctionDataList[1] | |
521 | 520 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
522 | 521 | let auctionStart = parseIntValue(auctionDataList[3]) | |
523 | 522 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
524 | 523 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
525 | 524 | let auctionAssetName = auctionDataList[6] | |
526 | 525 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
527 | 526 | let auctionFreelancer = fromBase58String(auctionDataList[8]) | |
528 | 527 | let currentTime = height | |
529 | 528 | let freelancerPubCheck = if ((callerPub == auctionFreelancer)) | |
530 | 529 | then callerPub | |
531 | 530 | else throw("Only a freelancer can indicate that the work is done") | |
532 | 531 | let timeIsOver = ((currentTime - auctionStart) > auctionBlocksForExecution) | |
533 | 532 | if ((auctionState == stateInProgress)) | |
534 | 533 | then if (timeIsOver) | |
535 | 534 | then { | |
536 | 535 | let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6]) | |
537 | 536 | WriteSet([DataEntry(AuctionIdKey, ((((stateDispute + "_") + auctionInfo) + "_") + newDataString))]) | |
538 | 537 | } | |
539 | 538 | else { | |
540 | 539 | let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6]) | |
541 | 540 | WriteSet([DataEntry(AuctionIdKey, ((((stateWait4Confirm + "_") + auctionInfo) + "_") + newDataString))]) | |
542 | 541 | } | |
543 | 542 | else throw("Auction state is incorrect") | |
544 | 543 | } | |
545 | 544 | ||
546 | 545 | ||
547 | 546 | ||
548 | 547 | @Callable(i) | |
549 | 548 | func acceptWork (auctionId) = { | |
550 | 549 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
551 | 550 | let auctionDataList = getDataList(AuctionIdKey) | |
552 | 551 | let auctionState = auctionDataList[0] | |
553 | 552 | let auctionInfo = auctionDataList[1] | |
554 | 553 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
555 | 554 | let auctionStart = parseIntValue(auctionDataList[3]) | |
556 | 555 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
557 | 556 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
558 | 557 | let auctionAssetName = auctionDataList[6] | |
559 | 558 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
560 | 559 | let auctionFreelancer = auctionDataList[2] | |
561 | 560 | let caller = extract(i.callerPublicKey) | |
562 | 561 | let dAppCommission = ((auctionPrice * 3) / 100) | |
563 | 562 | let amountWithoutComm = (auctionPrice - dAppCommission) | |
564 | 563 | let newRating = { | |
565 | 564 | let valueRating = getInteger(this, (auctionFreelancer + "_Rating")) | |
566 | 565 | let currentRating = match valueRating { | |
567 | 566 | case a: Int => | |
568 | 567 | a | |
569 | 568 | case _ => | |
570 | 569 | 0 | |
571 | 570 | } | |
572 | 571 | (currentRating + 1) | |
573 | 572 | } | |
574 | 573 | if ((caller == auctionCustomer)) | |
575 | 574 | then if ((auctionState == stateWait4Confirm)) | |
576 | 575 | then { | |
577 | 576 | let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6]) | |
578 | 577 | ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((stateComplete + "_") + auctionInfo) + "_") + newDataString)), DataEntry((auctionFreelancer + "_Rating"), newRating)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionFreelancer)), amountWithoutComm, AssetNameToBase58(auctionAssetName))])) | |
579 | 578 | } | |
580 | 579 | else throw(("Incorrect state. Must be: " + stateWait4Confirm)) | |
581 | 580 | else throw("Only auction customer can use this function") | |
582 | 581 | } | |
583 | 582 | ||
584 | 583 | ||
585 | 584 | @Verifier(tx) | |
586 | 585 | func verify () = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) | |
587 | 586 | then match tx { | |
588 | 587 | case ttx: TransferTransaction => | |
589 | 588 | true | |
590 | 589 | case stx: SetScriptTransaction => | |
591 | 590 | true | |
592 | 591 | case _ => | |
593 | 592 | false | |
594 | 593 | } | |
595 | 594 | else false | |
596 | 595 |
github/deemru/w8io/169f3d6 85.93 ms ◑