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