tx · G4CvaxbhgNa67cHprdKARpEvwoa4v2YPdqwDMvXvRMcM 3NAAqDUy3qAY2qcuKjmyxxCUoKAJxVSZz3n: -0.01500000 Waves 2021.03.12 17:05 [1434556] smart account 3NAAqDUy3qAY2qcuKjmyxxCUoKAJxVSZz3n > SELF 0.00000000 Waves
{ "type": 13, "id": "G4CvaxbhgNa67cHprdKARpEvwoa4v2YPdqwDMvXvRMcM", "fee": 1500000, "feeAssetId": null, "timestamp": 1615557901236, "version": 2, "chainId": 84, "sender": "3NAAqDUy3qAY2qcuKjmyxxCUoKAJxVSZz3n", "senderPublicKey": "9WfGBRTpUD2wxZeVuTDUitdhBAMai7yYNmVvQk2hcf9Z", "proofs": [ "4tB1ZjaiDWuCSVPcfYke5C7HJSrJZJrXLxwTdRmnZ1D794yo8MWgPzbpGXFBNwwfKjAmviiAfiLMehLSfVwSHq9Z" ], "script": "base64:AAIDAAAAAAAAABMIARIHCgUBAQEBCBIECgIBARIAAAAAFAAAAAAKZEFwcEFkZHJlcwIAAAArRjlEQ0dpWWdUOHl2QnExQVFGY1NwR0c0cDhzZHpOejltWmN6RHZKNDVMTAAAAAALdGlja2V0QXNzZXQBAAAAIEYc9ZUgYtXiRrToDJgiMgFmnQRu3R1NoyARqb9irygsAAAAAA10b2tlbnNQZXJQbGF5AAAAAAAF9eEAAAAAAA1sb3R0ZXJ5YW1vdW50AgAAAAdfYW1vdW50AAAAABJsb3R0ZXJ5cHJvYmFiaWxpdHkCAAAADF9wcm9iYWJpbGl0eQAAAAAZbG90dGVyeXByb2JhYmlsaXR5ZGVjaW1hbAIAAAAUX3Byb2JhYmlsaXR5X2RlY2ltYWwAAAAADGxvdHRlcnlQcmljZQIAAAAGX3ByaWNlAAAAAA1sb3R0ZXJ5UHJpY2VzAgAAAA9fbG90dGVyeV9wcmljZXMAAAAADmxvdHRlcnlBc3NldElkAgAAABFfbG90dGVyeV9hc3NldF9pZAAAAAANY291bnRPZlByaWNlcwIAAAANX2NvdW50X3ByaWN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9zZW5kZXJQdWJsaWNLZXm9bkN3", "height": 1434556, "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 = 4 | |
29 | + | ||
30 | + | let totalPricesInPool = "total_prizes_pool" | |
31 | + | ||
32 | + | func randomizer (inv) = { | |
33 | + | let lastPlay = match getBinary(this, lastHashRandomNumber) { | |
34 | + | case s: ByteVector => | |
35 | + | s | |
36 | + | case _: Unit => | |
37 | + | base58'2ee4oFDYriWJ9EMeR' | |
38 | + | case _ => | |
39 | + | throw("Match error") | |
40 | + | } | |
41 | + | let rand = (((((lastPlay + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
42 | + | sha256(rand) | |
43 | + | } | |
44 | + | ||
45 | + | ||
46 | + | func getNumberDecimal (number) = if ((number == 1)) | |
47 | + | then "0.0" | |
48 | + | else if ((number == 2)) | |
49 | + | then "0.00" | |
50 | + | else if ((number == 3)) | |
51 | + | then "0.000" | |
52 | + | else if ((number == 4)) | |
53 | + | then "0.0000" | |
54 | + | else if ((number == 5)) | |
55 | + | then "0.00000" | |
56 | + | else if ((number == 6)) | |
57 | + | then "0.000000" | |
58 | + | else if ((number == 7)) | |
59 | + | then "0.0000000" | |
60 | + | else throw("exceed number") | |
61 | + | ||
62 | + | ||
63 | + | func generatorRandomHash (inv) = { | |
64 | + | let lastHashForToken = match getBinary(this, lastTokenRandomHash) { | |
65 | + | case s: ByteVector => | |
66 | + | s | |
67 | + | case _: Unit => | |
68 | + | base58'4dD7osCQzvuXJdTiGfKvTwnKT' | |
69 | + | case _ => | |
70 | + | throw("Match error") | |
71 | + | } | |
72 | + | let rand = (((((lastHashForToken + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
73 | + | sha256(rand) | |
74 | + | } | |
75 | + | ||
76 | + | ||
77 | + | func getPriceArray () = { | |
78 | + | let currentPrices = match getString(this, lotteryPrices) { | |
79 | + | case a: String => | |
80 | + | a | |
81 | + | case _: Unit => | |
82 | + | "" | |
83 | + | case _ => | |
84 | + | throw("Match error") | |
85 | + | } | |
86 | + | let sizePrices = size(currentPrices) | |
87 | + | if ((sizePrices == 0)) | |
88 | + | then nil | |
89 | + | else { | |
90 | + | let trimPrices = take(currentPrices, (size(currentPrices) - 1)) | |
91 | + | let newArray = split(trimPrices, ",") | |
92 | + | newArray | |
93 | + | } | |
94 | + | } | |
95 | + | ||
96 | + | ||
97 | + | func generateNewListOfPrices (token,val) = if (isDefined(val)) | |
98 | + | then { | |
99 | + | let indexOfComma = indexOf(token, ",") | |
100 | + | let tokenAlreadyExist = indexOf(token, val) | |
101 | + | if (if (!(isDefined(indexOfComma))) | |
102 | + | then !(isDefined(tokenAlreadyExist)) | |
103 | + | else false) | |
104 | + | then ((token + val) + ",") | |
105 | + | else if (if (!(isDefined(indexOfComma))) | |
106 | + | then isDefined(tokenAlreadyExist) | |
107 | + | else false) | |
108 | + | then (val + ",") | |
109 | + | else if (if (isDefined(tokenAlreadyExist)) | |
110 | + | then isDefined(indexOfComma) | |
111 | + | else false) | |
112 | + | then token | |
113 | + | else if (if (isDefined(indexOfComma)) | |
114 | + | then !(isDefined(tokenAlreadyExist)) | |
115 | + | else false) | |
116 | + | then ((token + val) + ",") | |
117 | + | else "" | |
118 | + | } | |
119 | + | else token | |
120 | + | ||
121 | + | ||
122 | + | func procedLottery (win,token) = if (if (isDefined(token)) | |
123 | + | then true | |
124 | + | else (token != "")) | |
125 | + | then { | |
126 | + | let tokenProbability = getIntegerValue(this, (token + lotteryprobability)) | |
127 | + | let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal)) | |
128 | + | let sizeOfWin = size(win) | |
129 | + | if ((sizeOfWin == 1)) | |
130 | + | then { | |
131 | + | let randomNumber = win[0] | |
132 | + | let convertedRandomNumber = fromBase64String(randomNumber) | |
133 | + | let convertedDecimalNumber = (tokenProbabilityDecimal * 1000) | |
134 | + | let comparisonNumber = (toInt(convertedRandomNumber) % convertedDecimalNumber) | |
135 | + | if ((tokenProbability > comparisonNumber)) | |
136 | + | then token :: win | |
137 | + | else win | |
138 | + | } | |
139 | + | else win | |
140 | + | } | |
141 | + | else win | |
142 | + | ||
143 | + | ||
144 | + | @Callable(i) | |
145 | + | func updateprobability (probability,amount,poolprice,probDecimal,assetId) = { | |
146 | + | let token = toBase64String(generatorRandomHash(i)) | |
147 | + | let paymentIsDefined = if (!(isDefined(i.payment))) | |
148 | + | then false | |
149 | + | else true | |
150 | + | let lotteryAssetTN = if ((assetId == "")) | |
151 | + | then true | |
152 | + | else false | |
153 | + | let totalRequiredAmount = (amount * poolprice) | |
154 | + | let currentTotalAmount = match getInteger(this, totalPricesInPool) { | |
155 | + | case t: Int => | |
156 | + | t | |
157 | + | case _: Unit => | |
158 | + | 0 | |
159 | + | case _ => | |
160 | + | throw("Match error") | |
161 | + | } | |
162 | + | let updatedTotalAmountPrices = (currentTotalAmount + totalRequiredAmount) | |
163 | + | if ((paymentIsDefined == true)) | |
164 | + | then { | |
165 | + | let payment = extract(i.payment) | |
166 | + | let paymentAssetId = match payment.assetId { | |
167 | + | case a: ByteVector => | |
168 | + | toBase58String(a) | |
169 | + | case _: Unit => | |
170 | + | "" | |
171 | + | case _ => | |
172 | + | throw("Match error") | |
173 | + | } | |
174 | + | let paymentAmount = payment.amount | |
175 | + | if ((paymentAssetId != assetId)) | |
176 | + | then throw("Asset Id not matching with Payment Asset Id") | |
177 | + | else if ((totalRequiredAmount > paymentAmount)) | |
178 | + | then throw("Not enough Asset Amount") | |
179 | + | else { | |
180 | + | let tempValue = match getString(this, lotteryPrices) { | |
181 | + | case a: String => | |
182 | + | a | |
183 | + | case _: Unit => | |
184 | + | "" | |
185 | + | case _ => | |
186 | + | throw("Match error") | |
187 | + | } | |
188 | + | let containKey = indexOf(tempValue, token) | |
189 | + | let storedTokensValues = match containKey { | |
190 | + | case _: Unit => | |
191 | + | ((tempValue + token) + ",") | |
192 | + | case x: Int => | |
193 | + | throw("Token is duplicated") | |
194 | + | case _ => | |
195 | + | throw("Match error") | |
196 | + | } | |
197 | + | let countTokens = match getInteger(this, countOfPrices) { | |
198 | + | case a: Int => | |
199 | + | a | |
200 | + | case _: Unit => | |
201 | + | 0 | |
202 | + | case _ => | |
203 | + | throw("Match error") | |
204 | + | } | |
205 | + | if ((allowSizeLottery > countTokens)) | |
206 | + | then { | |
207 | + | 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), DataEntry(totalPricesInPool, updatedTotalAmountPrices)]) | |
208 | + | ScriptResult(updateLotteryPool, TransferSet(nil)) | |
209 | + | } | |
210 | + | else throw(("Lottery prices has reached maximum " + toString(allowSizeLottery))) | |
211 | + | } | |
212 | + | } | |
213 | + | else { | |
214 | + | let tnBalance = if (lotteryAssetTN) | |
215 | + | then wavesBalance(this) | |
216 | + | else assetBalance(this, fromBase64String(assetId)) | |
217 | + | if ((totalRequiredAmount > tnBalance)) | |
218 | + | then throw("Not enough Asset Amount") | |
219 | + | else { | |
220 | + | let tempValue = match getString(this, lotteryPrices) { | |
221 | + | case a: String => | |
222 | + | a | |
223 | + | case _: Unit => | |
224 | + | "" | |
225 | + | case _ => | |
226 | + | throw("Match error") | |
227 | + | } | |
228 | + | let containKey = indexOf(tempValue, token) | |
229 | + | let storedTokensValues = match containKey { | |
230 | + | case _: Unit => | |
231 | + | ((tempValue + token) + ",") | |
232 | + | case x: Int => | |
233 | + | throw("Token is duplicated") | |
234 | + | case _ => | |
235 | + | throw("Match error") | |
236 | + | } | |
237 | + | let countTokens = match getInteger(this, countOfPrices) { | |
238 | + | case a: Int => | |
239 | + | a | |
240 | + | case _: Unit => | |
241 | + | 0 | |
242 | + | case _ => | |
243 | + | throw("Match error") | |
244 | + | } | |
245 | + | if ((allowSizeLottery > countTokens)) | |
246 | + | then { | |
247 | + | 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), DataEntry(totalPricesInPool, updatedTotalAmountPrices)]) | |
248 | + | ScriptResult(updateLotteryPool, TransferSet(nil)) | |
249 | + | } | |
250 | + | else throw(("Lottery prices has reached maximum " + toString(allowSizeLottery))) | |
251 | + | } | |
252 | + | } | |
253 | + | } | |
254 | + | ||
255 | + | ||
256 | + | ||
257 | + | @Callable(i) | |
258 | + | func testVal (tokenAmount,decimalVal) = { | |
259 | + | let tokenAmountSize = size(toString(tokenAmount)) | |
260 | + | if ((tokenAmountSize > decimalVal)) | |
261 | + | then { | |
262 | + | let sufixAmount = takeRight(toString(tokenAmount), decimalVal) | |
263 | + | let prefixNumber = take(toString(tokenAmount), (size(toString(tokenAmount)) - decimalVal)) | |
264 | + | let finaResult = ((prefixNumber + ".") + sufixAmount) | |
265 | + | let writeSets = WriteSet([DataEntry(toString(tokenAmount), finaResult)]) | |
266 | + | ScriptResult(writeSets, TransferSet(nil)) | |
267 | + | } | |
268 | + | else if ((tokenAmountSize == decimalVal)) | |
269 | + | then { | |
270 | + | let valTemp = (decimalVal - tokenAmountSize) | |
271 | + | let finalResult = ("0." + toString(tokenAmount)) | |
272 | + | let writeSets = WriteSet([DataEntry(toString(tokenAmount), finalResult)]) | |
273 | + | ScriptResult(writeSets, TransferSet(nil)) | |
274 | + | } | |
275 | + | else { | |
276 | + | let diffPriceAndDecimal = (decimalVal - tokenAmountSize) | |
277 | + | let prefixAmount = getNumberDecimal(diffPriceAndDecimal) | |
278 | + | let finalResult = (prefixAmount + toString(tokenAmount)) | |
279 | + | let writeSets = WriteSet([DataEntry(toString(tokenAmount), finalResult)]) | |
280 | + | ScriptResult(writeSets, TransferSet(nil)) | |
281 | + | } | |
282 | + | } | |
283 | + | ||
284 | + | ||
285 | + | ||
286 | + | @Callable(i) | |
287 | + | func startlotto () = { | |
288 | + | let paymentIsDefined = if (!(isDefined(i.payment))) | |
289 | + | then false | |
290 | + | else true | |
291 | + | if ((paymentIsDefined == true)) | |
292 | + | then { | |
293 | + | let pmt = extract(i.payment) | |
294 | + | if (if ((pmt.assetId != ticketAsset)) | |
295 | + | then true | |
296 | + | else (pmt.amount != tokensPerPlay)) | |
297 | + | then throw("Incorrect asset passed or incorrect quantity passed") | |
298 | + | else { | |
299 | + | let currentKey = toBase58String(i.caller.bytes) | |
300 | + | let randhash = randomizer(i) | |
301 | + | let countTokens = match getInteger(this, countOfPrices) { | |
302 | + | case a: Int => | |
303 | + | a | |
304 | + | case _: Unit => | |
305 | + | 0 | |
306 | + | case _ => | |
307 | + | throw("Match error") | |
308 | + | } | |
309 | + | let priceList = getPriceArray() | |
310 | + | let randNumber = toBase64String(randhash) | |
311 | + | let updNumber = fromBase64String(randNumber) | |
312 | + | let listWinningPrices = [randNumber] | |
313 | + | let winningToken = { | |
314 | + | let $list1116611218 = priceList | |
315 | + | let $size1116611218 = size($list1116611218) | |
316 | + | let $acc01116611218 = listWinningPrices | |
317 | + | if (($size1116611218 == 0)) | |
318 | + | then $acc01116611218 | |
319 | + | else { | |
320 | + | let $acc11116611218 = procedLottery($acc01116611218, $list1116611218[0]) | |
321 | + | if (($size1116611218 == 1)) | |
322 | + | then $acc11116611218 | |
323 | + | else { | |
324 | + | let $acc21116611218 = procedLottery($acc11116611218, $list1116611218[1]) | |
325 | + | if (($size1116611218 == 2)) | |
326 | + | then $acc21116611218 | |
327 | + | else { | |
328 | + | let $acc31116611218 = procedLottery($acc21116611218, $list1116611218[2]) | |
329 | + | if (($size1116611218 == 3)) | |
330 | + | then $acc31116611218 | |
331 | + | else { | |
332 | + | let $acc41116611218 = procedLottery($acc31116611218, $list1116611218[3]) | |
333 | + | if (($size1116611218 == 4)) | |
334 | + | then $acc41116611218 | |
335 | + | else { | |
336 | + | let $acc51116611218 = procedLottery($acc41116611218, $list1116611218[4]) | |
337 | + | throw("List size exceed 4") | |
338 | + | } | |
339 | + | } | |
340 | + | } | |
341 | + | } | |
342 | + | } | |
343 | + | } | |
344 | + | let sizeOfWinPrices = size(winningToken) | |
345 | + | if ((sizeOfWinPrices == 1)) | |
346 | + | then { | |
347 | + | let writeSets = WriteSet([DataEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing.<p>"), DataEntry(lastHashRandomNumber, randNumber)]) | |
348 | + | ScriptResult(writeSets, TransferSet(nil)) | |
349 | + | } | |
350 | + | else { | |
351 | + | let token = winningToken[0] | |
352 | + | let currentAmount = getIntegerValue(this, (token + lotteryamount)) | |
353 | + | if ((currentAmount == 0)) | |
354 | + | then throw("Amount exceeded") | |
355 | + | else { | |
356 | + | let actualAmount = (currentAmount - 1) | |
357 | + | let tokenWonAmount = getIntegerValue(this, (token + lotteryPrice)) | |
358 | + | let tokenAssetId = getStringValue(this, (token + lotteryAssetId)) | |
359 | + | let currentTotalAmount = match getInteger(this, totalPricesInPool) { | |
360 | + | case t: Int => | |
361 | + | t | |
362 | + | case _: Unit => | |
363 | + | 0 | |
364 | + | case _ => | |
365 | + | throw("Match error") | |
366 | + | } | |
367 | + | let updatedAmount = (currentTotalAmount - tokenWonAmount) | |
368 | + | if ((actualAmount == 0)) | |
369 | + | then { | |
370 | + | let storedTokensValues = { | |
371 | + | let $list1285912909 = priceList | |
372 | + | let $size1285912909 = size($list1285912909) | |
373 | + | let $acc01285912909 = token | |
374 | + | if (($size1285912909 == 0)) | |
375 | + | then $acc01285912909 | |
376 | + | else { | |
377 | + | let $acc11285912909 = generateNewListOfPrices($acc01285912909, $list1285912909[0]) | |
378 | + | if (($size1285912909 == 1)) | |
379 | + | then $acc11285912909 | |
380 | + | else { | |
381 | + | let $acc21285912909 = generateNewListOfPrices($acc11285912909, $list1285912909[1]) | |
382 | + | if (($size1285912909 == 2)) | |
383 | + | then $acc21285912909 | |
384 | + | else { | |
385 | + | let $acc31285912909 = generateNewListOfPrices($acc21285912909, $list1285912909[2]) | |
386 | + | if (($size1285912909 == 3)) | |
387 | + | then $acc31285912909 | |
388 | + | else { | |
389 | + | let $acc41285912909 = generateNewListOfPrices($acc31285912909, $list1285912909[3]) | |
390 | + | if (($size1285912909 == 4)) | |
391 | + | then $acc41285912909 | |
392 | + | else { | |
393 | + | let $acc51285912909 = generateNewListOfPrices($acc41285912909, $list1285912909[4]) | |
394 | + | throw("List size exceed 4") | |
395 | + | } | |
396 | + | } | |
397 | + | } | |
398 | + | } | |
399 | + | } | |
400 | + | } | |
401 | + | let tokenSize = ((size(storedTokensValues) - size(token)) - 1) | |
402 | + | let updatedPrices = takeRight(storedTokensValues, tokenSize) | |
403 | + | let writeSets = WriteSet([DataEntry(countOfPrices, (countTokens - 1)), DataEntry(lotteryPrices, updatedPrices), DataEntry(lastHashRandomNumber, randNumber), DataEntry(totalPricesInPool, updatedAmount), DataEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + toString(tokenWonAmount)) + " ") + tokenAssetId) + ".<p>"))]) | |
404 | + | if ((tokenAssetId == "")) | |
405 | + | then { | |
406 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenWonAmount, unit)]) | |
407 | + | ScriptResult(writeSets, winTransfer) | |
408 | + | } | |
409 | + | else { | |
410 | + | let actualAssetId = fromBase58String(tokenAssetId) | |
411 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenWonAmount, actualAssetId)]) | |
412 | + | ScriptResult(writeSets, winTransfer) | |
413 | + | } | |
414 | + | } | |
415 | + | else { | |
416 | + | let storedTokensValues = { | |
417 | + | let $list1446814518 = priceList | |
418 | + | let $size1446814518 = size($list1446814518) | |
419 | + | let $acc01446814518 = token | |
420 | + | if (($size1446814518 == 0)) | |
421 | + | then $acc01446814518 | |
422 | + | else { | |
423 | + | let $acc11446814518 = generateNewListOfPrices($acc01446814518, $list1446814518[0]) | |
424 | + | if (($size1446814518 == 1)) | |
425 | + | then $acc11446814518 | |
426 | + | else { | |
427 | + | let $acc21446814518 = generateNewListOfPrices($acc11446814518, $list1446814518[1]) | |
428 | + | if (($size1446814518 == 2)) | |
429 | + | then $acc21446814518 | |
430 | + | else { | |
431 | + | let $acc31446814518 = generateNewListOfPrices($acc21446814518, $list1446814518[2]) | |
432 | + | if (($size1446814518 == 3)) | |
433 | + | then $acc31446814518 | |
434 | + | else { | |
435 | + | let $acc41446814518 = generateNewListOfPrices($acc31446814518, $list1446814518[3]) | |
436 | + | if (($size1446814518 == 4)) | |
437 | + | then $acc41446814518 | |
438 | + | else { | |
439 | + | let $acc51446814518 = generateNewListOfPrices($acc41446814518, $list1446814518[4]) | |
440 | + | throw("List size exceed 4") | |
441 | + | } | |
442 | + | } | |
443 | + | } | |
444 | + | } | |
445 | + | } | |
446 | + | } | |
447 | + | let tokenSize = ((size(storedTokensValues) - size(token)) - 1) | |
448 | + | let updatedPrices = takeRight(storedTokensValues, tokenSize) | |
449 | + | let writeSets = WriteSet([DataEntry((token + lotteryamount), actualAmount), DataEntry(lastHashRandomNumber, randNumber), DataEntry(totalPricesInPool, updatedAmount), DataEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + toString(tokenWonAmount)) + " ") + tokenAssetId) + ".<p>"))]) | |
450 | + | if ((tokenAssetId == "")) | |
451 | + | then { | |
452 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenWonAmount, unit)]) | |
453 | + | ScriptResult(writeSets, winTransfer) | |
454 | + | } | |
455 | + | else { | |
456 | + | let actualAssetId = fromBase58String(tokenAssetId) | |
457 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenWonAmount, actualAssetId)]) | |
458 | + | ScriptResult(writeSets, winTransfer) | |
459 | + | } | |
460 | + | } | |
461 | + | } | |
462 | + | } | |
463 | + | } | |
464 | + | } | |
465 | + | else throw((("You need " + toBase58String(ticketAsset)) + " to play this game.")) | |
466 | + | } | |
467 | + | ||
468 | + | ||
469 | + | @Verifier(tx) | |
470 | + | func verify () = match tx { | |
471 | + | case _ => | |
472 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
473 | + | } | |
474 | + |
github/deemru/w8io/169f3d6 28.18 ms ◑