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