tx · 2v7dYPd3RN3faUopxnTWZNVPbGbcqA4dPacSYyiiVTZy 3MwAtR4TsCsTsweHLUrAa3Txm8oT5VcJfaB: -0.01500000 Waves 2021.02.10 12:40 [1391914] smart account 3MwAtR4TsCsTsweHLUrAa3Txm8oT5VcJfaB > SELF 0.00000000 Waves
{ "type": 13, "id": "2v7dYPd3RN3faUopxnTWZNVPbGbcqA4dPacSYyiiVTZy", "fee": 1500000, "feeAssetId": null, "timestamp": 1612950035354, "version": 2, "chainId": 84, "sender": "3MwAtR4TsCsTsweHLUrAa3Txm8oT5VcJfaB", "senderPublicKey": "9bGTeZZoBsXzShxXeNoGnNev8C2ZDuevQyPh7cu9Eozi", "proofs": [ "3w17Wg5kqd8CsqXKTnunq4kagNvG99R3WxbzE3C2dB62fWdtx1cQDME9infPGeoea6wAzjH1LXEiVbxPMMCyiBBJ" ], "script": "base64:AAIDAAAAAAAAAA0IARIHCgUBAQEBCBIAAAAAEgAAAAAKZEFwcEFkZHJlcwIAAAArRjlEQ0dpWWdUOHl2QnExQVFGY1NwR0c0cDhzZHpOejltWmN6RHZKNDVMTAAAAAALdGlja2V0QXNzZXQBAAAAIEYc9ZUgYtXiRrToDJgiMgFmnQRu3R1NoyARqb9irygsAAAAAA10b2tlbnNQZXJQbGF5AAAAAAAF9eEAAAAAAA1sb3R0ZXJ5YW1vdW50AgAAAAdfYW1vdW50AAAAABJsb3R0ZXJ5cHJvYmFiaWxpdHkCAAAADF9wcm9iYWJpbGl0eQAAAAAZbG90dGVyeXByb2JhYmlsaXR5ZGVjaW1hbAIAAAAUX3Byb2JhYmlsaXR5X2RlY2ltYWwAAAAADGxvdHRlcnlQcmljZQIAAAAGX3ByaWNlAAAAAA1sb3R0ZXJ5UHJpY2VzAgAAAA9fbG90dGVyeV9wcmljZXMAAAAADmxvdHRlcnlBc3NldElkAgAAABFfbG90dGVyeV9hc3NldF9pZAAAAAANY291bnRPZlByaWNlcwIAAAANX2NvdW50X3ByaWNlcwAAAAAUbGFz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Z2VuZXJhdGVOZXdMaXN0T2ZQcmljZXMAAAACBQAAAA8kYWNjNDEwOTU3MTEwMDcJAAGRAAAAAgUAAAAPJGxpc3QxMDk1NzExMDA3AAAAAAAAAAAEAwkAAAAAAAACBQAAAA8kc2l6ZTEwOTU3MTEwMDcAAAAAAAAAAAUFAAAADyRhY2M1MTA5NTcxMTAwNwQAAAAPJGFjYzYxMDk1NzExMDA3CQEAAAAXZ2VuZXJhdGVOZXdMaXN0T2ZQcmljZXMAAAACBQAAAA8kYWNjNTEwOTU3MTEwMDcJAAGRAAAAAgUAAAAPJGxpc3QxMDk1NzExMDA3AAAAAAAAAAAFCQAAAgAAAAECAAAAEkxpc3Qgc2l6ZSBleGNlZWQgNQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgUAAAASc3RvcmVkVG9rZW5zVmFsdWVzAgAAAAQgOjogBQAAAAV0b2tlbgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQ/ZL+U=", "height": 1391914, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let dAppAddres = "F9DCGiYgT8yvBq1AQFcSpGG4p8sdzNz9mZczDvJ45LL" | |
5 | + | ||
6 | + | let ticketAsset = base58'5ih9jd4KV9kSey55yvKMgLSHcwsYYkQ4pRDJtRNoxUhy' | |
7 | + | ||
8 | + | let tokensPerPlay = 100000000 | |
9 | + | ||
10 | + | let lotteryamount = "_amount" | |
11 | + | ||
12 | + | let lotteryprobability = "_probability" | |
13 | + | ||
14 | + | let lotteryprobabilitydecimal = "_probability_decimal" | |
15 | + | ||
16 | + | let lotteryPrice = "_price" | |
17 | + | ||
18 | + | let lotteryPrices = "_lottery_prices" | |
19 | + | ||
20 | + | let lotteryAssetId = "_lottery_asset_id" | |
21 | + | ||
22 | + | let countOfPrices = "_count_prices" | |
23 | + | ||
24 | + | let lastHashRandomNumber = "last_spin_random_hash" | |
25 | + | ||
26 | + | let lastTokenRandomHash = "last_token_random_hash" | |
27 | + | ||
28 | + | let allowSizeLottery = 5 | |
29 | + | ||
30 | + | func randomizer (inv) = { | |
31 | + | let lastPlay = match getBinary(this, lastHashRandomNumber) { | |
32 | + | case s: ByteVector => | |
33 | + | s | |
34 | + | case _: Unit => | |
35 | + | base58'2ee4oFDYriWJ9EMeR' | |
36 | + | case _ => | |
37 | + | throw("Match error") | |
38 | + | } | |
39 | + | let rand = (((((lastPlay + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
40 | + | sha256(rand) | |
41 | + | } | |
42 | + | ||
43 | + | ||
44 | + | func generatorRandomHash (inv) = { | |
45 | + | let lastHashForToken = match getBinary(this, lastTokenRandomHash) { | |
46 | + | case s: ByteVector => | |
47 | + | s | |
48 | + | case _: Unit => | |
49 | + | base58'4dD7osCQzvuXJdTiGfKvTwnKT' | |
50 | + | case _ => | |
51 | + | throw("Match error") | |
52 | + | } | |
53 | + | let rand = (((((lastHashForToken + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
54 | + | sha256(rand) | |
55 | + | } | |
56 | + | ||
57 | + | ||
58 | + | func getPriceArray () = { | |
59 | + | let tempPrices = getStringValue(this, lotteryPrices) | |
60 | + | let trimPrices = take(tempPrices, (size(tempPrices) - 1)) | |
61 | + | let newArray = split(trimPrices, ",") | |
62 | + | newArray | |
63 | + | } | |
64 | + | ||
65 | + | ||
66 | + | func generateNewListOfPrices (token,val) = { | |
67 | + | let indexOfComma = indexOf(token, ",") | |
68 | + | let isTokenVal = if ((token != val)) | |
69 | + | then true | |
70 | + | else false | |
71 | + | if (if (isDefined(indexOfComma)) | |
72 | + | then isTokenVal | |
73 | + | else false) | |
74 | + | then ((token + val) + ",") | |
75 | + | else if (isTokenVal) | |
76 | + | then (val + ",") | |
77 | + | else "" | |
78 | + | } | |
79 | + | ||
80 | + | ||
81 | + | func procedLottery (win,token) = if (if (isDefined(token)) | |
82 | + | then true | |
83 | + | else (token != "")) | |
84 | + | then { | |
85 | + | let tokenProbability = getIntegerValue(this, (token + lotteryprobability)) | |
86 | + | let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal)) | |
87 | + | let probabilityValue = (tokenProbabilityDecimal * 1000) | |
88 | + | let probCompare = (tokenProbabilityDecimal % probabilityValue) | |
89 | + | let sizeOfWin = size(win) | |
90 | + | if ((sizeOfWin == 1)) | |
91 | + | then { | |
92 | + | let randomNumber = win[0] | |
93 | + | let comp = toInt(fromBase64String(randomNumber)) | |
94 | + | if ((probCompare > comp)) | |
95 | + | then token :: win | |
96 | + | else win | |
97 | + | } | |
98 | + | else win | |
99 | + | } | |
100 | + | else win | |
101 | + | ||
102 | + | ||
103 | + | @Callable(i) | |
104 | + | func updateprobability (probability,amount,poolprice,probDecimal,assetId) = { | |
105 | + | let token = toBase64String(generatorRandomHash(i)) | |
106 | + | let paymentIsDefined = if (!(isDefined(i.payment))) | |
107 | + | then false | |
108 | + | else true | |
109 | + | let lotteryAssetTN = if ((assetId == "")) | |
110 | + | then true | |
111 | + | else false | |
112 | + | let totalRequiredAmount = (amount * poolprice) | |
113 | + | if ((paymentIsDefined == true)) | |
114 | + | then { | |
115 | + | let payment = extract(i.payment) | |
116 | + | let paymentAssetId = match payment.assetId { | |
117 | + | case a: ByteVector => | |
118 | + | toBase58String(a) | |
119 | + | case _: Unit => | |
120 | + | "" | |
121 | + | case _ => | |
122 | + | throw("Match error") | |
123 | + | } | |
124 | + | let paymentAmount = payment.amount | |
125 | + | if ((paymentAssetId != assetId)) | |
126 | + | then throw("Asset Id not matching with Payment Asset Id") | |
127 | + | else if ((totalRequiredAmount > paymentAmount)) | |
128 | + | then throw("Not enough Asset Amount") | |
129 | + | else { | |
130 | + | let tempValue = match getString(this, lotteryPrices) { | |
131 | + | case a: String => | |
132 | + | a | |
133 | + | case _: Unit => | |
134 | + | "" | |
135 | + | case _ => | |
136 | + | throw("Match error") | |
137 | + | } | |
138 | + | let containKey = indexOf(tempValue, token) | |
139 | + | let storedTokensValues = match containKey { | |
140 | + | case _: Unit => | |
141 | + | ((tempValue + token) + ",") | |
142 | + | case x: Int => | |
143 | + | throw("Token is duplicated") | |
144 | + | case _ => | |
145 | + | throw("Match error") | |
146 | + | } | |
147 | + | let countTokens = match getInteger(this, countOfPrices) { | |
148 | + | case a: Int => | |
149 | + | a | |
150 | + | case _: Unit => | |
151 | + | 0 | |
152 | + | case _ => | |
153 | + | throw("Match error") | |
154 | + | } | |
155 | + | if ((allowSizeLottery > countTokens)) | |
156 | + | then { | |
157 | + | let updateLotteryPool = WriteSet([DataEntry((token + lotteryamount), amount), DataEntry((token + lotteryprobability), probability), DataEntry((token + lotteryPrice), poolprice), DataEntry(lotteryPrices, storedTokensValues), DataEntry(countOfPrices, (countTokens + 1)), DataEntry((token + lotteryprobabilitydecimal), probDecimal), DataEntry((token + lotteryAssetId), assetId), DataEntry(lastTokenRandomHash, token)]) | |
158 | + | ScriptResult(updateLotteryPool, TransferSet(nil)) | |
159 | + | } | |
160 | + | else throw(("Lottery prices has reached maximum " + toString(allowSizeLottery))) | |
161 | + | } | |
162 | + | } | |
163 | + | else { | |
164 | + | let tnBalance = if (lotteryAssetTN) | |
165 | + | then wavesBalance(this) | |
166 | + | else assetBalance(this, fromBase64String(assetId)) | |
167 | + | if ((totalRequiredAmount > tnBalance)) | |
168 | + | then throw("Not enough Asset Amount") | |
169 | + | else { | |
170 | + | let tempValue = match getString(this, lotteryPrices) { | |
171 | + | case a: String => | |
172 | + | a | |
173 | + | case _: Unit => | |
174 | + | "" | |
175 | + | case _ => | |
176 | + | throw("Match error") | |
177 | + | } | |
178 | + | let containKey = indexOf(tempValue, token) | |
179 | + | let storedTokensValues = match containKey { | |
180 | + | case _: Unit => | |
181 | + | ((tempValue + token) + ",") | |
182 | + | case x: Int => | |
183 | + | throw("Token is duplicated") | |
184 | + | case _ => | |
185 | + | throw("Match error") | |
186 | + | } | |
187 | + | let countTokens = match getInteger(this, countOfPrices) { | |
188 | + | case a: Int => | |
189 | + | a | |
190 | + | case _: Unit => | |
191 | + | 0 | |
192 | + | case _ => | |
193 | + | throw("Match error") | |
194 | + | } | |
195 | + | if ((allowSizeLottery > countTokens)) | |
196 | + | then { | |
197 | + | let updateLotteryPool = WriteSet([DataEntry((token + lotteryamount), amount), DataEntry((token + lotteryprobability), probability), DataEntry((token + lotteryPrice), poolprice), DataEntry(lotteryPrices, storedTokensValues), DataEntry(countOfPrices, (countTokens + 1)), DataEntry((token + lotteryprobabilitydecimal), probDecimal), DataEntry((token + lotteryAssetId), assetId), DataEntry(lastTokenRandomHash, token)]) | |
198 | + | ScriptResult(updateLotteryPool, TransferSet(nil)) | |
199 | + | } | |
200 | + | else throw(("Lottery prices has reached maximum " + toString(allowSizeLottery))) | |
201 | + | } | |
202 | + | } | |
203 | + | } | |
204 | + | ||
205 | + | ||
206 | + | ||
207 | + | @Callable(i) | |
208 | + | func startlotto () = { | |
209 | + | let currentKey = toBase58String(i.caller.bytes) | |
210 | + | let randhash = randomizer(i) | |
211 | + | let countTokens = match getInteger(this, countOfPrices) { | |
212 | + | case a: Int => | |
213 | + | a | |
214 | + | case _: Unit => | |
215 | + | 0 | |
216 | + | case _ => | |
217 | + | throw("Match error") | |
218 | + | } | |
219 | + | let priceList = getPriceArray() | |
220 | + | let randNumber = toBase64String(randhash) | |
221 | + | let winningToken = { | |
222 | + | let $list83298376 = priceList | |
223 | + | let $size83298376 = size($list83298376) | |
224 | + | let $acc083298376 = [randNumber] | |
225 | + | if (($size83298376 == 0)) | |
226 | + | then $acc083298376 | |
227 | + | else { | |
228 | + | let $acc183298376 = procedLottery($acc083298376, $list83298376[0]) | |
229 | + | if (($size83298376 == 1)) | |
230 | + | then $acc183298376 | |
231 | + | else { | |
232 | + | let $acc283298376 = procedLottery($acc183298376, $list83298376[1]) | |
233 | + | if (($size83298376 == 2)) | |
234 | + | then $acc283298376 | |
235 | + | else { | |
236 | + | let $acc383298376 = procedLottery($acc283298376, $list83298376[2]) | |
237 | + | if (($size83298376 == 3)) | |
238 | + | then $acc383298376 | |
239 | + | else { | |
240 | + | let $acc483298376 = procedLottery($acc383298376, $list83298376[3]) | |
241 | + | if (($size83298376 == 4)) | |
242 | + | then $acc483298376 | |
243 | + | else { | |
244 | + | let $acc583298376 = procedLottery($acc483298376, $list83298376[4]) | |
245 | + | if (($size83298376 == 5)) | |
246 | + | then $acc583298376 | |
247 | + | else { | |
248 | + | let $acc683298376 = procedLottery($acc583298376, $list83298376[5]) | |
249 | + | throw("List size exceed 5") | |
250 | + | } | |
251 | + | } | |
252 | + | } | |
253 | + | } | |
254 | + | } | |
255 | + | } | |
256 | + | } | |
257 | + | let sizeOfWinPrices = size(winningToken) | |
258 | + | if ((sizeOfWinPrices == 1)) | |
259 | + | then { | |
260 | + | let writeSets = WriteSet([DataEntry("message", "Better luck next time!")]) | |
261 | + | ScriptResult(writeSets, TransferSet(nil)) | |
262 | + | } | |
263 | + | else { | |
264 | + | let token = winningToken[0] | |
265 | + | let currentAmount = getIntegerValue(this, (token + lotteryamount)) | |
266 | + | if ((currentAmount == 0)) | |
267 | + | then throw("Amount exceeded") | |
268 | + | else { | |
269 | + | let actualAmount = (currentAmount - 1) | |
270 | + | let tokenPrice = getIntegerValue(this, (token + lotteryPrice)) | |
271 | + | let tokenAssetId = getStringValue(this, (token + lotteryAssetId)) | |
272 | + | if ((actualAmount == 0)) | |
273 | + | then { | |
274 | + | let storedTokensValues = { | |
275 | + | let $list94819531 = priceList | |
276 | + | let $size94819531 = size($list94819531) | |
277 | + | let $acc094819531 = token | |
278 | + | if (($size94819531 == 0)) | |
279 | + | then $acc094819531 | |
280 | + | else { | |
281 | + | let $acc194819531 = generateNewListOfPrices($acc094819531, $list94819531[0]) | |
282 | + | if (($size94819531 == 1)) | |
283 | + | then $acc194819531 | |
284 | + | else { | |
285 | + | let $acc294819531 = generateNewListOfPrices($acc194819531, $list94819531[1]) | |
286 | + | if (($size94819531 == 2)) | |
287 | + | then $acc294819531 | |
288 | + | else { | |
289 | + | let $acc394819531 = generateNewListOfPrices($acc294819531, $list94819531[2]) | |
290 | + | if (($size94819531 == 3)) | |
291 | + | then $acc394819531 | |
292 | + | else { | |
293 | + | let $acc494819531 = generateNewListOfPrices($acc394819531, $list94819531[3]) | |
294 | + | if (($size94819531 == 4)) | |
295 | + | then $acc494819531 | |
296 | + | else { | |
297 | + | let $acc594819531 = generateNewListOfPrices($acc494819531, $list94819531[4]) | |
298 | + | if (($size94819531 == 5)) | |
299 | + | then $acc594819531 | |
300 | + | else { | |
301 | + | let $acc694819531 = generateNewListOfPrices($acc594819531, $list94819531[5]) | |
302 | + | throw("List size exceed 5") | |
303 | + | } | |
304 | + | } | |
305 | + | } | |
306 | + | } | |
307 | + | } | |
308 | + | } | |
309 | + | } | |
310 | + | throw(((storedTokensValues + " :: ") + token)) | |
311 | + | } | |
312 | + | else { | |
313 | + | let storedTokensValues = { | |
314 | + | let $list1095711007 = priceList | |
315 | + | let $size1095711007 = size($list1095711007) | |
316 | + | let $acc01095711007 = token | |
317 | + | if (($size1095711007 == 0)) | |
318 | + | then $acc01095711007 | |
319 | + | else { | |
320 | + | let $acc11095711007 = generateNewListOfPrices($acc01095711007, $list1095711007[0]) | |
321 | + | if (($size1095711007 == 1)) | |
322 | + | then $acc11095711007 | |
323 | + | else { | |
324 | + | let $acc21095711007 = generateNewListOfPrices($acc11095711007, $list1095711007[1]) | |
325 | + | if (($size1095711007 == 2)) | |
326 | + | then $acc21095711007 | |
327 | + | else { | |
328 | + | let $acc31095711007 = generateNewListOfPrices($acc21095711007, $list1095711007[2]) | |
329 | + | if (($size1095711007 == 3)) | |
330 | + | then $acc31095711007 | |
331 | + | else { | |
332 | + | let $acc41095711007 = generateNewListOfPrices($acc31095711007, $list1095711007[3]) | |
333 | + | if (($size1095711007 == 4)) | |
334 | + | then $acc41095711007 | |
335 | + | else { | |
336 | + | let $acc51095711007 = generateNewListOfPrices($acc41095711007, $list1095711007[4]) | |
337 | + | if (($size1095711007 == 5)) | |
338 | + | then $acc51095711007 | |
339 | + | else { | |
340 | + | let $acc61095711007 = generateNewListOfPrices($acc51095711007, $list1095711007[5]) | |
341 | + | throw("List size exceed 5") | |
342 | + | } | |
343 | + | } | |
344 | + | } | |
345 | + | } | |
346 | + | } | |
347 | + | } | |
348 | + | } | |
349 | + | throw(((storedTokensValues + " :: ") + token)) | |
350 | + | } | |
351 | + | } | |
352 | + | } | |
353 | + | } | |
354 | + | ||
355 | + | ||
356 | + | @Verifier(tx) | |
357 | + | func verify () = match tx { | |
358 | + | case _ => | |
359 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
360 | + | } | |
361 | + |
github/deemru/w8io/169f3d6 25.06 ms ◑