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