tx · 8gVojZycevAs5czoMdkK9ujpFaH4apmJf2SkatujC8xb

3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK:  -0.01400000 Waves

2019.09.26 21:24 [693699] smart account 3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK > SELF 0.00000000 Waves

{ "type": 13, "id": "8gVojZycevAs5czoMdkK9ujpFaH4apmJf2SkatujC8xb", "fee": 1400000, "feeAssetId": null, "timestamp": 1569522277853, "version": 1, "sender": "3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK", "senderPublicKey": "7A8H5cWfJVSpSrnB71CzWqyNm8KMxZPjwFcj1mDUU8an", "proofs": [ "4a4Zzfjb7A617ZwEqexRBrr76xGtmkXRSVN1ranPcJj7ZGLXjLRvfAQXwbiQCtrjNMBLDCPSdqwKFuu49pKh8MrD" ], "script": "base64:AAIDAAAAAAAAAAAAAABLAAAAABZvcmFjbGVXaGl0ZUxpc3RBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFURgbF8Y7OPgkLtFiSdXpmu5LRzu6Rj638AAAAABR0aGlzQWRkcmVzc1B1YmxpY0tleQEAAAAgW3yTxZOTTiNmvooSpXcphBB5DlU9aluLSa1r39oafQsAAAAAC0RBUFBBRERSRVNTAgAAACMzTjJGam5DcTRnY3Bld3NZUVZUNHNjejlNalRnRDZhNGtRSwAAAAAFQURNSU4CAAAAIzNOQ0tvRlF4UmY3enNETmJpdkxGdzFvSjd5OHFKekxtRXM0AAAAAARXVVNEAQAAACDdHL0B8M91BTB4B7KotjiY0UXdXB+6M1rjQG/6Zllw/QAAAAAEV0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABFdCVEMBAAAAIGz6av/F7aqMC3+1KpPSogwvgoLbdHoEjFP7/RMfc6D/AAAAAAVLT0xJTgEAAAAg2pnGDzCaCArIN9AsIhvcgYMfZowVYuDqNDNtJmjyiQ0AAAAABFdFVEgBAAAAIC4gw/bq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AAVieXRlcwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAF2dldEtleUl0ZW1BY2NSZXBvcnREYXRhAAAAAgUAAAAEaXRlbQUAAAAHYWNjb3VudAUAAAAEZGF0YQUAAAADbmlsAAAAAJ/50Fo=", "chainId": 84, "height": 693699, "spentComplexity": 0 } View: original | compacted Prev: A2MYQrqD3VbtDCT6Xb8Xty1ma5UtaosPDZiY8d6ve9Vo Next: De8HJjULeeKHweXrK3Vj8rhozJjkiybVrch1u9VzSwXD Diff:
OldNewDifferences
6262 func getKeyItem (user,item) = ("item_" + toBase58String(sha256(toBytes((user + item)))))
6363
6464
65-func getKeyItemDocument (document) = ("document_" + document)
65+func getValueItem (user,item) = toBase58String(sha256(toBytes((user + item))))
66+
67+
68+func getKeyItemDocument (document) = ("item_" + document)
6669
6770
6871 func getValueItemDocument (document) = getStrByKey(getKeyItemDocument(document))
266269 then throw("please allow at least 24 h (~1440 blocks) for the translation work to be published properly")
267270 else if ((futureBlocks > 44640))
268271 then throw("a translation work can not be posted for longer than 31 days (~44640 blocks) ")
269- 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)])
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)])
270273 }
271274
272275
298301 else false)
299302 then throw(("Your account is not registered. status: " + userStatus))
300303 else if ((getValueItemDocument(document) != item))
301- then throw("translation work not found")
304+ then throw(("translation work not found for " + item))
302305 else if ((getValueItemDeadline(item) >= lastBlock.height))
303306 then throw("deadline for this work has been already achieved")
304307 else if ((price > pmt.amount))
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
65-func getKeyItemDocument (document) = ("document_" + document)
65+func getValueItem (user,item) = toBase58String(sha256(toBytes((user + item))))
66+
67+
68+func getKeyItemDocument (document) = ("item_" + document)
6669
6770
6871 func getValueItemDocument (document) = getStrByKey(getKeyItemDocument(document))
6972
7073
7174 func getKeyWhitelistRef (account) = ("wl_ref_" + account)
7275
7376
7477 func getValueWhitelistRef (account) = getStrByKey(getKeyWhitelistRef(account))
7578
7679
7780 func getKeyWhitelistStatus (account) = ("wl_sts_" + account)
7881
7982
8083 func getKeyBalance (account) = ("balance_" + account)
8184
8285
8386 func getKeyWhitelistBio (account) = ("wl_bio_" + account)
8487
8588
8689 func getKeyWhitelistBlock (account) = ("wl_blk_" + account)
8790
8891
8992 func getKeyItemAccReportData (item,account) = ((("report_" + item) + "_") + account)
9093
9194
9295 func getValueBalance (account) = getNumberByKey(getKeyBalance(account))
9396
9497
9598 func getValueWhitelistStatus (account) = getStrByKey(getKeyWhitelistStatus(account))
9699
97100
98101 func getKeyItemAuthor (item) = ("author_" + item)
99102
100103
101104 func getValueItemAuthor (item) = getStrByKey(getKeyItemAuthor(item))
102105
103106
104107 func getKeyItemDeadline (item) = ("deadlineblock_" + item)
105108
106109
107110 func getValueItemDeadline (item) = getNumberByKey(getKeyItemDeadline(item))
108111
109112
110113 func getKeyItemBlock (item) = ("block_" + item)
111114
112115
113116 func getValueItemBlock (item) = getNumberByKey(getKeyItemBlock(item))
114117
115118
116119 func getKeyItemTypeOfWork (item) = ("typeofwork_" + item)
117120
118121
119122 func getValueItemTypeOfWork (item) = getNumberByKey(getKeyItemTypeOfWork(item))
120123
121124
122125 func getKeyItemWordCount (item) = ("wordcount_" + item)
123126
124127
125128 func getValueItemWordCount (item) = getNumberByKey(getKeyItemWordCount(item))
126129
127130
128131 func getKeyItemPriceUSD (item) = ("priceUSD_" + item)
129132
130133
131134 func getValueItemPriceUSD (item) = getNumberByKey(getKeyItemPriceUSD(item))
132135
133136
134137 func getKeyItemAssetID (item) = ("pmtassetID_" + item)
135138
136139
137140 func getValueItemAssetID (item) = getStrByKey(getKeyItemAssetID(item))
138141
139142
140143 func getKeyItemPriceAssetID (item) = ("priceassetID_" + item)
141144
142145
143146 func getValueItemPriceAssetID (item) = getNumberByKey(getKeyItemPriceAssetID(item))
144147
145148
146149 func getKeyItemData (item) = ("datajson_" + item)
147150
148151
149152 func getValueItemData (item) = getStrByKey(getKeyItemData(item))
150153
151154
152155 func getKeyItemStatus (item) = ("status_" + item)
153156
154157
155158 func getValueItemStatus (item) = getStrByKey(getKeyItemStatus(item))
156159
157160
158161 func getKeyItemTranslator (item) = ("translator_" + item)
159162
160163
161164 func getValueItemTranslator (item) = getStrByKey(getKeyItemTranslator(item))
162165
163166
164167 func getKeyItemDueFor (item) = ("due_for_" + item)
165168
166169
167170 func getValueItemDueFor (item) = getNumberByKey(getKeyItemDueFor(item))
168171
169172
170173 func getKeyItemDisputeInitiatedBy (item) = ("disputedby_" + item)
171174
172175
173176 func getValueItemDisputeInitiatedBy (item) = getStrByKey(getKeyItemDisputeInitiatedBy(item))
174177
175178
176179 func getKeyItemDisputeClosedBy (item) = ("disputeclosedby_" + item)
177180
178181
179182 func getValueItemDisputeClosedBy (item) = getStrByKey(getKeyItemDisputeClosedBy(item))
180183
181184
182185 func getKeyItemDisputeClosedWinner (item) = "dispute_winner_"
183186
184187
185188 func getKeyValueDisputeClosedWinner (item) = getStrByKey(getKeyItemDisputeClosedWinner(item))
186189
187190
188191 func getKeyItemLastUpdate (item) = ("last_update_" + item)
189192
190193
191194 func getValueItemLastUpdate (item) = getNumberByKey(getKeyItemLastUpdate(item))
192195
193196
194197 func getKeyItemDisputeVotesTranslator (item) = ("cnt_translator_" + item)
195198
196199
197200 func getValueItemDisputeVotesTranslator (item) = getNumberByKey(getKeyItemDisputeVotesTranslator(item))
198201
199202
200203 func getKeyItemDisputeVotesUser (item) = ("cnt_user_" + item)
201204
202205
203206 func getValueItemDisputeVotesUser (item) = getNumberByKey(getKeyItemDisputeVotesUser(item))
204207
205208
206209 func getKeyItemBalance (item) = ("balance_" + item)
207210
208211
209212 func getValueItemBalance (item) = getNumberByKey(getKeyItemBalance(item))
210213
211214
212215 func getKeyItemBalanceAssetID (item) = ("balance_assetID" + item)
213216
214217
215218 func getValueItemBalanceAssetID (item) = getNumberByKey(getKeyItemBalanceAssetID(item))
216219
217220
218221 func getExtKeyItemWhiteListStatus (account) = ("verifier_status_" + account)
219222
220223
221224 func getExtValueItemWhiteListStatus (oracle,account) = {
222225 let str = match getString(oracle, getExtKeyItemWhiteListStatus(account)) {
223226 case a: String =>
224227 a
225228 case _ =>
226229 NONE
227230 }
228231 str
229232 }
230233
231234
232235 @Callable(i)
233236 func submitTranslation (document,data,assetID,futureBlocks,wordCount,typeOfWork,priceAssetID) = {
234237 let user = toBase58String(i.caller.bytes)
235238 let item = getKeyItem(user, document)
236239 let pmt = extract(i.payment)
237240 let deadlineblock = (lastBlock.height + futureBlocks)
238241 let currstatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, user)
239242 if (if (if (if ((currstatus != WHITELISTED))
240243 then (currstatus != ADMIN)
241244 else false)
242245 then (currstatus != MODERATOR)
243246 else false)
244247 then (user != DAPPADDRESS)
245248 else false)
246249 then throw(("Your account is not registered. status: " + currstatus))
247250 else if (if (if (if (if (if (if ((isDefined(pmt.assetId) != false))
248251 then (pmt.assetId != WETH)
249252 else false)
250253 then (pmt.assetId != WLTC)
251254 else false)
252255 then (pmt.assetId != WEUR)
253256 else false)
254257 then (pmt.assetId != WUSD)
255258 else false)
256259 then (pmt.assetId != WBTC)
257260 else false)
258261 then (pmt.assetId != KOLIN)
259262 else false)
260263 then throw("can only use WAVES, USD, EUR, BTC, ETH, LTC and KOLIN as payment methods")
261264 else if ((pmt.amount != LISTINGFEE))
262265 then throw(((("Please pay exact amount for the listing: " + toString(LISTINGFEE)) + ", actual payment is: ") + toString(pmt.amount)))
263266 else if ((getValueItemAuthor(item) != NONE))
264267 then throw("Item already exist")
265268 else if ((1440 > futureBlocks))
266269 then throw("please allow at least 24 h (~1440 blocks) for the translation work to be published properly")
267270 else if ((futureBlocks > 44640))
268271 then throw("a translation work can not be posted for longer than 31 days (~44640 blocks) ")
269- 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)])
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)])
270273 }
271274
272275
273276
274277 @Callable(i)
275278 func escrow (item,translator,futureBlocks) = {
276279 let user = toBase58String(i.caller.bytes)
277280 let pmt = extract(i.payment)
278281 let document = item
279282 let deadlineblock = (lastBlock.height + futureBlocks)
280283 let price = getValueItemPriceAssetID(item)
281284 let registeredAssetID = getValueItemAssetID(item)
282285 let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, translator)
283286 let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, user)
284287 if (if (if (if ((userStatus != WHITELISTED))
285288 then (user != DAPPADDRESS)
286289 else false)
287290 then (userStatus != ADMIN)
288291 else false)
289292 then (userStatus != MODERATOR)
290293 else false)
291294 then throw(("Your account is not registered. status: " + userStatus))
292295 else if (if (if (if ((translatorStatus != WHITELISTED))
293296 then (translator != DAPPADDRESS)
294297 else false)
295298 then (translatorStatus != ADMIN)
296299 else false)
297300 then (translatorStatus != MODERATOR)
298301 else false)
299302 then throw(("Your account is not registered. status: " + userStatus))
300303 else if ((getValueItemDocument(document) != item))
301- then throw("translation work not found")
304+ then throw(("translation work not found for " + item))
302305 else if ((getValueItemDeadline(item) >= lastBlock.height))
303306 then throw("deadline for this work has been already achieved")
304307 else if ((price > pmt.amount))
305308 then throw("price lower than posted for this translation work")
306309 else if ((pmt.amount > price))
307310 then throw("money payed is higher than this translation work, no need to overspend")
308311 else if ((user != getValueItemAuthor(item)))
309312 then throw("User is different than translation's post creator")
310313 else if ((userStatus == BLACKLISTED))
311314 then throw("user's account has been blacklisted")
312315 else if ((translatorStatus == BLACKLISTED))
313316 then throw("translator's account has been blacklisted")
314317 else if ((1440 > futureBlocks))
315318 then throw("please allow at least 24 h (~1440 blocks) for the translation work to be published properly")
316319 else if ((futureBlocks > 44640))
317320 then throw("a translation work can not be posted for longer than 31 days (~44640 blocks) ")
318321 else if ((getValueItemStatus(item) != "new post"))
319322 then throw("escrow for this work already present")
320323 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))
321324 }
322325
323326
324327
325328 @Callable(i)
326329 func disputeEscrow (item) = {
327330 let caller = toBase58String(i.caller.bytes)
328331 let amount = getValueItemPriceAssetID(item)
329332 let assetID = getValueItemAssetID(item)
330333 let blockUnlocked = getValueItemDueFor(item)
331334 let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemTranslator(item))
332335 let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemAuthor(item))
333336 let currstatus = getValueWhitelistStatus(caller)
334337 if (if (if ((currstatus != WHITELISTED))
335338 then (caller != DAPPADDRESS)
336339 else false)
337340 then (currstatus != ADMIN)
338341 else false)
339342 then throw(("Your account is not registered. status: " + currstatus))
340343 else if (if (if ((caller != getValueItemTranslator(item)))
341344 then true
342345 else (caller != getValueItemAuthor(item)))
343346 then true
344347 else (caller != ADMIN))
345348 then throw("just work creator, translator or an admin can initiate a dispute")
346349 else if ((getKeyItemStatus(item) == "dispute in progress"))
347350 then throw("This work is currently under dispute")
348351 else if ((userStatus == BLACKLISTED))
349352 then throw("user's account has been blacklisted")
350353 else if ((translatorStatus == BLACKLISTED))
351354 then throw("translator's account has been blacklisted")
352355 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))
353356 }
354357
355358
356359
357360 @Callable(i)
358361 func disputeCloseEscrow (item) = {
359362 let caller = toBase58String(i.caller.bytes)
360363 let amount = getValueItemPriceAssetID(item)
361364 let assetID = getValueItemAssetID(item)
362365 let blockUnlocked = getValueItemDueFor(item)
363366 let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemTranslator(item))
364367 let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemAuthor(item))
365368 let currstatus = getValueWhitelistStatus(caller)
366369 if (if (if ((currstatus != WHITELISTED))
367370 then (caller != DAPPADDRESS)
368371 else false)
369372 then (currstatus != ADMIN)
370373 else false)
371374 then throw(("Your account is not registered. status: " + currstatus))
372375 else if ((currstatus != ADMIN))
373376 then throw("just admins can close a dispute")
374377 else if ((getKeyItemStatus(item) != "dispute in progress"))
375378 then throw("This work is not under dispute")
376379 else if ((userStatus == BLACKLISTED))
377380 then throw("user's account has been blacklisted")
378381 else if ((translatorStatus == BLACKLISTED))
379382 then throw("translator's account has been blacklisted")
380383 else if (if ((QUORUM > getValueItemDisputeVotesTranslator(item)))
381384 then (QUORUM > getValueItemDisputeVotesUser(item))
382385 else false)
383386 then throw("Votes are not enough to favour any involved part")
384387 else if ((getValueItemDisputeVotesTranslator(item) >= QUORUM))
385388 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))]))
386389 else if ((getValueItemDisputeVotesUser(item) >= QUORUM))
387390 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))]))
388391 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))
389392 }
390393
391394
392395
393396 @Callable(i)
394397 func voteDisputeEscrow (item,vote) = {
395398 let caller = toBase58String(i.caller.bytes)
396399 if ((getValueItemStatus(item) == "dispute closed"))
397400 then throw("this dispute is closed")
398401 else if (if ((getValueWhitelistStatus(caller) != MODERATOR))
399402 then true
400403 else (getValueWhitelistStatus(caller) != ADMIN))
401404 then throw("you either need to be an ADMIN or a MODERATOR to vote in disputes")
402405 else if (if ((getValueItemStatus(item) != "dispute in progress"))
403406 then true
404407 else (getValueItemStatus(item) != "dispute still under review"))
405408 then throw("translation work not under dispute")
406409 else if ((getValueItemDisputeVotesTranslator(item) >= QUORUM))
407410 then throw("Votes are enough to favour the Translator")
408411 else if ((getValueItemDisputeVotesUser(item) >= QUORUM))
409412 then throw("Votes are enough to favour the User")
410413 else if ((vote == getValueItemAuthor(item)))
411414 then WriteSet([DataEntry(getKeyItemDisputeVotesUser(item), (getValueItemDisputeVotesUser(item) + 1))])
412415 else if ((vote == getValueItemTranslator(item)))
413416 then WriteSet([DataEntry(getKeyItemDisputeVotesTranslator(item), (getValueItemDisputeVotesTranslator(item) + 1))])
414417 else throw("vote not submitted")
415418 }
416419
417420
418421
419422 @Callable(i)
420423 func withdrawEscrow (address,item) = {
421424 let caller = toBase58String(i.caller.bytes)
422425 let assetID = getValueItemAssetID(item)
423426 let amount = getValueItemPriceAssetID(item)
424427 let currstatus = getValueWhitelistStatus(caller)
425428 let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemTranslator(item))
426429 let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemAuthor(item))
427430 if (if (if ((currstatus != WHITELISTED))
428431 then (caller != DAPPADDRESS)
429432 else false)
430433 then (currstatus != ADMIN)
431434 else false)
432435 then throw(("Your account is not registered. status: " + currstatus))
433436 else if ((getValueItemDueFor(item) > lastBlock.height))
434437 then throw("Deadline has not finished yet")
435438 else if ((getKeyItemStatus(item) == "dispute in progress"))
436439 then throw("This work is currently under dispute")
437440 else if (if ((caller != getValueItemTranslator(item)))
438441 then true
439442 else (caller != getValueItemAuthor(item)))
440443 then throw("just work creator or translator can withdraw funds. Admins must initiate a dispute")
441444 else if (if ((caller == getValueItemAuthor(item)))
442445 then (userStatus == BLACKLISTED)
443446 else false)
444447 then throw("user's account has been blacklisted")
445448 else if (if ((caller == getValueItemTranslator(item)))
446449 then (translatorStatus == BLACKLISTED)
447450 else false)
448451 then throw("translator's account has been blacklisted")
449452 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))]))
450453 }
451454
452455
453456
454457 @Callable(i)
455458 func inviteuser (newaccount,data) = {
456459 let caller = toBase58String(i.caller.bytes)
457460 let newstatus = getValueWhitelistStatus(newaccount)
458461 let currstatus = getValueWhitelistStatus(caller)
459462 if (if (if ((newstatus == WHITELISTED))
460463 then true
461464 else (newstatus == MODERATOR))
462465 then true
463466 else (newstatus == ADMIN))
464467 then throw("User has already been registered")
465468 else if ((newstatus == BLACKLISTED))
466469 then throw("The user you want to invite is already Blacklisted")
467470 else if (if (if ((currstatus != WHITELISTED))
468471 then (caller != DAPPADDRESS)
469472 else false)
470473 then (currstatus != ADMIN)
471474 else false)
472475 then throw(("Your account should be whitelisted. status: " + currstatus))
473476 else WriteSet([DataEntry(getKeyWhitelistRef(newaccount), caller), DataEntry(getKeyWhitelistBio(newaccount), data), DataEntry(getKeyWhitelistStatus(newaccount), INVITED)])
474477 }
475478
476479
477480
478481 @Callable(i)
479482 func userupdate (data,type) = {
480483 let account = toBase58String(i.caller.bytes)
481484 if (if (if ((type == MODERATOR))
482485 then true
483486 else (type == ADMIN))
484487 then (getValueWhitelistStatus(account) == WHITELISTED)
485488 else false)
486489 then throw("an ADMIN or MODERATOR account can be created by an ADMIN only")
487490 else if (if ((type == ADMIN))
488491 then (getValueWhitelistStatus(account) != ADMIN)
489492 else false)
490493 then throw("an ADMIN account can be created by another ADMIN only")
491494 else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistStatus(account), if ((type == MODERATOR))
492495 then MODERATOR
493496 else if ((type == ADMIN))
494497 then ADMIN
495498 else WHITELISTED)])
496499 }
497500
498501
499502
500503 @Callable(i)
501504 func signupbylink (hash,data,type) = {
502505 let account = toBase58String(i.caller.bytes)
503506 let status = getValueWhitelistStatus(hash)
504507 if ((status != INVITED))
505508 then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(hash)) + ", account:") + hash))
506509 else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == MODERATOR))
507510 then MODERATOR
508511 else WHITELISTED), DataEntry(getKeyWhitelistStatus(hash), SPENDINVITE), DataEntry(getKeyWhitelistRef(account), getValueWhitelistRef(hash))])
509512 }
510513
511514
512515
513516 @Callable(i)
514517 func signup (data,type) = {
515518 let account = toBase58String(i.caller.bytes)
516519 let status = getValueWhitelistStatus(account)
517520 if ((status == NONE))
518521 then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(account)) + ", account:") + account))
519522 else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == MODERATOR))
520523 then MODERATOR
521524 else WHITELISTED)])
522525 }
523526
524527
525528
526529 @Callable(i)
527530 func reportProject (item,data) = {
528531 let account = toBase58String(i.caller.bytes)
529532 WriteSet([DataEntry(getKeyItemAccReportData(item, account), data)])
530533 }
531534
532535

github/deemru/w8io/169f3d6 
89.11 ms