tx · 5regoLctqXUHpJCnfFhFNEMYvrvkNgRyv9eixXNtQai5

3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK:  -0.01400000 Waves

2019.09.25 21:27 [692214] smart account 3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK > SELF 0.00000000 Waves

{ "type": 13, "id": "5regoLctqXUHpJCnfFhFNEMYvrvkNgRyv9eixXNtQai5", "fee": 1400000, "feeAssetId": null, "timestamp": 1569436048458, "version": 1, "sender": "3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK", "senderPublicKey": "7A8H5cWfJVSpSrnB71CzWqyNm8KMxZPjwFcj1mDUU8an", "proofs": [ "5GpJuDECUaBg9U4Hh7qBZKbpFYXFsXQximTUXGfjXJid8dcnFdPWsdaq4aR6uuEMwd3mXs7hmd3t6uR68GxhP7AV" ], "script": "base64:AAIDAAAAAAAAAAAAAABKAAAAABZvcmFjbGVXaGl0ZUxpc3RBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFURgbF8Y7OPgkLtFiSdXpmu5LRzu6Rj638AAAAABR0aGlzQWRkcmVzc1B1YmxpY0tleQEAAAAgW3yTxZOTTiNmvooSpXcphBB5DlU9aluLSa1r39oafQsAAAAAC0RBUFBBRERSRVNTAgAAACMzTjJGam5DcTRnY3Bld3NZUVZUNHNjejlNalRnRDZhNGtRSwAAAAAFQURNSU4CAAAAIzNOQ0tvRlF4UmY3enNETmJpdkxGdzFvSjd5OHFKekxtRXM0AAAAAARXVVNEAQAAACDdHL0B8M91BTB4B7KotjiY0UXdXB+6M1rjQG/6Zllw/QAAAAAEV0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABFdCVEMBAAAAIGz6av/F7aqMC3+1KpPSogwvgoLbdHoEjFP7/RMfc6D/AAAAAAVLT0xJTgEAAAAg2pnGDzCaCArIN9AsIhvcgYMfZowVYuDqNDNtJmjyiQ0AAAAABFdFVEgBAAAAIC4gw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lbUFjY1JlcG9ydERhdGEAAAACBQAAAARpdGVtBQAAAAdhY2NvdW50BQAAAARkYXRhBQAAAANuaWwAAAAA9kimTA==", "chainId": 84, "height": 692214, "spentComplexity": 0 } View: original | compacted Prev: 3kb6xV9f9KoZu6QKaEGyM8tw9ZbDrdirj7SKXvdJ2xZf Next: 8NjqvAosbJBd8EHGXKxQ31REbFw36ohESid1AoaJDzVJ Diff:
OldNewDifferences
280280 let registeredAssetID = getValueItemAssetID(item)
281281 let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, translator)
282282 let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, user)
283- let currstatus = getValueWhitelistStatus(user)
284- if (if (if ((currstatus != WHITELISTED))
283+ if (if (if (if ((userStatus != WHITELISTED))
285284 then (user != DAPPADDRESS)
286285 else false)
287- then (currstatus != ADMIN)
286+ then (userStatus != ADMIN)
288287 else false)
289- then throw(("Your account is not registered. status: " + currstatus))
290- else if ((getValueItemDocument(item) != item))
291- then throw("translation work not found")
292- else if ((getValueItemDeadline(item) >= lastBlock.height))
293- then throw("deadline for this work has been already achieved")
294- else if ((price > pmt.amount))
295- then throw("price lower than posted for this translation work")
296- else if ((pmt.amount > price))
297- then throw("money payed is higher than this translation work, no need to overspend")
298- else if ((user != getValueItemAuthor(item)))
299- then throw("User is different than translation's post creator")
300- else if ((userStatus == BLACKLISTED))
301- then throw("user's account has been blacklisted")
302- else if ((translatorStatus == BLACKLISTED))
303- then throw("translator's account has been blacklisted")
304- else if ((1440 > futureBlocks))
305- then throw("please allow at least 24 h (~1440 blocks) for the translation work to be published properly")
306- else if ((futureBlocks > 44640))
307- then throw("a translation work can not be posted for longer than 31 days (~44640 blocks) ")
308- else if ((getValueItemStatus(item) != "new post"))
309- then throw("escrow for this work already present")
310- 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))
288+ then (userStatus != MODERATOR)
289+ else false)
290+ then throw(("Your account is not registered. status: " + userStatus))
291+ else if (if (if (if ((translatorStatus != WHITELISTED))
292+ then (translator != DAPPADDRESS)
293+ else false)
294+ then (translatorStatus != ADMIN)
295+ else false)
296+ then (translatorStatus != MODERATOR)
297+ else false)
298+ then throw(("Your account is not registered. status: " + userStatus))
299+ else if ((getValueItemDocument(item) != item))
300+ then throw("translation work not found")
301+ else if ((getValueItemDeadline(item) >= lastBlock.height))
302+ then throw("deadline for this work has been already achieved")
303+ else if ((price > pmt.amount))
304+ then throw("price lower than posted for this translation work")
305+ else if ((pmt.amount > price))
306+ then throw("money payed is higher than this translation work, no need to overspend")
307+ else if ((user != getValueItemAuthor(item)))
308+ then throw("User is different than translation's post creator")
309+ else if ((userStatus == BLACKLISTED))
310+ then throw("user's account has been blacklisted")
311+ else if ((translatorStatus == BLACKLISTED))
312+ then throw("translator's account has been blacklisted")
313+ else if ((1440 > futureBlocks))
314+ then throw("please allow at least 24 h (~1440 blocks) for the translation work to be published properly")
315+ else if ((futureBlocks > 44640))
316+ then throw("a translation work can not be posted for longer than 31 days (~44640 blocks) ")
317+ else if ((getValueItemStatus(item) != "new post"))
318+ then throw("escrow for this work already present")
319+ 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))
311320 }
312321
313322
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let oracleWhiteListAddress = Address(base58'3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w')
55
66 let thisAddressPublicKey = base58'7A8H5cWfJVSpSrnB71CzWqyNm8KMxZPjwFcj1mDUU8an'
77
88 let DAPPADDRESS = "3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK"
99
1010 let ADMIN = "3NCKoFQxRf7zsDNbivLFw1oJ7y8qJzLmEs4"
1111
1212 let WUSD = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck'
1313
1414 let WEUR = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU'
1515
1616 let WBTC = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS'
1717
1818 let KOLIN = base58'FiKspxSpkpzT4pMUA9ccZkbJmVXTdu4JhFDXNNXr5noW'
1919
2020 let WETH = base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu'
2121
2222 let WLTC = base58'HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk'
2323
2424 let LISTINGFEE = (1 * 1000000)
2525
2626 let NONE = "none"
2727
2828 func getNumberByKey (key) = {
2929 let num = match getInteger(this, key) {
3030 case a: Int =>
3131 a
3232 case _ =>
3333 0
3434 }
3535 num
3636 }
3737
3838
3939 func getStrByKey (key) = {
4040 let str = match getString(this, key) {
4141 case a: String =>
4242 a
4343 case _ =>
4444 NONE
4545 }
4646 str
4747 }
4848
4949
5050 let WHITELISTED = "WHITELISTED"
5151
5252 let BLACKLISTED = "BLACKLISTED"
5353
5454 let INVITED = "INVITED"
5555
5656 let SPENDINVITE = "SPEND_INVITE"
5757
5858 let MODERATOR = "MODERATOR"
5959
6060 let QUORUM = 5
6161
6262 func getKeyItem (user,item) = ("item_" + toBase58String(sha256(toBytes((user + item)))))
6363
6464
6565 func getKeyItemDocument (document) = ("document_" + document)
6666
6767
6868 func getValueItemDocument (item) = getStrByKey(getKeyItemDocument(item))
6969
7070
7171 func getKeyWhitelistRef (account) = ("wl_ref_" + account)
7272
7373
7474 func getValueWhitelistRef (account) = getStrByKey(getKeyWhitelistRef(account))
7575
7676
7777 func getKeyWhitelistStatus (account) = ("wl_sts_" + account)
7878
7979
8080 func getKeyBalance (account) = ("balance_" + account)
8181
8282
8383 func getKeyWhitelistBio (account) = ("wl_bio_" + account)
8484
8585
8686 func getKeyWhitelistBlock (account) = ("wl_blk_" + account)
8787
8888
8989 func getKeyItemAccReportData (item,account) = ((("report_" + item) + "_") + account)
9090
9191
9292 func getValueBalance (account) = getNumberByKey(getKeyBalance(account))
9393
9494
9595 func getValueWhitelistStatus (account) = getStrByKey(getKeyWhitelistStatus(account))
9696
9797
9898 func getKeyItemAuthor (item) = ("author_" + item)
9999
100100
101101 func getValueItemAuthor (item) = getStrByKey(getKeyItemAuthor(item))
102102
103103
104104 func getKeyItemDeadline (item) = ("deadlineblock_" + item)
105105
106106
107107 func getValueItemDeadline (item) = getNumberByKey(getKeyItemDeadline(item))
108108
109109
110110 func getKeyItemBlock (item) = ("block_" + item)
111111
112112
113113 func getValueItemBlock (item) = getNumberByKey(getKeyItemBlock(item))
114114
115115
116116 func getKeyItemTypeOfWork (item) = ("typeofwork_" + item)
117117
118118
119119 func getValueItemTypeOfWork (item) = getNumberByKey(getKeyItemTypeOfWork(item))
120120
121121
122122 func getKeyItemWordCount (item) = ("wordcount_" + item)
123123
124124
125125 func getValueItemWordCount (item) = getNumberByKey(getKeyItemWordCount(item))
126126
127127
128128 func getKeyItemPriceUSD (item) = ("priceUSD_" + item)
129129
130130
131131 func getValueItemPriceUSD (item) = getNumberByKey(getKeyItemPriceUSD(item))
132132
133133
134134 func getKeyItemAssetID (item) = ("pmtassetID_" + item)
135135
136136
137137 func getValueItemAssetID (item) = getStrByKey(getKeyItemAssetID(item))
138138
139139
140140 func getKeyItemPriceAssetID (item) = ("priceassetID_" + item)
141141
142142
143143 func getValueItemPriceAssetID (item) = getNumberByKey(getKeyItemPriceAssetID(item))
144144
145145
146146 func getKeyItemData (item) = ("datajson_" + item)
147147
148148
149149 func getValueItemData (item) = getStrByKey(getKeyItemData(item))
150150
151151
152152 func getKeyItemStatus (item) = ("status_" + item)
153153
154154
155155 func getValueItemStatus (item) = getStrByKey(getKeyItemStatus(item))
156156
157157
158158 func getKeyItemTranslator (item) = ("translator_" + item)
159159
160160
161161 func getValueItemTranslator (item) = getStrByKey(getKeyItemTranslator(item))
162162
163163
164164 func getKeyItemDueFor (item) = ("due_for_" + item)
165165
166166
167167 func getValueItemDueFor (item) = getNumberByKey(getKeyItemDueFor(item))
168168
169169
170170 func getKeyItemDisputeInitiatedBy (item) = ("disputedby_" + item)
171171
172172
173173 func getValueItemDisputeInitiatedBy (item) = getStrByKey(getKeyItemDisputeInitiatedBy(item))
174174
175175
176176 func getKeyItemDisputeClosedBy (item) = ("disputeclosedby_" + item)
177177
178178
179179 func getValueItemDisputeClosedBy (item) = getStrByKey(getKeyItemDisputeClosedBy(item))
180180
181181
182182 func getKeyItemDisputeClosedWinner (item) = "dispute_winner_"
183183
184184
185185 func getKeyValueDisputeClosedWinner (item) = getStrByKey(getKeyItemDisputeClosedWinner(item))
186186
187187
188188 func getKeyItemLastUpdate (item) = ("last_update_" + item)
189189
190190
191191 func getValueItemLastUpdate (item) = getNumberByKey(getKeyItemLastUpdate(item))
192192
193193
194194 func getKeyItemDisputeVotesTranslator (item) = ("cnt_translator_" + item)
195195
196196
197197 func getValueItemDisputeVotesTranslator (item) = getNumberByKey(getKeyItemDisputeVotesTranslator(item))
198198
199199
200200 func getKeyItemDisputeVotesUser (item) = ("cnt_user_" + item)
201201
202202
203203 func getValueItemDisputeVotesUser (item) = getNumberByKey(getKeyItemDisputeVotesUser(item))
204204
205205
206206 func getKeyItemBalance (item) = ("balance_" + item)
207207
208208
209209 func getValueItemBalance (item) = getNumberByKey(getKeyItemBalance(item))
210210
211211
212212 func getKeyItemBalanceAssetID (item) = ("balance_assetID" + item)
213213
214214
215215 func getValueItemBalanceAssetID (item) = getNumberByKey(getKeyItemBalanceAssetID(item))
216216
217217
218218 func getExtKeyItemWhiteListStatus (account) = ("verifier_status_" + account)
219219
220220
221221 func getExtValueItemWhiteListStatus (oracle,account) = {
222222 let str = match getString(oracle, getExtKeyItemWhiteListStatus(account)) {
223223 case a: String =>
224224 a
225225 case _ =>
226226 NONE
227227 }
228228 str
229229 }
230230
231231
232232 @Callable(i)
233233 func submitTranslation (document,data,assetID,futureBlocks,wordCount,typeOfWork,priceAssetID) = {
234234 let user = toBase58String(i.caller.bytes)
235235 let item = getKeyItem(user, document)
236236 let pmt = extract(i.payment)
237237 let deadlineblock = (lastBlock.height + futureBlocks)
238238 let currstatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, user)
239239 if (if (if (if ((currstatus != WHITELISTED))
240240 then (currstatus != ADMIN)
241241 else false)
242242 then (currstatus != MODERATOR)
243243 else false)
244244 then (user != DAPPADDRESS)
245245 else false)
246246 then throw(("Your account is not registered. status: " + currstatus))
247247 else if (if (if (if (if (if (if ((isDefined(pmt.assetId) != false))
248248 then (pmt.assetId != WETH)
249249 else false)
250250 then (pmt.assetId != WLTC)
251251 else false)
252252 then (pmt.assetId != WEUR)
253253 else false)
254254 then (pmt.assetId != WUSD)
255255 else false)
256256 then (pmt.assetId != WBTC)
257257 else false)
258258 then (pmt.assetId != KOLIN)
259259 else false)
260260 then throw("can only use WAVES, USD, EUR, BTC, ETH, LTC and KOLIN as payment methods")
261261 else if ((pmt.amount != LISTINGFEE))
262262 then throw(((("Please pay exact amount for the listing: " + toString(LISTINGFEE)) + ", actual payment is: ") + toString(pmt.amount)))
263263 else if ((getValueItemAuthor(item) != NONE))
264264 then throw("Item already exist")
265265 else if ((1440 > futureBlocks))
266266 then throw("please allow at least 24 h (~1440 blocks) for the translation work to be published properly")
267267 else if ((futureBlocks > 44640))
268268 then throw("a translation work can not be posted for longer than 31 days (~44640 blocks) ")
269269 else WriteSet([DataEntry(item, getKeyItemDocument(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)])
270270 }
271271
272272
273273
274274 @Callable(i)
275275 func escrow (item,translator,futureBlocks) = {
276276 let user = toBase58String(i.caller.bytes)
277277 let pmt = extract(i.payment)
278278 let deadlineblock = (lastBlock.height + futureBlocks)
279279 let price = getValueItemPriceAssetID(item)
280280 let registeredAssetID = getValueItemAssetID(item)
281281 let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, translator)
282282 let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, user)
283- let currstatus = getValueWhitelistStatus(user)
284- if (if (if ((currstatus != WHITELISTED))
283+ if (if (if (if ((userStatus != WHITELISTED))
285284 then (user != DAPPADDRESS)
286285 else false)
287- then (currstatus != ADMIN)
286+ then (userStatus != ADMIN)
288287 else false)
289- then throw(("Your account is not registered. status: " + currstatus))
290- else if ((getValueItemDocument(item) != item))
291- then throw("translation work not found")
292- else if ((getValueItemDeadline(item) >= lastBlock.height))
293- then throw("deadline for this work has been already achieved")
294- else if ((price > pmt.amount))
295- then throw("price lower than posted for this translation work")
296- else if ((pmt.amount > price))
297- then throw("money payed is higher than this translation work, no need to overspend")
298- else if ((user != getValueItemAuthor(item)))
299- then throw("User is different than translation's post creator")
300- else if ((userStatus == BLACKLISTED))
301- then throw("user's account has been blacklisted")
302- else if ((translatorStatus == BLACKLISTED))
303- then throw("translator's account has been blacklisted")
304- else if ((1440 > futureBlocks))
305- then throw("please allow at least 24 h (~1440 blocks) for the translation work to be published properly")
306- else if ((futureBlocks > 44640))
307- then throw("a translation work can not be posted for longer than 31 days (~44640 blocks) ")
308- else if ((getValueItemStatus(item) != "new post"))
309- then throw("escrow for this work already present")
310- 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))
288+ then (userStatus != MODERATOR)
289+ else false)
290+ then throw(("Your account is not registered. status: " + userStatus))
291+ else if (if (if (if ((translatorStatus != WHITELISTED))
292+ then (translator != DAPPADDRESS)
293+ else false)
294+ then (translatorStatus != ADMIN)
295+ else false)
296+ then (translatorStatus != MODERATOR)
297+ else false)
298+ then throw(("Your account is not registered. status: " + userStatus))
299+ else if ((getValueItemDocument(item) != item))
300+ then throw("translation work not found")
301+ else if ((getValueItemDeadline(item) >= lastBlock.height))
302+ then throw("deadline for this work has been already achieved")
303+ else if ((price > pmt.amount))
304+ then throw("price lower than posted for this translation work")
305+ else if ((pmt.amount > price))
306+ then throw("money payed is higher than this translation work, no need to overspend")
307+ else if ((user != getValueItemAuthor(item)))
308+ then throw("User is different than translation's post creator")
309+ else if ((userStatus == BLACKLISTED))
310+ then throw("user's account has been blacklisted")
311+ else if ((translatorStatus == BLACKLISTED))
312+ then throw("translator's account has been blacklisted")
313+ else if ((1440 > futureBlocks))
314+ then throw("please allow at least 24 h (~1440 blocks) for the translation work to be published properly")
315+ else if ((futureBlocks > 44640))
316+ then throw("a translation work can not be posted for longer than 31 days (~44640 blocks) ")
317+ else if ((getValueItemStatus(item) != "new post"))
318+ then throw("escrow for this work already present")
319+ 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))
311320 }
312321
313322
314323
315324 @Callable(i)
316325 func disputeEscrow (item) = {
317326 let caller = toBase58String(i.caller.bytes)
318327 let amount = getValueItemPriceAssetID(item)
319328 let assetID = getValueItemAssetID(item)
320329 let blockUnlocked = getValueItemDueFor(item)
321330 let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemTranslator(item))
322331 let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemAuthor(item))
323332 let currstatus = getValueWhitelistStatus(caller)
324333 if (if (if ((currstatus != WHITELISTED))
325334 then (caller != DAPPADDRESS)
326335 else false)
327336 then (currstatus != ADMIN)
328337 else false)
329338 then throw(("Your account is not registered. status: " + currstatus))
330339 else if (if (if ((caller != getValueItemTranslator(item)))
331340 then true
332341 else (caller != getValueItemAuthor(item)))
333342 then true
334343 else (caller != ADMIN))
335344 then throw("just work creator, translator or an admin can initiate a dispute")
336345 else if ((getKeyItemStatus(item) == "dispute in progress"))
337346 then throw("This work is currently under dispute")
338347 else if ((userStatus == BLACKLISTED))
339348 then throw("user's account has been blacklisted")
340349 else if ((translatorStatus == BLACKLISTED))
341350 then throw("translator's account has been blacklisted")
342351 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))
343352 }
344353
345354
346355
347356 @Callable(i)
348357 func disputeCloseEscrow (item) = {
349358 let caller = toBase58String(i.caller.bytes)
350359 let amount = getValueItemPriceAssetID(item)
351360 let assetID = getValueItemAssetID(item)
352361 let blockUnlocked = getValueItemDueFor(item)
353362 let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemTranslator(item))
354363 let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemAuthor(item))
355364 let currstatus = getValueWhitelistStatus(caller)
356365 if (if (if ((currstatus != WHITELISTED))
357366 then (caller != DAPPADDRESS)
358367 else false)
359368 then (currstatus != ADMIN)
360369 else false)
361370 then throw(("Your account is not registered. status: " + currstatus))
362371 else if ((currstatus != ADMIN))
363372 then throw("just admins can close a dispute")
364373 else if ((getKeyItemStatus(item) != "dispute in progress"))
365374 then throw("This work is not under dispute")
366375 else if ((userStatus == BLACKLISTED))
367376 then throw("user's account has been blacklisted")
368377 else if ((translatorStatus == BLACKLISTED))
369378 then throw("translator's account has been blacklisted")
370379 else if (if ((QUORUM > getValueItemDisputeVotesTranslator(item)))
371380 then (QUORUM > getValueItemDisputeVotesUser(item))
372381 else false)
373382 then throw("Votes are not enough to favour any involved part")
374383 else if ((getValueItemDisputeVotesTranslator(item) >= QUORUM))
375384 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))]))
376385 else if ((getValueItemDisputeVotesUser(item) >= QUORUM))
377386 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))]))
378387 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))
379388 }
380389
381390
382391
383392 @Callable(i)
384393 func voteDisputeEscrow (item,vote) = {
385394 let caller = toBase58String(i.caller.bytes)
386395 if ((getValueItemStatus(item) == "dispute closed"))
387396 then throw("this dispute is closed")
388397 else if (if ((getValueWhitelistStatus(caller) != MODERATOR))
389398 then true
390399 else (getValueWhitelistStatus(caller) != ADMIN))
391400 then throw("you either need to be an ADMIN or a MODERATOR to vote in disputes")
392401 else if (if ((getValueItemStatus(item) != "dispute in progress"))
393402 then true
394403 else (getValueItemStatus(item) != "dispute still under review"))
395404 then throw("translation work not under dispute")
396405 else if ((getValueItemDisputeVotesTranslator(item) >= QUORUM))
397406 then throw("Votes are enough to favour the Translator")
398407 else if ((getValueItemDisputeVotesUser(item) >= QUORUM))
399408 then throw("Votes are enough to favour the User")
400409 else if ((vote == getValueItemAuthor(item)))
401410 then WriteSet([DataEntry(getKeyItemDisputeVotesUser(item), (getValueItemDisputeVotesUser(item) + 1))])
402411 else if ((vote == getValueItemTranslator(item)))
403412 then WriteSet([DataEntry(getKeyItemDisputeVotesTranslator(item), (getValueItemDisputeVotesTranslator(item) + 1))])
404413 else throw("vote not submitted")
405414 }
406415
407416
408417
409418 @Callable(i)
410419 func withdrawEscrow (address,item) = {
411420 let caller = toBase58String(i.caller.bytes)
412421 let assetID = getValueItemAssetID(item)
413422 let amount = getValueItemPriceAssetID(item)
414423 let currstatus = getValueWhitelistStatus(caller)
415424 let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemTranslator(item))
416425 let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemAuthor(item))
417426 if (if (if ((currstatus != WHITELISTED))
418427 then (caller != DAPPADDRESS)
419428 else false)
420429 then (currstatus != ADMIN)
421430 else false)
422431 then throw(("Your account is not registered. status: " + currstatus))
423432 else if ((getValueItemDueFor(item) > lastBlock.height))
424433 then throw("Deadline has not finished yet")
425434 else if ((getKeyItemStatus(item) == "dispute in progress"))
426435 then throw("This work is currently under dispute")
427436 else if (if ((caller != getValueItemTranslator(item)))
428437 then true
429438 else (caller != getValueItemAuthor(item)))
430439 then throw("just work creator or translator can withdraw funds. Admins must initiate a dispute")
431440 else if (if ((caller == getValueItemAuthor(item)))
432441 then (userStatus == BLACKLISTED)
433442 else false)
434443 then throw("user's account has been blacklisted")
435444 else if (if ((caller == getValueItemTranslator(item)))
436445 then (translatorStatus == BLACKLISTED)
437446 else false)
438447 then throw("translator's account has been blacklisted")
439448 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))]))
440449 }
441450
442451
443452
444453 @Callable(i)
445454 func inviteuser (newaccount,data) = {
446455 let caller = toBase58String(i.caller.bytes)
447456 let newstatus = getValueWhitelistStatus(newaccount)
448457 let currstatus = getValueWhitelistStatus(caller)
449458 if (if (if ((newstatus == WHITELISTED))
450459 then true
451460 else (newstatus == MODERATOR))
452461 then true
453462 else (newstatus == ADMIN))
454463 then throw("User has already been registered")
455464 else if ((newstatus == BLACKLISTED))
456465 then throw("The user you want to invite is already Blacklisted")
457466 else if (if (if ((currstatus != WHITELISTED))
458467 then (caller != DAPPADDRESS)
459468 else false)
460469 then (currstatus != ADMIN)
461470 else false)
462471 then throw(("Your account should be whitelisted. status: " + currstatus))
463472 else WriteSet([DataEntry(getKeyWhitelistRef(newaccount), caller), DataEntry(getKeyWhitelistBio(newaccount), data), DataEntry(getKeyWhitelistStatus(newaccount), INVITED)])
464473 }
465474
466475
467476
468477 @Callable(i)
469478 func userupdate (data,type) = {
470479 let account = toBase58String(i.caller.bytes)
471480 if (if (if ((type == MODERATOR))
472481 then true
473482 else (type == ADMIN))
474483 then (getValueWhitelistStatus(account) == WHITELISTED)
475484 else false)
476485 then throw("an ADMIN or MODERATOR account can be created by an ADMIN only")
477486 else if (if ((type == ADMIN))
478487 then (getValueWhitelistStatus(account) != ADMIN)
479488 else false)
480489 then throw("an ADMIN account can be created by another ADMIN only")
481490 else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistStatus(account), if ((type == MODERATOR))
482491 then MODERATOR
483492 else if ((type == ADMIN))
484493 then ADMIN
485494 else WHITELISTED)])
486495 }
487496
488497
489498
490499 @Callable(i)
491500 func signupbylink (hash,data,type) = {
492501 let account = toBase58String(i.caller.bytes)
493502 let status = getValueWhitelistStatus(hash)
494503 if ((status != INVITED))
495504 then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(hash)) + ", account:") + hash))
496505 else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == MODERATOR))
497506 then MODERATOR
498507 else WHITELISTED), DataEntry(getKeyWhitelistStatus(hash), SPENDINVITE), DataEntry(getKeyWhitelistRef(account), getValueWhitelistRef(hash))])
499508 }
500509
501510
502511
503512 @Callable(i)
504513 func signup (data,type) = {
505514 let account = toBase58String(i.caller.bytes)
506515 let status = getValueWhitelistStatus(account)
507516 if ((status == NONE))
508517 then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(account)) + ", account:") + account))
509518 else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == MODERATOR))
510519 then MODERATOR
511520 else WHITELISTED)])
512521 }
513522
514523
515524
516525 @Callable(i)
517526 func reportProject (item,data) = {
518527 let account = toBase58String(i.caller.bytes)
519528 WriteSet([DataEntry(getKeyItemAccReportData(item, account), data)])
520529 }
521530
522531

github/deemru/w8io/169f3d6 
74.98 ms