tx · 2etu4g427PpWoqPqUZCjHGFKVkGbFHTAhEtm2boZva9k 3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK: -0.01400000 Waves 2019.09.26 22:47 [693782] smart account 3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK > SELF 0.00000000 Waves
{ "type": 13, "id": "2etu4g427PpWoqPqUZCjHGFKVkGbFHTAhEtm2boZva9k", "fee": 1400000, "feeAssetId": null, "timestamp": 1569527281048, "version": 1, "sender": "3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK", "senderPublicKey": "7A8H5cWfJVSpSrnB71CzWqyNm8KMxZPjwFcj1mDUU8an", "proofs": [ "4ANpibDpGEeQMfBzj1QJKN8bXRntnUNPDs54yH1ccEca73NgUNrSqJE8LgD6TE9jSjXebuVscJhyXsKEhpyifq3K" ], "script": "base64:AAIDAAAAAAAAAAAAAABLAAAAABZvcmFjbGVXaGl0ZUxpc3RBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFURgbF8Y7OPgkLtFiSdXpmu5LRzu6Rj638AAAAABR0aGlzQWRkcmVzc1B1YmxpY0tleQEAAAAgW3yTxZOTTiNmvooSpXcphBB5DlU9aluLSa1r39oafQsAAAAAC0RBUFBBRERSRVNTAgAAACMzTjJGam5DcTRnY3Bld3NZUVZUNHNjejlNalRnRDZhNGtRSwAAAAAFQURNSU4CAAAAIzNOQ0tvRlF4UmY3enNETmJpdkxGdzFvSjd5OHFKekxtRXM0AAAAAARXVVNEAQAAACDdHL0B8M91BTB4B7KotjiY0UXdXB+6M1rjQG/6Zllw/QAAAAAEV0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABFdCVEMBAAAAIGz6av/F7aqMC3+1KpPSogwvgoLbdHoEjFP7/RMfc6D/AAAAAAVLT0xJTgEAAAAg2pnGDzCaCArIN9AsIhvcgYMfZowVYuDqNDNtJmjyiQ0AAAAABFdFVEgBAAAAIC4gw/bqip+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RFUkFUT1IFAAAAC1dISVRFTElTVEVEBQAAAANuaWwAAAABaQEAAAANcmVwb3J0UHJvamVjdAAAAAIAAAAEaXRlbQAAAARkYXRhBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAABdnZXRLZXlJdGVtQWNjUmVwb3J0RGF0YQAAAAIFAAAABGl0ZW0FAAAAB2FjY291bnQFAAAABGRhdGEFAAAAA25pbAAAAABxOBBP", "chainId": 84, "height": 693782, "spentComplexity": 0 } View: original | compacted Prev: 3P3b8PWFpYXTpkuYBGALwZA3jhbmCxGbARjsL83u5j1B Next: 3FWpe9nGWSwVn9RJm9yqQ3QaC161s4X4zkWzbnnHJ7aP Diff:
Old | New | Differences | |
---|---|---|---|
278 | 278 | func escrow (item,translator,futureBlocks) = { | |
279 | 279 | let user = toBase58String(i.caller.bytes) | |
280 | 280 | let pmt = extract(i.payment) | |
281 | - | let document = item | |
282 | 281 | let deadlineblock = (lastBlock.height + futureBlocks) | |
283 | - | let price = getValueItemPriceAssetID( | |
282 | + | let price = getValueItemPriceAssetID(item) | |
284 | 283 | let registeredAssetID = getValueItemAssetID(item) | |
285 | 284 | let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, translator) | |
286 | 285 | let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, user) | |
300 | 299 | then (translatorStatus != MODERATOR) | |
301 | 300 | else false) | |
302 | 301 | then throw(("Your account is not registered. status: " + userStatus)) | |
303 | - | else if (( | |
302 | + | else if ((getKeyItemDocument(item) != item)) | |
304 | 303 | then throw(("translation work not found for " + item)) | |
305 | 304 | else if ((getValueItemDeadline(item) >= lastBlock.height)) | |
306 | 305 | then throw("deadline for this work has been already achieved") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let oracleWhiteListAddress = Address(base58'3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w') | |
5 | 5 | ||
6 | 6 | let thisAddressPublicKey = base58'7A8H5cWfJVSpSrnB71CzWqyNm8KMxZPjwFcj1mDUU8an' | |
7 | 7 | ||
8 | 8 | let DAPPADDRESS = "3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK" | |
9 | 9 | ||
10 | 10 | let ADMIN = "3NCKoFQxRf7zsDNbivLFw1oJ7y8qJzLmEs4" | |
11 | 11 | ||
12 | 12 | let WUSD = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck' | |
13 | 13 | ||
14 | 14 | let WEUR = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU' | |
15 | 15 | ||
16 | 16 | let WBTC = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS' | |
17 | 17 | ||
18 | 18 | let KOLIN = base58'FiKspxSpkpzT4pMUA9ccZkbJmVXTdu4JhFDXNNXr5noW' | |
19 | 19 | ||
20 | 20 | let WETH = base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu' | |
21 | 21 | ||
22 | 22 | let WLTC = base58'HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk' | |
23 | 23 | ||
24 | 24 | let LISTINGFEE = (1 * 1000000) | |
25 | 25 | ||
26 | 26 | let NONE = "none" | |
27 | 27 | ||
28 | 28 | func getNumberByKey (key) = { | |
29 | 29 | let num = match getInteger(this, key) { | |
30 | 30 | case a: Int => | |
31 | 31 | a | |
32 | 32 | case _ => | |
33 | 33 | 0 | |
34 | 34 | } | |
35 | 35 | num | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func getStrByKey (key) = { | |
40 | 40 | let str = match getString(this, key) { | |
41 | 41 | case a: String => | |
42 | 42 | a | |
43 | 43 | case _ => | |
44 | 44 | NONE | |
45 | 45 | } | |
46 | 46 | str | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | let WHITELISTED = "WHITELISTED" | |
51 | 51 | ||
52 | 52 | let BLACKLISTED = "BLACKLISTED" | |
53 | 53 | ||
54 | 54 | let INVITED = "INVITED" | |
55 | 55 | ||
56 | 56 | let SPENDINVITE = "SPEND_INVITE" | |
57 | 57 | ||
58 | 58 | let MODERATOR = "MODERATOR" | |
59 | 59 | ||
60 | 60 | let QUORUM = 5 | |
61 | 61 | ||
62 | 62 | func getKeyItem (user,item) = ("item_" + toBase58String(sha256(toBytes((user + item))))) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func getValueItem (user,item) = toBase58String(sha256(toBytes((user + item)))) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func getKeyItemDocument (document) = ("item_" + document) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func getValueItemDocument (document) = getStrByKey(getKeyItemDocument(document)) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func getKeyWhitelistRef (account) = ("wl_ref_" + account) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func getValueWhitelistRef (account) = getStrByKey(getKeyWhitelistRef(account)) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getKeyWhitelistStatus (account) = ("wl_sts_" + account) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getKeyBalance (account) = ("balance_" + account) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getKeyWhitelistBio (account) = ("wl_bio_" + account) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func getKeyWhitelistBlock (account) = ("wl_blk_" + account) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func getKeyItemAccReportData (item,account) = ((("report_" + item) + "_") + account) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func getValueBalance (account) = getNumberByKey(getKeyBalance(account)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func getValueWhitelistStatus (account) = getStrByKey(getKeyWhitelistStatus(account)) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getKeyItemAuthor (item) = ("author_" + item) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getValueItemAuthor (item) = getStrByKey(getKeyItemAuthor(item)) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func getKeyItemDeadline (item) = ("deadlineblock_" + item) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func getValueItemDeadline (item) = getNumberByKey(getKeyItemDeadline(item)) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func getKeyItemBlock (item) = ("block_" + item) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func getValueItemBlock (item) = getNumberByKey(getKeyItemBlock(item)) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func getKeyItemTypeOfWork (item) = ("typeofwork_" + item) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func getValueItemTypeOfWork (item) = getNumberByKey(getKeyItemTypeOfWork(item)) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getKeyItemWordCount (item) = ("wordcount_" + item) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func getValueItemWordCount (item) = getNumberByKey(getKeyItemWordCount(item)) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func getKeyItemPriceUSD (item) = ("priceUSD_" + item) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func getValueItemPriceUSD (item) = getNumberByKey(getKeyItemPriceUSD(item)) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func getKeyItemAssetID (item) = ("pmtassetID_" + item) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func getValueItemAssetID (item) = getStrByKey(getKeyItemAssetID(item)) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func getKeyItemPriceAssetID (item) = ("priceassetID_" + item) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func getValueItemPriceAssetID (item) = getNumberByKey(getKeyItemPriceAssetID(item)) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func getKeyItemData (item) = ("datajson_" + item) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func getValueItemData (item) = getStrByKey(getKeyItemData(item)) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func getKeyItemStatus (item) = ("status_" + item) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func getValueItemStatus (item) = getStrByKey(getKeyItemStatus(item)) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func getKeyItemTranslator (item) = ("translator_" + item) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func getValueItemTranslator (item) = getStrByKey(getKeyItemTranslator(item)) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func getKeyItemDueFor (item) = ("due_for_" + item) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func getValueItemDueFor (item) = getNumberByKey(getKeyItemDueFor(item)) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func getKeyItemDisputeInitiatedBy (item) = ("disputedby_" + item) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func getValueItemDisputeInitiatedBy (item) = getStrByKey(getKeyItemDisputeInitiatedBy(item)) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func getKeyItemDisputeClosedBy (item) = ("disputeclosedby_" + item) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func getValueItemDisputeClosedBy (item) = getStrByKey(getKeyItemDisputeClosedBy(item)) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func getKeyItemDisputeClosedWinner (item) = "dispute_winner_" | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func getKeyValueDisputeClosedWinner (item) = getStrByKey(getKeyItemDisputeClosedWinner(item)) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func getKeyItemLastUpdate (item) = ("last_update_" + item) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func getValueItemLastUpdate (item) = getNumberByKey(getKeyItemLastUpdate(item)) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func getKeyItemDisputeVotesTranslator (item) = ("cnt_translator_" + item) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func getValueItemDisputeVotesTranslator (item) = getNumberByKey(getKeyItemDisputeVotesTranslator(item)) | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func getKeyItemDisputeVotesUser (item) = ("cnt_user_" + item) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func getValueItemDisputeVotesUser (item) = getNumberByKey(getKeyItemDisputeVotesUser(item)) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func getKeyItemBalance (item) = ("balance_" + item) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func getValueItemBalance (item) = getNumberByKey(getKeyItemBalance(item)) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func getKeyItemBalanceAssetID (item) = ("balance_assetID" + item) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func getValueItemBalanceAssetID (item) = getNumberByKey(getKeyItemBalanceAssetID(item)) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func getExtKeyItemWhiteListStatus (account) = ("verifier_status_" + account) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func getExtValueItemWhiteListStatus (oracle,account) = { | |
225 | 225 | let str = match getString(oracle, getExtKeyItemWhiteListStatus(account)) { | |
226 | 226 | case a: String => | |
227 | 227 | a | |
228 | 228 | case _ => | |
229 | 229 | NONE | |
230 | 230 | } | |
231 | 231 | str | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | @Callable(i) | |
236 | 236 | func submitTranslation (document,data,assetID,futureBlocks,wordCount,typeOfWork,priceAssetID) = { | |
237 | 237 | let user = toBase58String(i.caller.bytes) | |
238 | 238 | let item = getKeyItem(user, document) | |
239 | 239 | let pmt = extract(i.payment) | |
240 | 240 | let deadlineblock = (lastBlock.height + futureBlocks) | |
241 | 241 | let currstatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, user) | |
242 | 242 | if (if (if (if ((currstatus != WHITELISTED)) | |
243 | 243 | then (currstatus != ADMIN) | |
244 | 244 | else false) | |
245 | 245 | then (currstatus != MODERATOR) | |
246 | 246 | else false) | |
247 | 247 | then (user != DAPPADDRESS) | |
248 | 248 | else false) | |
249 | 249 | then throw(("Your account is not registered. status: " + currstatus)) | |
250 | 250 | else if (if (if (if (if (if (if ((isDefined(pmt.assetId) != false)) | |
251 | 251 | then (pmt.assetId != WETH) | |
252 | 252 | else false) | |
253 | 253 | then (pmt.assetId != WLTC) | |
254 | 254 | else false) | |
255 | 255 | then (pmt.assetId != WEUR) | |
256 | 256 | else false) | |
257 | 257 | then (pmt.assetId != WUSD) | |
258 | 258 | else false) | |
259 | 259 | then (pmt.assetId != WBTC) | |
260 | 260 | else false) | |
261 | 261 | then (pmt.assetId != KOLIN) | |
262 | 262 | else false) | |
263 | 263 | then throw("can only use WAVES, USD, EUR, BTC, ETH, LTC and KOLIN as payment methods") | |
264 | 264 | else if ((pmt.amount != LISTINGFEE)) | |
265 | 265 | then throw(((("Please pay exact amount for the listing: " + toString(LISTINGFEE)) + ", actual payment is: ") + toString(pmt.amount))) | |
266 | 266 | else if ((getValueItemAuthor(item) != NONE)) | |
267 | 267 | then throw("Item already exist") | |
268 | 268 | else if ((1440 > futureBlocks)) | |
269 | 269 | then throw("please allow at least 24 h (~1440 blocks) for the translation work to be published properly") | |
270 | 270 | else if ((futureBlocks > 44640)) | |
271 | 271 | then throw("a translation work can not be posted for longer than 31 days (~44640 blocks) ") | |
272 | 272 | else WriteSet([DataEntry(item, getValueItem(user, document)), DataEntry(getKeyItemAuthor(item), user), DataEntry(getKeyItemBlock(item), height), DataEntry(getKeyItemLastUpdate(item), height), DataEntry(getKeyItemDeadline(item), deadlineblock), DataEntry(getKeyItemTypeOfWork(item), typeOfWork), DataEntry(getKeyItemWordCount(item), wordCount), DataEntry(getKeyItemPriceUSD(item), (typeOfWork * wordCount)), DataEntry(getKeyItemAssetID(item), assetID), DataEntry(getKeyItemPriceAssetID(item), priceAssetID), DataEntry(getKeyItemStatus(item), "new post"), DataEntry(getKeyItemData(item), data)]) | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | ||
277 | 277 | @Callable(i) | |
278 | 278 | func escrow (item,translator,futureBlocks) = { | |
279 | 279 | let user = toBase58String(i.caller.bytes) | |
280 | 280 | let pmt = extract(i.payment) | |
281 | - | let document = item | |
282 | 281 | let deadlineblock = (lastBlock.height + futureBlocks) | |
283 | - | let price = getValueItemPriceAssetID( | |
282 | + | let price = getValueItemPriceAssetID(item) | |
284 | 283 | let registeredAssetID = getValueItemAssetID(item) | |
285 | 284 | let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, translator) | |
286 | 285 | let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, user) | |
287 | 286 | if (if (if (if ((userStatus != WHITELISTED)) | |
288 | 287 | then (user != DAPPADDRESS) | |
289 | 288 | else false) | |
290 | 289 | then (userStatus != ADMIN) | |
291 | 290 | else false) | |
292 | 291 | then (userStatus != MODERATOR) | |
293 | 292 | else false) | |
294 | 293 | then throw(("Your account is not registered. status: " + userStatus)) | |
295 | 294 | else if (if (if (if ((translatorStatus != WHITELISTED)) | |
296 | 295 | then (translator != DAPPADDRESS) | |
297 | 296 | else false) | |
298 | 297 | then (translatorStatus != ADMIN) | |
299 | 298 | else false) | |
300 | 299 | then (translatorStatus != MODERATOR) | |
301 | 300 | else false) | |
302 | 301 | then throw(("Your account is not registered. status: " + userStatus)) | |
303 | - | else if (( | |
302 | + | else if ((getKeyItemDocument(item) != item)) | |
304 | 303 | then throw(("translation work not found for " + item)) | |
305 | 304 | else if ((getValueItemDeadline(item) >= lastBlock.height)) | |
306 | 305 | then throw("deadline for this work has been already achieved") | |
307 | 306 | else if ((price > pmt.amount)) | |
308 | 307 | then throw(("price lower than posted for this translation work, please pay: " + toString(price))) | |
309 | 308 | else if ((pmt.amount > price)) | |
310 | 309 | then throw((("money payed is higher than this translation work, please pay: " + toString(price)) + " there is no need to overspend")) | |
311 | 310 | else if ((user != getValueItemAuthor(item))) | |
312 | 311 | then throw("User is different than translation's post creator") | |
313 | 312 | else if ((userStatus == BLACKLISTED)) | |
314 | 313 | then throw("user's account has been blacklisted") | |
315 | 314 | else if ((translatorStatus == BLACKLISTED)) | |
316 | 315 | then throw("translator's account has been blacklisted") | |
317 | 316 | else if ((1440 > futureBlocks)) | |
318 | 317 | then throw("please allow at least 24 h (~1440 blocks) for the translation work to be published properly") | |
319 | 318 | else if ((futureBlocks > 44640)) | |
320 | 319 | then throw("a translation work can not be posted for longer than 31 days (~44640 blocks) ") | |
321 | 320 | else if ((getValueItemStatus(item) != "new post")) | |
322 | 321 | then throw("escrow for this work already present") | |
323 | 322 | else ScriptResult(WriteSet([DataEntry(getKeyItemStatus(item), "work allocated to translator"), DataEntry(getKeyItemTranslator(item), translator), DataEntry(getKeyItemDueFor(item), deadlineblock), DataEntry(getKeyItemLastUpdate(item), height), DataEntry(getKeyItemBalance(item), pmt.amount), DataEntry(getKeyItemBalanceAssetID(item), registeredAssetID)]), TransferSet(nil)) | |
324 | 323 | } | |
325 | 324 | ||
326 | 325 | ||
327 | 326 | ||
328 | 327 | @Callable(i) | |
329 | 328 | func disputeEscrow (item) = { | |
330 | 329 | let caller = toBase58String(i.caller.bytes) | |
331 | 330 | let amount = getValueItemPriceAssetID(item) | |
332 | 331 | let assetID = getValueItemAssetID(item) | |
333 | 332 | let blockUnlocked = getValueItemDueFor(item) | |
334 | 333 | let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemTranslator(item)) | |
335 | 334 | let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemAuthor(item)) | |
336 | 335 | let currstatus = getValueWhitelistStatus(caller) | |
337 | 336 | if (if (if ((currstatus != WHITELISTED)) | |
338 | 337 | then (caller != DAPPADDRESS) | |
339 | 338 | else false) | |
340 | 339 | then (currstatus != ADMIN) | |
341 | 340 | else false) | |
342 | 341 | then throw(("Your account is not registered. status: " + currstatus)) | |
343 | 342 | else if (if (if ((caller != getValueItemTranslator(item))) | |
344 | 343 | then true | |
345 | 344 | else (caller != getValueItemAuthor(item))) | |
346 | 345 | then true | |
347 | 346 | else (caller != ADMIN)) | |
348 | 347 | then throw("just work creator, translator or an admin can initiate a dispute") | |
349 | 348 | else if ((getKeyItemStatus(item) == "dispute in progress")) | |
350 | 349 | then throw("This work is currently under dispute") | |
351 | 350 | else if ((userStatus == BLACKLISTED)) | |
352 | 351 | then throw("user's account has been blacklisted") | |
353 | 352 | else if ((translatorStatus == BLACKLISTED)) | |
354 | 353 | then throw("translator's account has been blacklisted") | |
355 | 354 | else ScriptResult(WriteSet([DataEntry(getKeyItemStatus(item), "dispute in progress"), DataEntry(getKeyItemDisputeInitiatedBy(item), caller), DataEntry(getKeyItemDueFor(item), (lastBlock.height + 1440)), DataEntry(getKeyItemLastUpdate(item), height), DataEntry(getKeyItemDisputeClosedBy(item), NONE), DataEntry(getKeyItemDisputeClosedWinner(item), NONE)]), TransferSet(nil)) | |
356 | 355 | } | |
357 | 356 | ||
358 | 357 | ||
359 | 358 | ||
360 | 359 | @Callable(i) | |
361 | 360 | func disputeCloseEscrow (item) = { | |
362 | 361 | let caller = toBase58String(i.caller.bytes) | |
363 | 362 | let amount = getValueItemPriceAssetID(item) | |
364 | 363 | let assetID = getValueItemAssetID(item) | |
365 | 364 | let blockUnlocked = getValueItemDueFor(item) | |
366 | 365 | let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemTranslator(item)) | |
367 | 366 | let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemAuthor(item)) | |
368 | 367 | let currstatus = getValueWhitelistStatus(caller) | |
369 | 368 | if (if (if ((currstatus != WHITELISTED)) | |
370 | 369 | then (caller != DAPPADDRESS) | |
371 | 370 | else false) | |
372 | 371 | then (currstatus != ADMIN) | |
373 | 372 | else false) | |
374 | 373 | then throw(("Your account is not registered. status: " + currstatus)) | |
375 | 374 | else if ((currstatus != ADMIN)) | |
376 | 375 | then throw("just admins can close a dispute") | |
377 | 376 | else if ((getKeyItemStatus(item) != "dispute in progress")) | |
378 | 377 | then throw("This work is not under dispute") | |
379 | 378 | else if ((userStatus == BLACKLISTED)) | |
380 | 379 | then throw("user's account has been blacklisted") | |
381 | 380 | else if ((translatorStatus == BLACKLISTED)) | |
382 | 381 | then throw("translator's account has been blacklisted") | |
383 | 382 | else if (if ((QUORUM > getValueItemDisputeVotesTranslator(item))) | |
384 | 383 | then (QUORUM > getValueItemDisputeVotesUser(item)) | |
385 | 384 | else false) | |
386 | 385 | then throw("Votes are not enough to favour any involved part") | |
387 | 386 | else if ((getValueItemDisputeVotesTranslator(item) >= QUORUM)) | |
388 | 387 | then ScriptResult(WriteSet([DataEntry(getKeyItemStatus(item), "dispute closed"), DataEntry(getKeyItemDisputeClosedBy(item), caller), DataEntry(getKeyItemDisputeClosedWinner(item), getValueItemTranslator(item)), DataEntry(getKeyItemLastUpdate(item), height)]), TransferSet([ScriptTransfer(addressFromStringValue(getValueItemTranslator(item)), amount, fromBase58String(assetID))])) | |
389 | 388 | else if ((getValueItemDisputeVotesUser(item) >= QUORUM)) | |
390 | 389 | then ScriptResult(WriteSet([DataEntry(getKeyItemStatus(item), "dispute closed"), DataEntry(getKeyItemDisputeClosedBy(item), caller), DataEntry(getKeyItemDisputeClosedWinner(item), getValueItemAuthor(item)), DataEntry(getKeyItemLastUpdate(item), height)]), TransferSet([ScriptTransfer(addressFromStringValue(getValueItemAuthor(item)), amount, fromBase58String(assetID))])) | |
391 | 390 | else ScriptResult(WriteSet([DataEntry(getKeyItemStatus(item), "dispute still under review"), DataEntry(getKeyItemDisputeClosedBy(item), NONE), DataEntry(getKeyItemDisputeClosedWinner(item), NONE), DataEntry(getKeyItemLastUpdate(item), height), DataEntry(getKeyItemDueFor(item), (lastBlock.height + 1440))]), TransferSet(nil)) | |
392 | 391 | } | |
393 | 392 | ||
394 | 393 | ||
395 | 394 | ||
396 | 395 | @Callable(i) | |
397 | 396 | func voteDisputeEscrow (item,vote) = { | |
398 | 397 | let caller = toBase58String(i.caller.bytes) | |
399 | 398 | if ((getValueItemStatus(item) == "dispute closed")) | |
400 | 399 | then throw("this dispute is closed") | |
401 | 400 | else if (if ((getValueWhitelistStatus(caller) != MODERATOR)) | |
402 | 401 | then true | |
403 | 402 | else (getValueWhitelistStatus(caller) != ADMIN)) | |
404 | 403 | then throw("you either need to be an ADMIN or a MODERATOR to vote in disputes") | |
405 | 404 | else if (if ((getValueItemStatus(item) != "dispute in progress")) | |
406 | 405 | then true | |
407 | 406 | else (getValueItemStatus(item) != "dispute still under review")) | |
408 | 407 | then throw("translation work not under dispute") | |
409 | 408 | else if ((getValueItemDisputeVotesTranslator(item) >= QUORUM)) | |
410 | 409 | then throw("Votes are enough to favour the Translator") | |
411 | 410 | else if ((getValueItemDisputeVotesUser(item) >= QUORUM)) | |
412 | 411 | then throw("Votes are enough to favour the User") | |
413 | 412 | else if ((vote == getValueItemAuthor(item))) | |
414 | 413 | then WriteSet([DataEntry(getKeyItemDisputeVotesUser(item), (getValueItemDisputeVotesUser(item) + 1))]) | |
415 | 414 | else if ((vote == getValueItemTranslator(item))) | |
416 | 415 | then WriteSet([DataEntry(getKeyItemDisputeVotesTranslator(item), (getValueItemDisputeVotesTranslator(item) + 1))]) | |
417 | 416 | else throw("vote not submitted") | |
418 | 417 | } | |
419 | 418 | ||
420 | 419 | ||
421 | 420 | ||
422 | 421 | @Callable(i) | |
423 | 422 | func withdrawEscrow (address,item) = { | |
424 | 423 | let caller = toBase58String(i.caller.bytes) | |
425 | 424 | let assetID = getValueItemAssetID(item) | |
426 | 425 | let amount = getValueItemPriceAssetID(item) | |
427 | 426 | let currstatus = getValueWhitelistStatus(caller) | |
428 | 427 | let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemTranslator(item)) | |
429 | 428 | let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemAuthor(item)) | |
430 | 429 | if (if (if ((currstatus != WHITELISTED)) | |
431 | 430 | then (caller != DAPPADDRESS) | |
432 | 431 | else false) | |
433 | 432 | then (currstatus != ADMIN) | |
434 | 433 | else false) | |
435 | 434 | then throw(("Your account is not registered. status: " + currstatus)) | |
436 | 435 | else if ((getValueItemDueFor(item) > lastBlock.height)) | |
437 | 436 | then throw("Deadline has not finished yet") | |
438 | 437 | else if ((getKeyItemStatus(item) == "dispute in progress")) | |
439 | 438 | then throw("This work is currently under dispute") | |
440 | 439 | else if (if ((caller != getValueItemTranslator(item))) | |
441 | 440 | then true | |
442 | 441 | else (caller != getValueItemAuthor(item))) | |
443 | 442 | then throw("just work creator or translator can withdraw funds. Admins must initiate a dispute") | |
444 | 443 | else if (if ((caller == getValueItemAuthor(item))) | |
445 | 444 | then (userStatus == BLACKLISTED) | |
446 | 445 | else false) | |
447 | 446 | then throw("user's account has been blacklisted") | |
448 | 447 | else if (if ((caller == getValueItemTranslator(item))) | |
449 | 448 | then (translatorStatus == BLACKLISTED) | |
450 | 449 | else false) | |
451 | 450 | then throw("translator's account has been blacklisted") | |
452 | 451 | else ScriptResult(WriteSet([DataEntry(getKeyItemBalance(item), 0), DataEntry(getKeyItemStatus(item), ("money withdrawn by " + caller)), DataEntry(getKeyItemLastUpdate(item), height)]), TransferSet([ScriptTransfer(addressFromStringValue(caller), amount, fromBase58String(assetID))])) | |
453 | 452 | } | |
454 | 453 | ||
455 | 454 | ||
456 | 455 | ||
457 | 456 | @Callable(i) | |
458 | 457 | func inviteuser (newaccount,data) = { | |
459 | 458 | let caller = toBase58String(i.caller.bytes) | |
460 | 459 | let newstatus = getValueWhitelistStatus(newaccount) | |
461 | 460 | let currstatus = getValueWhitelistStatus(caller) | |
462 | 461 | if (if (if ((newstatus == WHITELISTED)) | |
463 | 462 | then true | |
464 | 463 | else (newstatus == MODERATOR)) | |
465 | 464 | then true | |
466 | 465 | else (newstatus == ADMIN)) | |
467 | 466 | then throw("User has already been registered") | |
468 | 467 | else if ((newstatus == BLACKLISTED)) | |
469 | 468 | then throw("The user you want to invite is already Blacklisted") | |
470 | 469 | else if (if (if ((currstatus != WHITELISTED)) | |
471 | 470 | then (caller != DAPPADDRESS) | |
472 | 471 | else false) | |
473 | 472 | then (currstatus != ADMIN) | |
474 | 473 | else false) | |
475 | 474 | then throw(("Your account should be whitelisted. status: " + currstatus)) | |
476 | 475 | else WriteSet([DataEntry(getKeyWhitelistRef(newaccount), caller), DataEntry(getKeyWhitelistBio(newaccount), data), DataEntry(getKeyWhitelistStatus(newaccount), INVITED)]) | |
477 | 476 | } | |
478 | 477 | ||
479 | 478 | ||
480 | 479 | ||
481 | 480 | @Callable(i) | |
482 | 481 | func userupdate (data,type) = { | |
483 | 482 | let account = toBase58String(i.caller.bytes) | |
484 | 483 | if (if (if ((type == MODERATOR)) | |
485 | 484 | then true | |
486 | 485 | else (type == ADMIN)) | |
487 | 486 | then (getValueWhitelistStatus(account) == WHITELISTED) | |
488 | 487 | else false) | |
489 | 488 | then throw("an ADMIN or MODERATOR account can be created by an ADMIN only") | |
490 | 489 | else if (if ((type == ADMIN)) | |
491 | 490 | then (getValueWhitelistStatus(account) != ADMIN) | |
492 | 491 | else false) | |
493 | 492 | then throw("an ADMIN account can be created by another ADMIN only") | |
494 | 493 | else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistStatus(account), if ((type == MODERATOR)) | |
495 | 494 | then MODERATOR | |
496 | 495 | else if ((type == ADMIN)) | |
497 | 496 | then ADMIN | |
498 | 497 | else WHITELISTED)]) | |
499 | 498 | } | |
500 | 499 | ||
501 | 500 | ||
502 | 501 | ||
503 | 502 | @Callable(i) | |
504 | 503 | func signupbylink (hash,data,type) = { | |
505 | 504 | let account = toBase58String(i.caller.bytes) | |
506 | 505 | let status = getValueWhitelistStatus(hash) | |
507 | 506 | if ((status != INVITED)) | |
508 | 507 | then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(hash)) + ", account:") + hash)) | |
509 | 508 | else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == MODERATOR)) | |
510 | 509 | then MODERATOR | |
511 | 510 | else WHITELISTED), DataEntry(getKeyWhitelistStatus(hash), SPENDINVITE), DataEntry(getKeyWhitelistRef(account), getValueWhitelistRef(hash))]) | |
512 | 511 | } | |
513 | 512 | ||
514 | 513 | ||
515 | 514 | ||
516 | 515 | @Callable(i) | |
517 | 516 | func signup (data,type) = { | |
518 | 517 | let account = toBase58String(i.caller.bytes) | |
519 | 518 | let status = getValueWhitelistStatus(account) | |
520 | 519 | if ((status == NONE)) | |
521 | 520 | then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(account)) + ", account:") + account)) | |
522 | 521 | else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == MODERATOR)) | |
523 | 522 | then MODERATOR | |
524 | 523 | else WHITELISTED)]) | |
525 | 524 | } | |
526 | 525 | ||
527 | 526 | ||
528 | 527 | ||
529 | 528 | @Callable(i) | |
530 | 529 | func reportProject (item,data) = { | |
531 | 530 | let account = toBase58String(i.caller.bytes) | |
532 | 531 | WriteSet([DataEntry(getKeyItemAccReportData(item, account), data)]) | |
533 | 532 | } | |
534 | 533 | ||
535 | 534 |
github/deemru/w8io/169f3d6 71.28 ms ◑