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