tx · GQeLc4F5MiHPrnQWdZH4ZJ5GXENKPhUSg7gjkXonJd1s 3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK: -0.01400000 Waves 2019.09.25 20:31 [692163] smart account 3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK > SELF 0.00000000 Waves
{ "type": 13, "id": "GQeLc4F5MiHPrnQWdZH4ZJ5GXENKPhUSg7gjkXonJd1s", "fee": 1400000, "feeAssetId": null, "timestamp": 1569432740484, "version": 1, "sender": "3N2FjnCq4gcpewsYQVT4scz9MjTgD6a4kQK", "senderPublicKey": "7A8H5cWfJVSpSrnB71CzWqyNm8KMxZPjwFcj1mDUU8an", "proofs": [ "52C4EqXrqRsoca8xPQpqRVXdpXspr4Nh3TEePK8fyhzJizvgXbbBCAhjhMevVgDocPhGnbC31r8aCEqkjo3qCVcu" ], "script": "base64:AAIDAAAAAAAAAAAAAABKAAAAABZvcmFjbGVXaGl0ZUxpc3RBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFURgbF8Y7OPgkLtFiSdXpmu5LRzu6Rj638AAAAABR0aGlzQWRkcmVzc1B1YmxpY0tleQEAAAAgW3yTxZOTTiNmvooSpXcphBB5DlU9aluLSa1r39oafQsAAAAAC0RBUFBBRERSRVNTAgAAACMzTjJGam5DcTRnY3Bld3NZUVZUNHNjejlNalRnRDZhNGtRSwAAAAAFQURNSU4CAAAAIzNOQ0tvRlF4UmY3enNETmJpdkxGdzFvSjd5OHFKekxtRXM0AAAAAARXVVNEAQAAACDdHL0B8M91BTB4B7KotjiY0UXdXB+6M1rjQG/6Zllw/QAAAAAEV0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABFdCVEMBAAAAIGz6av/F7aqMC3+1KpPSogwvgoLbdHoEjFP7/RMfc6D/AAAAAAVLT0xJTgEAAAAg2pnGDzCaCArIN9AsIhvcgYMfZowVYuDqNDNtJmjyiQ0AAAAABFdFVEgBAAAA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GF0YUVudHJ5AAAAAgkBAAAAEmdldEtleVdoaXRlbGlzdEJpbwAAAAEFAAAAB2FjY291bnQFAAAABGRhdGEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAABRnZXRLZXlXaGl0ZWxpc3RCbG9jawAAAAEFAAAAB2FjY291bnQFAAAABmhlaWdodAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAFWdldEtleVdoaXRlbGlzdFN0YXR1cwAAAAEFAAAAB2FjY291bnQDCQAAAAAAAAIFAAAABHR5cGUFAAAACU1PREVSQVRPUgUAAAAJTU9ERVJBVE9SBQAAAAtXSElURUxJU1RFRAUAAAADbmlsAAAAAWkBAAAADXJlcG9ydFByb2plY3QAAAACAAAABGl0ZW0AAAAEZGF0YQQAAAAHYWNjb3VudAkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAXZ2V0S2V5SXRlbUFjY1JlcG9ydERhdGEAAAACBQAAAARpdGVtBQAAAAdhY2NvdW50BQAAAARkYXRhBQAAAANuaWwAAAAAc+ZScw==", "chainId": 84, "height": 692163, "spentComplexity": 0 } View: original | compacted Prev: F3A2CxT9vQ95unMMPi8jsE2tFuLaM75Q9kUwwvgLPutT Next: Hy7kguq5FvC4VuB9DaPHoXHrjsACeeiRobuuWNDAGuCJ Diff:
Old | New | Differences | |
---|---|---|---|
215 | 215 | func getValueItemBalanceAssetID (item) = getNumberByKey(getKeyItemBalanceAssetID(item)) | |
216 | 216 | ||
217 | 217 | ||
218 | - | func getExtKeyItemWhiteListStatus (account) = | |
218 | + | func getExtKeyItemWhiteListStatus (account) = account | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func getExtValueItemWhiteListStatus (oracle,account) = { |
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 = "registered" | |
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 | - | func getExtKeyItemWhiteListStatus (account) = | |
218 | + | func getExtKeyItemWhiteListStatus (account) = 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 | 239 | if (if (if ((currstatus != WHITELISTED)) | |
240 | 240 | then (user != DAPPADDRESS) | |
241 | 241 | else false) | |
242 | 242 | then (currstatus != ADMIN) | |
243 | 243 | else false) | |
244 | 244 | then throw(("Your account is not registered. status: " + currstatus)) | |
245 | 245 | else if (if (if (if (if (if ((pmt.assetId != WETH)) | |
246 | 246 | then true | |
247 | 247 | else (pmt.assetId != WLTC)) | |
248 | 248 | then true | |
249 | 249 | else (pmt.assetId != WEUR)) | |
250 | 250 | then true | |
251 | 251 | else (pmt.assetId != WUSD)) | |
252 | 252 | then true | |
253 | 253 | else (pmt.assetId != WBTC)) | |
254 | 254 | then true | |
255 | 255 | else (pmt.assetId != KOLIN)) | |
256 | 256 | then throw("can only use WAVES, USD, EUR, BTC, ETH, LTC and KOLIN as payment methods") | |
257 | 257 | else if ((pmt.amount != LISTINGFEE)) | |
258 | 258 | then throw(((("Please pay exact amount for the listing: " + toString(LISTINGFEE)) + ", actual payment is: ") + toString(pmt.amount))) | |
259 | 259 | else if ((getValueItemAuthor(item) != NONE)) | |
260 | 260 | then throw("Item already exist") | |
261 | 261 | else if ((1440 > futureBlocks)) | |
262 | 262 | then throw("please allow at least 24 h (~1440 blocks) for the translation work to be published properly") | |
263 | 263 | else if ((futureBlocks > 44640)) | |
264 | 264 | then throw("a translation work can not be posted for longer than 31 days (~44640 blocks) ") | |
265 | 265 | else WriteSet([DataEntry(getKeyItemDocument(document), 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)]) | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | ||
270 | 270 | @Callable(i) | |
271 | 271 | func escrow (item,translator,futureBlocks) = { | |
272 | 272 | let user = toBase58String(i.caller.bytes) | |
273 | 273 | let pmt = extract(i.payment) | |
274 | 274 | let deadlineblock = (lastBlock.height + futureBlocks) | |
275 | 275 | let price = getValueItemPriceAssetID(item) | |
276 | 276 | let registeredAssetID = getValueItemAssetID(item) | |
277 | 277 | let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, translator) | |
278 | 278 | let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, user) | |
279 | 279 | let currstatus = getValueWhitelistStatus(user) | |
280 | 280 | if (if (if ((currstatus != WHITELISTED)) | |
281 | 281 | then (user != DAPPADDRESS) | |
282 | 282 | else false) | |
283 | 283 | then (currstatus != ADMIN) | |
284 | 284 | else false) | |
285 | 285 | then throw(("Your account is not registered. status: " + currstatus)) | |
286 | 286 | else if ((getValueItemDocument(item) != item)) | |
287 | 287 | then throw("translation work not found") | |
288 | 288 | else if ((getValueItemDeadline(item) >= lastBlock.height)) | |
289 | 289 | then throw("deadline for this work has been already achieved") | |
290 | 290 | else if ((price > pmt.amount)) | |
291 | 291 | then throw("price lower than posted for this translation work") | |
292 | 292 | else if ((pmt.amount > price)) | |
293 | 293 | then throw("money payed is higher than this translation work, no need to overspend") | |
294 | 294 | else if ((user != getValueItemAuthor(item))) | |
295 | 295 | then throw("User is different than translation's post creator") | |
296 | 296 | else if ((userStatus == BLACKLISTED)) | |
297 | 297 | then throw("user's account has been blacklisted") | |
298 | 298 | else if ((translatorStatus == BLACKLISTED)) | |
299 | 299 | then throw("translator's account has been blacklisted") | |
300 | 300 | else if ((1440 > futureBlocks)) | |
301 | 301 | then throw("please allow at least 24 h (~1440 blocks) for the translation work to be published properly") | |
302 | 302 | else if ((futureBlocks > 44640)) | |
303 | 303 | then throw("a translation work can not be posted for longer than 31 days (~44640 blocks) ") | |
304 | 304 | else if ((getValueItemStatus(item) != "new post")) | |
305 | 305 | then throw("escrow for this work already present") | |
306 | 306 | 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)) | |
307 | 307 | } | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | ||
311 | 311 | @Callable(i) | |
312 | 312 | func disputeEscrow (item) = { | |
313 | 313 | let caller = toBase58String(i.caller.bytes) | |
314 | 314 | let amount = getValueItemPriceAssetID(item) | |
315 | 315 | let assetID = getValueItemAssetID(item) | |
316 | 316 | let blockUnlocked = getValueItemDueFor(item) | |
317 | 317 | let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemTranslator(item)) | |
318 | 318 | let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemAuthor(item)) | |
319 | 319 | let currstatus = getValueWhitelistStatus(caller) | |
320 | 320 | if (if (if ((currstatus != WHITELISTED)) | |
321 | 321 | then (caller != DAPPADDRESS) | |
322 | 322 | else false) | |
323 | 323 | then (currstatus != ADMIN) | |
324 | 324 | else false) | |
325 | 325 | then throw(("Your account is not registered. status: " + currstatus)) | |
326 | 326 | else if (if (if ((caller != getValueItemTranslator(item))) | |
327 | 327 | then true | |
328 | 328 | else (caller != getValueItemAuthor(item))) | |
329 | 329 | then true | |
330 | 330 | else (caller != ADMIN)) | |
331 | 331 | then throw("just work creator, translator or an admin can initiate a dispute") | |
332 | 332 | else if ((getKeyItemStatus(item) == "dispute in progress")) | |
333 | 333 | then throw("This work is currently under dispute") | |
334 | 334 | else if ((userStatus == BLACKLISTED)) | |
335 | 335 | then throw("user's account has been blacklisted") | |
336 | 336 | else if ((translatorStatus == BLACKLISTED)) | |
337 | 337 | then throw("translator's account has been blacklisted") | |
338 | 338 | 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)) | |
339 | 339 | } | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | ||
343 | 343 | @Callable(i) | |
344 | 344 | func disputeCloseEscrow (item) = { | |
345 | 345 | let caller = toBase58String(i.caller.bytes) | |
346 | 346 | let amount = getValueItemPriceAssetID(item) | |
347 | 347 | let assetID = getValueItemAssetID(item) | |
348 | 348 | let blockUnlocked = getValueItemDueFor(item) | |
349 | 349 | let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemTranslator(item)) | |
350 | 350 | let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemAuthor(item)) | |
351 | 351 | let currstatus = getValueWhitelistStatus(caller) | |
352 | 352 | if (if (if ((currstatus != WHITELISTED)) | |
353 | 353 | then (caller != DAPPADDRESS) | |
354 | 354 | else false) | |
355 | 355 | then (currstatus != ADMIN) | |
356 | 356 | else false) | |
357 | 357 | then throw(("Your account is not registered. status: " + currstatus)) | |
358 | 358 | else if ((currstatus != ADMIN)) | |
359 | 359 | then throw("just admins can close a dispute") | |
360 | 360 | else if ((getKeyItemStatus(item) != "dispute in progress")) | |
361 | 361 | then throw("This work is not under dispute") | |
362 | 362 | else if ((userStatus == BLACKLISTED)) | |
363 | 363 | then throw("user's account has been blacklisted") | |
364 | 364 | else if ((translatorStatus == BLACKLISTED)) | |
365 | 365 | then throw("translator's account has been blacklisted") | |
366 | 366 | else if (if ((QUORUM > getValueItemDisputeVotesTranslator(item))) | |
367 | 367 | then (QUORUM > getValueItemDisputeVotesUser(item)) | |
368 | 368 | else false) | |
369 | 369 | then throw("Votes are not enough to favour any involved part") | |
370 | 370 | else if ((getValueItemDisputeVotesTranslator(item) >= QUORUM)) | |
371 | 371 | 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))])) | |
372 | 372 | else if ((getValueItemDisputeVotesUser(item) >= QUORUM)) | |
373 | 373 | 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))])) | |
374 | 374 | 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)) | |
375 | 375 | } | |
376 | 376 | ||
377 | 377 | ||
378 | 378 | ||
379 | 379 | @Callable(i) | |
380 | 380 | func voteDisputeEscrow (item,vote) = { | |
381 | 381 | let caller = toBase58String(i.caller.bytes) | |
382 | 382 | if ((getValueItemStatus(item) == "dispute closed")) | |
383 | 383 | then throw("this dispute is closed") | |
384 | 384 | else if (if ((getValueWhitelistStatus(caller) != MODERATOR)) | |
385 | 385 | then true | |
386 | 386 | else (getValueWhitelistStatus(caller) != ADMIN)) | |
387 | 387 | then throw("you either need to be an ADMIN or a MODERATOR to vote in disputes") | |
388 | 388 | else if (if ((getValueItemStatus(item) != "dispute in progress")) | |
389 | 389 | then true | |
390 | 390 | else (getValueItemStatus(item) != "dispute still under review")) | |
391 | 391 | then throw("translation work not under dispute") | |
392 | 392 | else if ((getValueItemDisputeVotesTranslator(item) >= QUORUM)) | |
393 | 393 | then throw("Votes are enough to favour the Translator") | |
394 | 394 | else if ((getValueItemDisputeVotesUser(item) >= QUORUM)) | |
395 | 395 | then throw("Votes are enough to favour the User") | |
396 | 396 | else if ((vote == getValueItemAuthor(item))) | |
397 | 397 | then WriteSet([DataEntry(getKeyItemDisputeVotesUser(item), (getValueItemDisputeVotesUser(item) + 1))]) | |
398 | 398 | else if ((vote == getValueItemTranslator(item))) | |
399 | 399 | then WriteSet([DataEntry(getKeyItemDisputeVotesTranslator(item), (getValueItemDisputeVotesTranslator(item) + 1))]) | |
400 | 400 | else throw("vote not submitted") | |
401 | 401 | } | |
402 | 402 | ||
403 | 403 | ||
404 | 404 | ||
405 | 405 | @Callable(i) | |
406 | 406 | func withdrawEscrow (address,item) = { | |
407 | 407 | let caller = toBase58String(i.caller.bytes) | |
408 | 408 | let assetID = getValueItemAssetID(item) | |
409 | 409 | let amount = getValueItemPriceAssetID(item) | |
410 | 410 | let currstatus = getValueWhitelistStatus(caller) | |
411 | 411 | let translatorStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemTranslator(item)) | |
412 | 412 | let userStatus = getExtValueItemWhiteListStatus(oracleWhiteListAddress, getValueItemAuthor(item)) | |
413 | 413 | if (if (if ((currstatus != WHITELISTED)) | |
414 | 414 | then (caller != DAPPADDRESS) | |
415 | 415 | else false) | |
416 | 416 | then (currstatus != ADMIN) | |
417 | 417 | else false) | |
418 | 418 | then throw(("Your account is not registered. status: " + currstatus)) | |
419 | 419 | else if ((getValueItemDueFor(item) > lastBlock.height)) | |
420 | 420 | then throw("Deadline has not finished yet") | |
421 | 421 | else if ((getKeyItemStatus(item) == "dispute in progress")) | |
422 | 422 | then throw("This work is currently under dispute") | |
423 | 423 | else if (if ((caller != getValueItemTranslator(item))) | |
424 | 424 | then true | |
425 | 425 | else (caller != getValueItemAuthor(item))) | |
426 | 426 | then throw("just work creator or translator can withdraw funds. Admins must initiate a dispute") | |
427 | 427 | else if (if ((caller == getValueItemAuthor(item))) | |
428 | 428 | then (userStatus == BLACKLISTED) | |
429 | 429 | else false) | |
430 | 430 | then throw("user's account has been blacklisted") | |
431 | 431 | else if (if ((caller == getValueItemTranslator(item))) | |
432 | 432 | then (translatorStatus == BLACKLISTED) | |
433 | 433 | else false) | |
434 | 434 | then throw("translator's account has been blacklisted") | |
435 | 435 | 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))])) | |
436 | 436 | } | |
437 | 437 | ||
438 | 438 | ||
439 | 439 | ||
440 | 440 | @Callable(i) | |
441 | 441 | func inviteuser (newaccount,data) = { | |
442 | 442 | let caller = toBase58String(i.caller.bytes) | |
443 | 443 | let newstatus = getValueWhitelistStatus(newaccount) | |
444 | 444 | let currstatus = getValueWhitelistStatus(caller) | |
445 | 445 | if (if (if ((newstatus == WHITELISTED)) | |
446 | 446 | then true | |
447 | 447 | else (newstatus == MODERATOR)) | |
448 | 448 | then true | |
449 | 449 | else (newstatus == ADMIN)) | |
450 | 450 | then throw("User has already been registered") | |
451 | 451 | else if ((newstatus == BLACKLISTED)) | |
452 | 452 | then throw("The user you want to invite is already Blacklisted") | |
453 | 453 | else if (if (if ((currstatus != WHITELISTED)) | |
454 | 454 | then (caller != DAPPADDRESS) | |
455 | 455 | else false) | |
456 | 456 | then (currstatus != ADMIN) | |
457 | 457 | else false) | |
458 | 458 | then throw(("Your account should be whitelisted. status: " + currstatus)) | |
459 | 459 | else WriteSet([DataEntry(getKeyWhitelistRef(newaccount), caller), DataEntry(getKeyWhitelistBio(newaccount), data), DataEntry(getKeyWhitelistStatus(newaccount), INVITED)]) | |
460 | 460 | } | |
461 | 461 | ||
462 | 462 | ||
463 | 463 | ||
464 | 464 | @Callable(i) | |
465 | 465 | func userupdate (data,type) = { | |
466 | 466 | let account = toBase58String(i.caller.bytes) | |
467 | 467 | if (if (if ((type == MODERATOR)) | |
468 | 468 | then true | |
469 | 469 | else (type == ADMIN)) | |
470 | 470 | then (getValueWhitelistStatus(account) == WHITELISTED) | |
471 | 471 | else false) | |
472 | 472 | then throw("an ADMIN or MODERATOR account can be created by an ADMIN only") | |
473 | 473 | else if (if ((type == ADMIN)) | |
474 | 474 | then (getValueWhitelistStatus(account) != ADMIN) | |
475 | 475 | else false) | |
476 | 476 | then throw("an ADMIN account can be created by another ADMIN only") | |
477 | 477 | else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistStatus(account), if ((type == MODERATOR)) | |
478 | 478 | then MODERATOR | |
479 | 479 | else if ((type == ADMIN)) | |
480 | 480 | then ADMIN | |
481 | 481 | else WHITELISTED)]) | |
482 | 482 | } | |
483 | 483 | ||
484 | 484 | ||
485 | 485 | ||
486 | 486 | @Callable(i) | |
487 | 487 | func signupbylink (hash,data,type) = { | |
488 | 488 | let account = toBase58String(i.caller.bytes) | |
489 | 489 | let status = getValueWhitelistStatus(hash) | |
490 | 490 | if ((status != INVITED)) | |
491 | 491 | then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(hash)) + ", account:") + hash)) | |
492 | 492 | else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == MODERATOR)) | |
493 | 493 | then MODERATOR | |
494 | 494 | else WHITELISTED), DataEntry(getKeyWhitelistStatus(hash), SPENDINVITE), DataEntry(getKeyWhitelistRef(account), getValueWhitelistRef(hash))]) | |
495 | 495 | } | |
496 | 496 | ||
497 | 497 | ||
498 | 498 | ||
499 | 499 | @Callable(i) | |
500 | 500 | func signup (data,type) = { | |
501 | 501 | let account = toBase58String(i.caller.bytes) | |
502 | 502 | let status = getValueWhitelistStatus(account) | |
503 | 503 | if ((status == NONE)) | |
504 | 504 | then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(account)) + ", account:") + account)) | |
505 | 505 | else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == MODERATOR)) | |
506 | 506 | then MODERATOR | |
507 | 507 | else WHITELISTED)]) | |
508 | 508 | } | |
509 | 509 | ||
510 | 510 | ||
511 | 511 | ||
512 | 512 | @Callable(i) | |
513 | 513 | func reportProject (item,data) = { | |
514 | 514 | let account = toBase58String(i.caller.bytes) | |
515 | 515 | WriteSet([DataEntry(getKeyItemAccReportData(item, account), data)]) | |
516 | 516 | } | |
517 | 517 | ||
518 | 518 |
github/deemru/w8io/169f3d6 72.64 ms ◑