tx · G14Dqty4MgAMRGpjKv9y3s6CLnftYMCgQfVfzDAqtwK5 3NBB3iv7YDRsD8ZM2Pw2V5eTcsfqh3j2mvF: -0.01400000 Waves 2019.08.06 15:07 [619033] smart account 3NBB3iv7YDRsD8ZM2Pw2V5eTcsfqh3j2mvF > SELF 0.00000000 Waves
{ "type": 13, "id": "G14Dqty4MgAMRGpjKv9y3s6CLnftYMCgQfVfzDAqtwK5", "fee": 1400000, "feeAssetId": null, "timestamp": 1565093178390, "version": 1, "sender": "3NBB3iv7YDRsD8ZM2Pw2V5eTcsfqh3j2mvF", "senderPublicKey": "9i5FpMUFCwhogG5euZDBZKV6NehQN4xX83qvNr8NWipE", "proofs": [ "3hoi6xT9CxG9AgX9ppjwyJxJdKkGhNnK5o3Ehoq4Dg2sXFzDCyFbQ1HgqMPWaoXzZ1FHpyQunnYx5TT4EmecvuAN" ], "script": "base64:AAIDAAAAAAAAAAAAAABYAAAAAAROT05FAgAAAARub25lAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA251bQEAAAALZ2V0U3RyQnlLZXkAAAABAAAAA2tleQQAAAADc3RyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FBQAAAANzdHIBAAAAEmdldEtleVdoaXRlbGlzdFJlZgAAAAEAAAAHYWNjb3VudAkAASwAAAACAgAAAAd3bF9yZWZfBQAAAAdhY2NvdW50AQAAABVnZXRLZXlXaGl0ZWxpc3RTdGF0dXMAAAABAAAAB2FjY291bnQJAAEsAAAAAgIAAAAHd2xf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Jwcm9maXQAAAAAAAAAAAAFAAAAB0NBU0hPVVQFAAAABnN0YXR1cwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAEmdldEtleUl0ZW1BY2NGaW5hbAAAAAIFAAAABGl0ZW0FAAAAB2FjY291bnQFAAAAB0NMQUlNRUQFAAAAA25pbAAAAACNrvi9", "chainId": 84, "height": 619033, "spentComplexity": 0 } View: original | compacted Prev: CjmU8yoBv22cPDW17SVzX43xYMB3AXZVDzkkGFm76PZ1 Next: GKqtaUb3TKEsN6PYdrMLMHbpkeonLC14NEvikfQ9dyuo Diff:
Old | New | Differences | |
---|---|---|---|
217 | 217 | ||
218 | 218 | let WHALE = "whale" | |
219 | 219 | ||
220 | + | let SPENDINVITE = "spend_invite" | |
221 | + | ||
220 | 222 | let NEW = "new" | |
221 | 223 | ||
222 | 224 | let COMMIT = "voting_commit" | |
283 | 285 | then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(hash)) + ", account:") + hash)) | |
284 | 286 | else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == WHALE)) | |
285 | 287 | then WHALE | |
286 | - | else WHITELISTED), DataEntry(getKeyWhitelistStatus(hash), if ((type == WHALE)) | |
287 | - | then WHALE | |
288 | - | else WHITELISTED), DataEntry(getKeyWhitelistRef(account), getValueWhitelistRef(hash))]) | |
288 | + | else WHITELISTED), DataEntry(getKeyWhitelistStatus(hash), SPENDINVITE), DataEntry(getKeyWhitelistRef(account), getValueWhitelistRef(hash))]) | |
289 | 289 | } | |
290 | 290 | ||
291 | 291 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let NONE = "none" | |
5 | 5 | ||
6 | 6 | func getNumberByKey (key) = { | |
7 | 7 | let num = match getInteger(this, key) { | |
8 | 8 | case a: Int => | |
9 | 9 | a | |
10 | 10 | case _ => | |
11 | 11 | 0 | |
12 | 12 | } | |
13 | 13 | num | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func getStrByKey (key) = { | |
18 | 18 | let str = match getString(this, key) { | |
19 | 19 | case a: String => | |
20 | 20 | a | |
21 | 21 | case _ => | |
22 | 22 | NONE | |
23 | 23 | } | |
24 | 24 | str | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func getKeyWhitelistRef (account) = ("wl_ref_" + account) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func getKeyWhitelistStatus (account) = ("wl_sts_" + account) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func getKeyBalance (account) = ("balance_" + account) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func getKeyWhitelistBio (account) = ("wl_bio_" + account) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func getKeyWhitelistBlock (account) = ("wl_blk_" + account) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func getKeyItemAuthor (item) = ("author_" + item) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func getKeyItemBlock (item) = ("block_" + item) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func getKeyItemVotingExpiration (item) = ("expiration_block_" + item) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func getKeyItemBank (item) = ("bank_" + item) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func getKeyItemStatus (item) = ("status_" + item) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func getKeyItemData (item) = ("datajson_" + item) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func getKeyContestData (item) = ("contest_datajson_" + item) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func getKeyItemCrowdExpiration (item) = ("expiration_one_" + item) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func getKeyItemWhaleExpiration (item) = ("expiration_two_" + item) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func getKeyItemNCommits (item) = ("ncommits_" + item) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func getKeyItemAccCommit (item,account) = ((("commit_" + item) + "_") + account) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func getKeyItemAccReveal (item,account) = ((("reveal_" + item) + "_") + account) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func getKeyItemVotesYes (item) = ("cnt_yes_" + item) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func getKeyItemVotesNo (item) = ("cnt_no_" + item) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func getKeyItemAccFinal (item,account) = ((("final_" + item) + "_") + account) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func getKeyItemFundPositive (item) = ("positive_fund_" + item) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func getKeyItemFundNegative (item) = ("negative_fund_" + item) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func getKeyItemAccFundPositive (item,account) = ((getKeyItemFundPositive(item) + "_") + account) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func getKeyItemAccFundNegative (item,account) = ((getKeyItemFundNegative(item) + "_") + account) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func getKeyItemAccReviewsCnt (item,account) = ((("reviews_cnt_" + item) + "_") + account) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func getKeyItemAccReview (item,account) = ((("review_" + item) + "_") + account) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func getKeyItemAccReviewText (item,account,cnt) = ((getKeyItemAccReview(item, account) + "_text_id:") + cnt) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func getKeyItemAccReviewMode (item,account,cnt) = ((getKeyItemAccReview(item, account) + "_mode_id:") + cnt) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func getKeyItemAccReviewTier (item,account,cnt) = ((getKeyItemAccReview(item, account) + "_tier_id:") + cnt) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func getKeyItemAccVoteReviewText (item,account) = (getKeyItemAccReview(item, account) + "_votereview") | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func getKeyItemAccWhaleReviewText (item,account) = (getKeyItemAccReview(item, account) + "_whalereview") | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func getKeyItemBuyoutAmount (item) = ("buyout_amount_" + item) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func getKeyItemAccWinnings (item,account) = ((("winnings_" + item) + "_") + account) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func getValueWhitelistRef (account) = getStrByKey(getKeyWhitelistRef(account)) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func getValueWhitelistStatus (account) = getStrByKey(getKeyWhitelistStatus(account)) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func getValueBalance (account) = getNumberByKey(getKeyBalance(account)) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func getValueWhitelistBio (account) = getStrByKey(getKeyWhitelistBio(account)) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func getValueWhitelistBlock (account) = getStrByKey(getKeyWhitelistBlock(account)) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getValueItemAuthor (item) = getStrByKey(getKeyItemAuthor(item)) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func getValueItemBlock (item) = getNumberByKey(getKeyItemBlock(item)) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func getValueItemVotingExpiration (item) = getNumberByKey(getKeyItemVotingExpiration(item)) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func getValueItemBank (item) = getNumberByKey(getKeyItemBank(item)) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func getValueItemStatus (item) = getStrByKey(getKeyItemStatus(item)) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func getValueItemData (item) = getStrByKey(getKeyItemData(item)) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func getValueItemCrowdExpiration (item) = getNumberByKey(getKeyItemCrowdExpiration(item)) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func getValueItemWhaleExpiration (item) = getNumberByKey(getKeyItemWhaleExpiration(item)) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func getValueItemNCommits (item) = getNumberByKey(getKeyItemNCommits(item)) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func getValueItemAccCommit (item,account) = getStrByKey(getKeyItemAccCommit(item, account)) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func getValueItemAccReveal (item,account) = getStrByKey(getKeyItemAccReveal(item, account)) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func getValueItemVotesYes (item) = getNumberByKey(getKeyItemVotesYes(item)) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func getValueItemVotesNo (item) = getNumberByKey(getKeyItemVotesNo(item)) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func getValueItemAccFinal (item,account) = getStrByKey(getKeyItemAccFinal(item, account)) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func getValueItemFundPositive (item) = getNumberByKey(getKeyItemFundPositive(item)) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func getValueItemFundNegative (item) = getNumberByKey(getKeyItemFundNegative(item)) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func getValueItemAccFundPositive (item,account) = getNumberByKey(getKeyItemAccFundPositive(item, account)) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func getValueItemAccFundNegative (item,account) = getNumberByKey(getKeyItemAccFundNegative(item, account)) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func getValueItemAccReviewsCnt (item,account) = getNumberByKey(getKeyItemAccReviewsCnt(item, account)) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func getValueItemAccReviewText (item,account,cnt) = getStrByKey(getKeyItemAccReviewText(item, account, cnt)) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func getValueItemAccReviewMode (item,account,cnt) = getStrByKey(getKeyItemAccReviewMode(item, account, cnt)) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func getValueItemAccReviewTier (item,account,cnt) = getNumberByKey(getKeyItemAccReviewTier(item, account, cnt)) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func getValueItemBuyoutAmount (item) = getNumberByKey(getKeyItemBuyoutAmount(item)) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func getValueItemAccWinnings (item,account) = getNumberByKey(getKeyItemAccWinnings(item, account)) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | let WHITELISTED = "registered" | |
215 | 215 | ||
216 | 216 | let INVITED = "invited" | |
217 | 217 | ||
218 | 218 | let WHALE = "whale" | |
219 | 219 | ||
220 | + | let SPENDINVITE = "spend_invite" | |
221 | + | ||
220 | 222 | let NEW = "new" | |
221 | 223 | ||
222 | 224 | let COMMIT = "voting_commit" | |
223 | 225 | ||
224 | 226 | let REVEAL = "voting_reveal" | |
225 | 227 | ||
226 | 228 | let FEATURED = "featured" | |
227 | 229 | ||
228 | 230 | let DELISTED = "delisted" | |
229 | 231 | ||
230 | 232 | let CASHOUT = "cashout" | |
231 | 233 | ||
232 | 234 | let BUYOUT = "buyout" | |
233 | 235 | ||
234 | 236 | let FINISHED = "finished" | |
235 | 237 | ||
236 | 238 | let CLAIMED = "claimed" | |
237 | 239 | ||
238 | 240 | let POSITIVE = "positive" | |
239 | 241 | ||
240 | 242 | let NEGATIVE = "negative" | |
241 | 243 | ||
242 | 244 | let GENESIS = "3P8Fvy1yDwNHvVrabe4ek5b9dAwxFjDKV7R" | |
243 | 245 | ||
244 | 246 | let ADMIN = "3P9NDxt9Y6ePfM9hkQysgSvbHJvihr56Z18" | |
245 | 247 | ||
246 | 248 | let VOTERS = 3 | |
247 | 249 | ||
248 | 250 | let QUORUM = 2 | |
249 | 251 | ||
250 | 252 | let TIERS = [(3 * 100000000), (10 * 100000000), (100 * 100000000), (300 * 100000000), (1000 * 100000000)] | |
251 | 253 | ||
252 | 254 | let LISTINGFEE = (3 * 100000000) | |
253 | 255 | ||
254 | 256 | let VOTEBET = (1 * 100000000) | |
255 | 257 | ||
256 | 258 | let MULTIPLIER = 150 | |
257 | 259 | ||
258 | 260 | @Callable(i) | |
259 | 261 | func inviteuser (newaccount,data) = { | |
260 | 262 | let account = toBase58String(i.caller.bytes) | |
261 | 263 | let newstatus = getValueWhitelistStatus(newaccount) | |
262 | 264 | let currstatus = getValueWhitelistStatus(account) | |
263 | 265 | if (if ((newstatus == WHITELISTED)) | |
264 | 266 | then true | |
265 | 267 | else (newstatus == WHALE)) | |
266 | 268 | then throw("User has already been registered") | |
267 | 269 | else if (if (if ((currstatus != WHITELISTED)) | |
268 | 270 | then (account != GENESIS) | |
269 | 271 | else false) | |
270 | 272 | then (currstatus != WHALE) | |
271 | 273 | else false) | |
272 | 274 | then throw(("Your account should be whitelisted. status: " + currstatus)) | |
273 | 275 | else WriteSet([DataEntry(getKeyWhitelistRef(newaccount), account), DataEntry(getKeyWhitelistBio(newaccount), data), DataEntry(getKeyWhitelistStatus(newaccount), INVITED)]) | |
274 | 276 | } | |
275 | 277 | ||
276 | 278 | ||
277 | 279 | ||
278 | 280 | @Callable(i) | |
279 | 281 | func signupbylink (hash,data,type) = { | |
280 | 282 | let account = toBase58String(i.caller.bytes) | |
281 | 283 | let status = getValueWhitelistStatus(hash) | |
282 | 284 | if ((status != INVITED)) | |
283 | 285 | then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(hash)) + ", account:") + hash)) | |
284 | 286 | else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == WHALE)) | |
285 | 287 | then WHALE | |
286 | - | else WHITELISTED), DataEntry(getKeyWhitelistStatus(hash), if ((type == WHALE)) | |
287 | - | then WHALE | |
288 | - | else WHITELISTED), DataEntry(getKeyWhitelistRef(account), getValueWhitelistRef(hash))]) | |
288 | + | else WHITELISTED), DataEntry(getKeyWhitelistStatus(hash), SPENDINVITE), DataEntry(getKeyWhitelistRef(account), getValueWhitelistRef(hash))]) | |
289 | 289 | } | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | ||
293 | 293 | @Callable(i) | |
294 | 294 | func signup (data,type) = { | |
295 | 295 | let account = toBase58String(i.caller.bytes) | |
296 | 296 | let status = getValueWhitelistStatus(account) | |
297 | 297 | if ((status == NONE)) | |
298 | 298 | then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(account)) + ", account:") + account)) | |
299 | 299 | else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == WHALE)) | |
300 | 300 | then WHALE | |
301 | 301 | else WHITELISTED)]) | |
302 | 302 | } | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | ||
306 | 306 | @Callable(i) | |
307 | 307 | func userupdate (data,type) = { | |
308 | 308 | let account = toBase58String(i.caller.bytes) | |
309 | 309 | WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistStatus(account), if ((type == WHALE)) | |
310 | 310 | then WHALE | |
311 | 311 | else WHITELISTED)]) | |
312 | 312 | } | |
313 | 313 | ||
314 | 314 | ||
315 | 315 | ||
316 | 316 | @Callable(i) | |
317 | 317 | func projupdate (item,data) = { | |
318 | 318 | let account = toBase58String(i.caller.bytes) | |
319 | 319 | if ((getValueItemAuthor(item) != account)) | |
320 | 320 | then throw("You're not author") | |
321 | 321 | else WriteSet([DataEntry(getKeyItemData(item), data)]) | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | ||
326 | 326 | @Callable(i) | |
327 | 327 | func contestAddOrUpdate (item,data) = { | |
328 | 328 | let account = toBase58String(i.caller.bytes) | |
329 | 329 | if ((account != ADMIN)) | |
330 | 330 | then throw("You're not admin") | |
331 | 331 | else WriteSet([DataEntry(getKeyContestData(item), data)]) | |
332 | 332 | } | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | ||
336 | 336 | @Callable(i) | |
337 | 337 | func withdraw () = { | |
338 | 338 | let currentKey = toBase58String(i.caller.bytes) | |
339 | 339 | let amount = getValueBalance(currentKey) | |
340 | 340 | if ((0 >= amount)) | |
341 | 341 | then throw("Not enough balance") | |
342 | 342 | else ScriptResult(WriteSet([DataEntry(getKeyBalance(currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, amount, unit)])) | |
343 | 343 | } | |
344 | 344 | ||
345 | 345 | ||
346 | 346 | ||
347 | 347 | @Callable(i) | |
348 | 348 | func additem (item,expVoting,expCrowd,expWhale,data) = { | |
349 | 349 | let account = toBase58String(i.caller.bytes) | |
350 | 350 | let pmt = extract(i.payment) | |
351 | 351 | if (isDefined(pmt.assetId)) | |
352 | 352 | then throw("can use waves only at the moment") | |
353 | 353 | else if ((pmt.amount != LISTINGFEE)) | |
354 | 354 | then throw(((("Please pay exact amount for the listing: " + toString(LISTINGFEE)) + ", actual payment is: ") + toString(pmt.amount))) | |
355 | 355 | else if (!(if (if ((expVoting > 2)) | |
356 | 356 | then (expCrowd > expVoting) | |
357 | 357 | else false) | |
358 | 358 | then (expWhale > expCrowd) | |
359 | 359 | else false)) | |
360 | 360 | then throw("Incorrect time parameters") | |
361 | 361 | else if ((getValueItemAuthor(item) != NONE)) | |
362 | 362 | then throw("Item already exist") | |
363 | 363 | else WriteSet([DataEntry(getKeyItemAuthor(item), account), DataEntry(getKeyItemBlock(item), height), DataEntry(getKeyItemVotingExpiration(item), (height + expVoting)), DataEntry(getKeyItemBank(item), LISTINGFEE), DataEntry(getKeyItemStatus(item), NEW), DataEntry(getKeyItemData(item), data), DataEntry(getKeyItemCrowdExpiration(item), (height + expCrowd)), DataEntry(getKeyItemWhaleExpiration(item), (height + expWhale))]) | |
364 | 364 | } | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | ||
368 | 368 | @Callable(i) | |
369 | 369 | func votecommit (item,hash) = { | |
370 | 370 | let account = toBase58String(i.caller.bytes) | |
371 | 371 | let commits = getValueItemNCommits(item) | |
372 | 372 | let status = getValueItemStatus(item) | |
373 | 373 | let pmt = extract(i.payment) | |
374 | 374 | if (isDefined(pmt.assetId)) | |
375 | 375 | then throw("can use waves only at the moment") | |
376 | 376 | else if ((pmt.amount != (2 * VOTEBET))) | |
377 | 377 | then throw("Not enough funds to vote for a new item") | |
378 | 378 | else if ((height > getValueItemVotingExpiration(item))) | |
379 | 379 | then throw("The voting has expired") | |
380 | 380 | else if ((getValueItemAuthor(item) == account)) | |
381 | 381 | then throw("Cannot vote for own proposal") | |
382 | 382 | else if (if ((status != NEW)) | |
383 | 383 | then (status != COMMIT) | |
384 | 384 | else false) | |
385 | 385 | then throw("Wrong item status for 'commit' action") | |
386 | 386 | else if ((commits >= VOTERS)) | |
387 | 387 | then throw("No more voters for this item") | |
388 | 388 | else if ((getValueItemAccCommit(item, account) != NONE)) | |
389 | 389 | then throw("Can't vote twice") | |
390 | 390 | else WriteSet([DataEntry(getKeyItemStatus(item), if (((commits + 1) == VOTERS)) | |
391 | 391 | then REVEAL | |
392 | 392 | else COMMIT), DataEntry(getKeyItemAccCommit(item, account), hash), DataEntry(getKeyItemNCommits(item), (commits + 1))]) | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | ||
397 | 397 | @Callable(i) | |
398 | 398 | func votereveal (item,vote,salt,review) = { | |
399 | 399 | let ridehash = toBase58String(sha256(toBytes((vote + salt)))) | |
400 | 400 | let account = toBase58String(i.caller.bytes) | |
401 | 401 | let yesmltp = if ((vote == FEATURED)) | |
402 | 402 | then 1 | |
403 | 403 | else 0 | |
404 | 404 | let notmltp = if ((vote == DELISTED)) | |
405 | 405 | then 1 | |
406 | 406 | else 0 | |
407 | 407 | let yescnt = getValueItemVotesYes(item) | |
408 | 408 | let notcnt = getValueItemVotesNo(item) | |
409 | 409 | let newstatus = if ((yescnt >= QUORUM)) | |
410 | 410 | then FEATURED | |
411 | 411 | else if ((notcnt >= QUORUM)) | |
412 | 412 | then DELISTED | |
413 | 413 | else REVEAL | |
414 | 414 | if ((getValueItemAccCommit(item, account) != ridehash)) | |
415 | 415 | then throw("Hashes don't match") | |
416 | 416 | else if ((height > getValueItemVotingExpiration(item))) | |
417 | 417 | then throw("The challenge has expired") | |
418 | 418 | else if ((VOTERS > getValueItemNCommits(item))) | |
419 | 419 | then throw("It's still commit stage") | |
420 | 420 | else if (if ((getValueItemStatus(item) != REVEAL)) | |
421 | 421 | then (getValueItemStatus(item) != newstatus) | |
422 | 422 | else false) | |
423 | 423 | then throw("Wrong item status for 'reveal' action") | |
424 | 424 | else if ((getValueItemAccReveal(item, account) != NONE)) | |
425 | 425 | then throw("Can't vote twice") | |
426 | 426 | else if (if ((vote != FEATURED)) | |
427 | 427 | then (vote != DELISTED) | |
428 | 428 | else false) | |
429 | 429 | then throw("Bad vote result format") | |
430 | 430 | else ScriptResult(WriteSet([DataEntry(getKeyItemAccReveal(item, account), vote), DataEntry(getKeyItemVotesYes(item), (yescnt + yesmltp)), DataEntry(getKeyItemVotesNo(item), (notcnt + notmltp)), DataEntry(getKeyItemStatus(item), newstatus), DataEntry(getKeyItemAccVoteReviewText(item, account), review)]), TransferSet([ScriptTransfer(addressFromStringValue(account), VOTEBET, unit)])) | |
431 | 431 | } | |
432 | 432 | ||
433 | 433 | ||
434 | 434 | ||
435 | 435 | @Callable(i) | |
436 | 436 | func finalizevoting (item,account) = { | |
437 | 437 | let yescnt = getValueItemVotesYes(item) | |
438 | 438 | let notcnt = getValueItemVotesNo(item) | |
439 | 439 | let accvote = getValueItemAccReveal(item, account) | |
440 | 440 | let isauthor = (account == getValueItemAuthor(item)) | |
441 | 441 | let finalstatus = if ((yescnt > QUORUM)) | |
442 | 442 | then FEATURED | |
443 | 443 | else if ((notcnt > QUORUM)) | |
444 | 444 | then DELISTED | |
445 | 445 | else NONE | |
446 | 446 | let mltisnotfullmajority = if (if ((yescnt == VOTERS)) | |
447 | 447 | then true | |
448 | 448 | else (notcnt == VOTERS)) | |
449 | 449 | then 0 | |
450 | 450 | else 1 | |
451 | 451 | let nwinners = if ((finalstatus == FEATURED)) | |
452 | 452 | then yescnt | |
453 | 453 | else if ((finalstatus == DELISTED)) | |
454 | 454 | then notcnt | |
455 | 455 | else 0 | |
456 | 456 | let nloosers = (VOTERS - nwinners) | |
457 | 457 | let mltacciswinner = if ((finalstatus == accvote)) | |
458 | 458 | then 1 | |
459 | 459 | else 0 | |
460 | 460 | let voteprofit = if ((nwinners == 0)) | |
461 | 461 | then 0 | |
462 | 462 | else (mltacciswinner * (VOTEBET + ((mltisnotfullmajority * ((nloosers * VOTEBET) + LISTINGFEE)) / nwinners))) | |
463 | 463 | let authorreturn = (((LISTINGFEE * (if (isauthor) | |
464 | 464 | then 1 | |
465 | 465 | else 0)) * (if ((mltisnotfullmajority == 1)) | |
466 | 466 | then 0 | |
467 | 467 | else 1)) * (if ((finalstatus == FEATURED)) | |
468 | 468 | then 1 | |
469 | 469 | else 0)) | |
470 | 470 | if ((getValueItemVotingExpiration(item) > height)) | |
471 | 471 | then throw("The voting hasn't finished yet") | |
472 | 472 | else if ((getValueItemAccFinal(item, account) == FINISHED)) | |
473 | 473 | then throw("Account has already claimed") | |
474 | 474 | else if (if ((accvote == NONE)) | |
475 | 475 | then !(isauthor) | |
476 | 476 | else false) | |
477 | 477 | then throw("Account hasnot voted, hasnot reveal or isnot author") | |
478 | 478 | else if ((finalstatus == NONE)) | |
479 | 479 | then throw("Voting has expired") | |
480 | 480 | else ScriptResult(WriteSet([DataEntry(getKeyItemAccFinal(item, account), FINISHED)]), TransferSet([ScriptTransfer(addressFromStringValue(account), (voteprofit + authorreturn), unit)])) | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | ||
484 | 484 | ||
485 | 485 | @Callable(i) | |
486 | 486 | func closeexpiredvoting (item,account) = { | |
487 | 487 | let finalstatus = if ((getValueItemVotesYes(item) > QUORUM)) | |
488 | 488 | then FEATURED | |
489 | 489 | else if ((getValueItemVotesNo(item) > QUORUM)) | |
490 | 490 | then DELISTED | |
491 | 491 | else NONE | |
492 | 492 | let accvote = getValueItemAccReveal(item, account) | |
493 | 493 | let isauthor = (account == getValueItemAuthor(item)) | |
494 | 494 | let acccomi = getValueItemAccCommit(item, account) | |
495 | 495 | let hasrevealstage = (getValueItemNCommits(item) == VOTERS) | |
496 | 496 | let authorreturn = (LISTINGFEE * (if (isauthor) | |
497 | 497 | then 1 | |
498 | 498 | else 0)) | |
499 | 499 | let votersreturn1 = ((VOTEBET * (if (hasrevealstage) | |
500 | 500 | then 1 | |
501 | 501 | else 0)) * (if ((accvote != NONE)) | |
502 | 502 | then 1 | |
503 | 503 | else 0)) | |
504 | 504 | let votersreturn2 = (((2 * VOTEBET) * (if (hasrevealstage) | |
505 | 505 | then 0 | |
506 | 506 | else 1)) * (if ((acccomi != NONE)) | |
507 | 507 | then 1 | |
508 | 508 | else 0)) | |
509 | 509 | if ((getValueItemVotingExpiration(item) > height)) | |
510 | 510 | then throw("The voting hasn't finished yet") | |
511 | 511 | else if (if (!(isauthor)) | |
512 | 512 | then (acccomi == NONE) | |
513 | 513 | else false) | |
514 | 514 | then throw("Wrong account or item") | |
515 | 515 | else if ((getValueItemAccFinal(item, account) == FINISHED)) | |
516 | 516 | then throw("Account has already claimed") | |
517 | 517 | else if ((finalstatus != NONE)) | |
518 | 518 | then throw("Wrong item status") | |
519 | 519 | else ScriptResult(WriteSet([DataEntry(getKeyItemAccFinal(item, account), FINISHED)]), TransferSet([ScriptTransfer(addressFromStringValue(account), ((authorreturn + votersreturn1) + votersreturn2), unit)])) | |
520 | 520 | } | |
521 | 521 | ||
522 | 522 | ||
523 | 523 | ||
524 | 524 | @Callable(i) | |
525 | 525 | func donate (item,tier,mode,review) = { | |
526 | 526 | let account = toBase58String(i.caller.bytes) | |
527 | 527 | let pmt = extract(i.payment) | |
528 | 528 | if (isDefined(pmt.assetId)) | |
529 | 529 | then throw("can use waves only at the moment") | |
530 | 530 | else { | |
531 | 531 | let cnt = (getValueItemAccReviewsCnt(item, account) + 1) | |
532 | 532 | let newnegativefund = (getValueItemFundNegative(item) + ((if ((mode == NEGATIVE)) | |
533 | 533 | then 1 | |
534 | 534 | else 0) * pmt.amount)) | |
535 | 535 | let newpositivefund = (getValueItemFundPositive(item) + ((if ((mode == POSITIVE)) | |
536 | 536 | then 1 | |
537 | 537 | else 0) * pmt.amount)) | |
538 | 538 | if ((getValueItemStatus(item) != FEATURED)) | |
539 | 539 | then throw("The project hasn't accepted by community") | |
540 | 540 | else if ((height >= getValueItemCrowdExpiration(item))) | |
541 | 541 | then throw("The time for crowdfunding has expired") | |
542 | 542 | else if ((newnegativefund >= newpositivefund)) | |
543 | 543 | then throw("Negative fund can't be higher than positive fund") | |
544 | 544 | else if (if ((mode != POSITIVE)) | |
545 | 545 | then (mode != NEGATIVE) | |
546 | 546 | else false) | |
547 | 547 | then throw("Wrong mode parameter") | |
548 | 548 | else if ((getValueItemAuthor(item) == account)) | |
549 | 549 | then throw("Can't donate own project") | |
550 | 550 | else if ((pmt.amount != TIERS[(tier - 1)])) | |
551 | 551 | then throw(("The payment must be equal to tier amount: " + toString(TIERS[(tier - 1)]))) | |
552 | 552 | else WriteSet([DataEntry(getKeyItemAccReviewsCnt(item, account), cnt), DataEntry(getKeyItemAccFundPositive(item, account), (getValueItemAccFundPositive(item, account) + ((if ((mode == POSITIVE)) | |
553 | 553 | then 1 | |
554 | 554 | else 0) * pmt.amount))), DataEntry(getKeyItemAccFundNegative(item, account), (getValueItemAccFundNegative(item, account) + ((if ((mode == NEGATIVE)) | |
555 | 555 | then 1 | |
556 | 556 | else 0) * pmt.amount))), DataEntry(getKeyItemFundPositive(item), newpositivefund), DataEntry(getKeyItemFundNegative(item), newnegativefund), DataEntry(getKeyItemAccReviewText(item, account, toString(cnt)), review), DataEntry(getKeyItemAccReviewMode(item, account, toString(cnt)), mode), DataEntry(getKeyItemAccReviewTier(item, account, toString(cnt)), tier)]) | |
557 | 557 | } | |
558 | 558 | } | |
559 | 559 | ||
560 | 560 | ||
561 | 561 | ||
562 | 562 | @Callable(i) | |
563 | 563 | func whale (item,review) = { | |
564 | 564 | let account = toBase58String(i.caller.bytes) | |
565 | 565 | let pmt = extract(i.payment) | |
566 | 566 | if (isDefined(pmt.assetId)) | |
567 | 567 | then throw("can use waves only at the moment") | |
568 | 568 | else if ((getValueItemStatus(item) != FEATURED)) | |
569 | 569 | then throw("The project hasn't accepted by community") | |
570 | 570 | else if ((getValueItemCrowdExpiration(item) > height)) | |
571 | 571 | then throw("The time for crowdfunding has not expired yet") | |
572 | 572 | else if ((height > getValueItemWhaleExpiration(item))) | |
573 | 573 | then throw("The time for grant has expired") | |
574 | 574 | else if ((getValueItemStatus(item) == BUYOUT)) | |
575 | 575 | then throw("Investement has already done") | |
576 | 576 | else if ((((getValueItemFundPositive(item) * MULTIPLIER) / 100) > pmt.amount)) | |
577 | 577 | then throw((("Investement must be more than " + toString(MULTIPLIER)) + "% of supportes funds")) | |
578 | 578 | else WriteSet([DataEntry(getKeyItemStatus(item), BUYOUT), DataEntry(getKeyItemAccWhaleReviewText(item, account), review), DataEntry(getKeyBalance(getValueItemAuthor(item)), (getValueBalance(getValueItemAuthor(item)) + getValueItemFundPositive(item))), DataEntry(getKeyItemBuyoutAmount(item), pmt.amount)]) | |
579 | 579 | } | |
580 | 580 | ||
581 | 581 | ||
582 | 582 | ||
583 | 583 | @Callable(i) | |
584 | 584 | func claimwinnings (item,account) = { | |
585 | 585 | let status = getValueItemStatus(item) | |
586 | 586 | let isbayout = if ((status == BUYOUT)) | |
587 | 587 | then 1 | |
588 | 588 | else 0 | |
589 | 589 | let iscrowdf = if ((status != BUYOUT)) | |
590 | 590 | then 1 | |
591 | 591 | else 0 | |
592 | 592 | let positivefund = getValueItemFundPositive(item) | |
593 | 593 | let negativefund = getValueItemFundNegative(item) | |
594 | 594 | let share = (((isbayout * (getValueItemAccFundPositive(item, account) * 100)) / (if ((0 >= positivefund)) | |
595 | 595 | then 1 | |
596 | 596 | else positivefund)) + ((iscrowdf * (getValueItemAccFundNegative(item, account) * 100)) / (if ((0 >= negativefund)) | |
597 | 597 | then 1 | |
598 | 598 | else negativefund))) | |
599 | 599 | let tmpnegwin = ((negativefund * MULTIPLIER) / 100) | |
600 | 600 | let betprofit = ((isbayout * ((share * negativefund) / 100)) + (iscrowdf * ((share * (if ((positivefund > tmpnegwin)) | |
601 | 601 | then tmpnegwin | |
602 | 602 | else positivefund)) / 100))) | |
603 | 603 | let roiprofit = (isbayout * ((share * getValueItemBuyoutAmount(item)) / 100)) | |
604 | 604 | let authorprofit = (((if ((getValueItemAuthor(item) == account)) | |
605 | 605 | then 1 | |
606 | 606 | else 0) * positivefund) * (if ((status != BUYOUT)) | |
607 | 607 | then 1 | |
608 | 608 | else 0)) | |
609 | 609 | if ((status == DELISTED)) | |
610 | 610 | then throw("The project hasn't accepted by community") | |
611 | 611 | else if (if ((status != BUYOUT)) | |
612 | 612 | then (getValueItemWhaleExpiration(item) >= height) | |
613 | 613 | else false) | |
614 | 614 | then throw("The time for grant has not expired yet") | |
615 | 615 | else if ((0 >= (positivefund + negativefund))) | |
616 | 616 | then throw("The campaign wasn't active") | |
617 | 617 | else WriteSet([DataEntry(getKeyBalance(account), (((getValueBalance(account) + betprofit) + roiprofit) + authorprofit)), DataEntry(getKeyItemStatus(item), if ((authorprofit > 0)) | |
618 | 618 | then CASHOUT | |
619 | 619 | else status), DataEntry(getKeyItemAccFinal(item, account), CLAIMED)]) | |
620 | 620 | } | |
621 | 621 | ||
622 | 622 |
github/deemru/w8io/169f3d6 129.00 ms ◑