tx · FityeShDcsKFcswhZokiFD8oLeVC3SER8q7RsmCf38c4

3MsdGhmSpPacvoY5WZZtpX3G2kqAFX2KqV2:  -0.01500000 Waves

2021.03.11 07:42 [1432567] smart account 3MsdGhmSpPacvoY5WZZtpX3G2kqAFX2KqV2 > SELF 0.00000000 Waves

{ "type": 13, "id": "FityeShDcsKFcswhZokiFD8oLeVC3SER8q7RsmCf38c4", "fee": 1500000, "feeAssetId": null, "timestamp": 1615437827193, "version": 2, "chainId": 84, "sender": "3MsdGhmSpPacvoY5WZZtpX3G2kqAFX2KqV2", "senderPublicKey": "Bw9uTwFk2dAQySE2V8VcuuWA3QxawvxgsQs6amDfx6MZ", "proofs": [ "5Q2bFFnfqggqvhXsSH8nrQsh2dbPjiBcgEKf59dEJD79xyFiahbf9T3JfXWBRkh195gn2wtszRhFyqFJ3PzqyAQn" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAWAAAAAApkQXBwQWRkcmVzAgAAACtGOURDR2lZZ1Q4eXZCcTFBUUZjU3BHRzRwOHNkek56OW1aY3pEdko0NUxMAAAAAAt0aWNrZXRBc3NldAEAAAAgRhz1lSBi1eJGtOgMmCIyAWadBG7dHU2jIBGpv2KvKCwAAAAADHRva2VuQXNzZXRJZAIAAAAsNWloOWpkNEtWOWtTZXk1NXl2S01nTFNIY3dzWVlrUTRwUkRKdFJOb3hVaHkAAAAADXVzZUdhcmxpY0NvaW4HAAAAAA10b2tlbnNQZXJQbGF5AAAAAAAF9eEAAAAAAA1sb3R0ZXJ5YW1vdW50AgAAAAdfYW1vdW50AAAAABJsb3R0ZXJ5cHJvYmFiaWxpdHkCAAAADF9wcm9iYWJpbGl0eQAAAAAZbG90dGVyeXByb2JhYmlsaXR5ZGVjaW1hbAIAAAAUX3Byb2JhYmlsaXR5X2RlY2ltYWwAAAAAFWxvdHRlcnlXaW5uaW5nQWRkcmVzcwIAAAAQX3dpbm5pbmdfYWRkcmVzcwAAAAAMbG90dGVyeVByaWNlAgAAAAZ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bGF5aW5nITxwPgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAUbGFzdEhhc2hSYW5kb21OdW1iZXIFAAAACnJhbmROdW1iZXIFAAAAA25pbAQAAAALd2luVHJhbnNmZXIJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAACXdyaXRlU2V0cwkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAAAlZb3UgbmVlZCAJAAJYAAAAAQUAAAALdGlja2V0QXNzZXQCAAAAEyB0byBwbGF5IHRoaXMgZ2FtZS4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXk/bs3y", "height": 1432567, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
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 tokenAssetId = "5ih9jd4KV9kSey55yvKMgLSHcwsYYkQ4pRDJtRNoxUhy"
9+
10+let useGarlicCoin = false
11+
12+let tokensPerPlay = 100000000
13+
14+let lotteryamount = "_amount"
15+
16+let lotteryprobability = "_probability"
17+
18+let lotteryprobabilitydecimal = "_probability_decimal"
19+
20+let lotteryWinningAddress = "_winning_address"
21+
22+let lotteryPrice = "_price"
23+
24+let lotteryPrices = "_lottery_prices"
25+
26+let lotteryAssetId = "_lottery_asset_id"
27+
28+let countOfPrices = "_count_prices"
29+
30+let lastHashRandomNumber = "last_spin_random_hash"
31+
32+let allowSizeLottery = 2
33+
34+let totalPricesInPool = "total_prizes_pool"
35+
36+let tokenAId = "f2MzwrmN5wiMn5DwbBL33247fdsf432FV9kSe"
37+
38+let tokenBId = "f1MzwrmN4wiMn4DwbBL43242fsdf434Ffsdfs"
39+
40+func randomizer (inv) = {
41+ let lastPlay = match getBinary(this, lastHashRandomNumber) {
42+ case s: ByteVector =>
43+ s
44+ case _: Unit =>
45+ base58'2ee4oFDYriWJ9EMeR'
46+ case _ =>
47+ throw("Match error")
48+ }
49+ let rand = (((((lastPlay + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
50+ sha256(rand)
51+ }
52+
53+
54+func getPriceArray () = {
55+ let currentPrices = match getString(this, lotteryPrices) {
56+ case a: String =>
57+ a
58+ case _: Unit =>
59+ ""
60+ case _ =>
61+ throw("Match error")
62+ }
63+ let sizePrices = size(currentPrices)
64+ if ((sizePrices == 0))
65+ then nil
66+ else {
67+ let trimPrices = take(currentPrices, (size(currentPrices) - 1))
68+ let newArray = split(trimPrices, ",")
69+ newArray
70+ }
71+ }
72+
73+
74+func getCurrentBalance () = if (useGarlicCoin)
75+ then assetBalance(this, fromBase58String(tokenAssetId))
76+ else wavesBalance(this)
77+
78+
79+func procedLottery (win,token) = if (if (isDefined(token))
80+ then true
81+ else (token != ""))
82+ then {
83+ let tokenProbability = getIntegerValue(this, (token + lotteryprobability))
84+ let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal))
85+ let sizeOfWin = size(win)
86+ if ((sizeOfWin == 1))
87+ then {
88+ let randomNumber = win[0]
89+ let convertedRandomNumber = fromBase64String(randomNumber)
90+ let convertedDecimalNumber = (tokenProbabilityDecimal * 1000)
91+ let comparisonNumber = (toInt(convertedRandomNumber) % convertedDecimalNumber)
92+ if ((tokenProbability > comparisonNumber))
93+ then token :: win
94+ else win
95+ }
96+ else win
97+ }
98+ else win
99+
100+
101+@Callable(i)
102+func setGarlicCoinLottery () = {
103+ let balance = getCurrentBalance()
104+ if ((69 > balance))
105+ then throw("Not enought Amount")
106+ else {
107+ let storedTokensValues = ((tokenAId + ",") + tokenBId)
108+ if (useGarlicCoin)
109+ then {
110+ let updateLotteryPool = WriteSet([DataEntry((tokenAId + lotteryprobability), 69), DataEntry((tokenAId + lotteryPrice), 69), DataEntry((tokenAId + lotteryprobabilitydecimal), 10000), DataEntry((tokenAId + lotteryAssetId), tokenAssetId), DataEntry((tokenBId + lotteryamount), 6900000000), DataEntry((tokenBId + lotteryprobability), 69), DataEntry((tokenBId + lotteryPrice), 6900000000), DataEntry((tokenBId + lotteryprobabilitydecimal), 1000), DataEntry((tokenBId + lotteryAssetId), tokenAssetId), DataEntry(lotteryPrices, storedTokensValues), DataEntry(countOfPrices, 2)])
111+ ScriptResult(updateLotteryPool, TransferSet(nil))
112+ }
113+ else {
114+ let updateLotteryPool = WriteSet([DataEntry((tokenAId + lotteryprobability), 69), DataEntry((tokenAId + lotteryPrice), 69), DataEntry((tokenAId + lotteryprobabilitydecimal), 10000), DataEntry((tokenAId + lotteryAssetId), ""), DataEntry((tokenBId + lotteryamount), 6900000000), DataEntry((tokenBId + lotteryprobability), 69), DataEntry((tokenBId + lotteryPrice), 6900000000), DataEntry((tokenBId + lotteryprobabilitydecimal), 1000), DataEntry((tokenBId + lotteryAssetId), ""), DataEntry(lotteryPrices, storedTokensValues), DataEntry(countOfPrices, 2)])
115+ ScriptResult(updateLotteryPool, TransferSet(nil))
116+ }
117+ }
118+ }
119+
120+
121+
122+@Callable(i)
123+func startlotto () = {
124+ let paymentIsDefined = if (!(isDefined(i.payment)))
125+ then false
126+ else true
127+ if ((paymentIsDefined == true))
128+ then {
129+ let pmt = extract(i.payment)
130+ if (if ((pmt.assetId != ticketAsset))
131+ then true
132+ else (pmt.amount != tokensPerPlay))
133+ then throw("Incorrect asset passed or incorrect quantity passed")
134+ else {
135+ let currentKey = toBase58String(i.caller.bytes)
136+ let randhash = randomizer(i)
137+ let countTokens = match getInteger(this, countOfPrices) {
138+ case a: Int =>
139+ a
140+ case _: Unit =>
141+ 0
142+ case _ =>
143+ throw("Match error")
144+ }
145+ let priceList = getPriceArray()
146+ let randNumber = toBase64String(randhash)
147+ let updNumber = fromBase64String(randNumber)
148+ let listWinningPrices = [randNumber]
149+ let winningToken = {
150+ let $list60946146 = priceList
151+ let $size60946146 = size($list60946146)
152+ let $acc060946146 = listWinningPrices
153+ if (($size60946146 == 0))
154+ then $acc060946146
155+ else {
156+ let $acc160946146 = procedLottery($acc060946146, $list60946146[0])
157+ if (($size60946146 == 1))
158+ then $acc160946146
159+ else {
160+ let $acc260946146 = procedLottery($acc160946146, $list60946146[1])
161+ if (($size60946146 == 2))
162+ then $acc260946146
163+ else {
164+ let $acc360946146 = procedLottery($acc260946146, $list60946146[2])
165+ if (($size60946146 == 3))
166+ then $acc360946146
167+ else {
168+ let $acc460946146 = procedLottery($acc360946146, $list60946146[3])
169+ if (($size60946146 == 4))
170+ then $acc460946146
171+ else {
172+ let $acc560946146 = procedLottery($acc460946146, $list60946146[4])
173+ throw("List size exceed 4")
174+ }
175+ }
176+ }
177+ }
178+ }
179+ }
180+ let sizeOfWinPrices = size(winningToken)
181+ if ((sizeOfWinPrices == 1))
182+ then {
183+ let writeSets = WriteSet([DataEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing!<p>"), DataEntry(lastHashRandomNumber, randNumber)])
184+ ScriptResult(writeSets, TransferSet(nil))
185+ }
186+ else {
187+ let token = winningToken[0]
188+ let callerAddress = toBase58String(i.caller.bytes)
189+ let addressBalance = getCurrentBalance()
190+ if ((addressBalance == 0))
191+ then throw("Not Enough Garlic Coin")
192+ else if ((token == tokenAId))
193+ then {
194+ let lotteryPriceTokenA = match getInteger(this, (tokenAId + lotteryPrice)) {
195+ case t: Int =>
196+ t
197+ case _: Unit =>
198+ 0
199+ case _ =>
200+ throw("Match error")
201+ }
202+ let winningAmount = (lotteryPriceTokenA * addressBalance)
203+ let writeSets = WriteSet([DataEntry((token + lotteryamount), winningAmount), DataEntry((token + lotteryWinningAddress), callerAddress), DataEntry(lastHashRandomNumber, randNumber), DataEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + toString(winningAmount)) + " ") + token) + "!<p>"))])
204+ if (useGarlicCoin)
205+ then {
206+ let winTransfer = TransferSet([ScriptTransfer(i.caller, winningAmount, fromBase58String(tokenAssetId))])
207+ ScriptResult(writeSets, winTransfer)
208+ }
209+ else {
210+ let winTransfer = TransferSet([ScriptTransfer(i.caller, winningAmount, unit)])
211+ ScriptResult(writeSets, winTransfer)
212+ }
213+ }
214+ else if ((token == tokenBId))
215+ then {
216+ let lotteryPriceTokenB = match getInteger(this, (tokenBId + lotteryprobability)) {
217+ case t: Int =>
218+ t
219+ case _: Unit =>
220+ 0
221+ case _ =>
222+ throw("Match error")
223+ }
224+ let writeSets = WriteSet([DataEntry((token + lotteryamount), lotteryPriceTokenB), DataEntry(lastHashRandomNumber, randNumber), DataEntry((token + lotteryWinningAddress), callerAddress), DataEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + toString(lotteryPriceTokenB)) + " ") + token) + "!<p>"))])
225+ if (useGarlicCoin)
226+ then {
227+ let winTransfer = TransferSet([ScriptTransfer(i.caller, lotteryPriceTokenB, fromBase58String(tokenAssetId))])
228+ ScriptResult(writeSets, winTransfer)
229+ }
230+ else {
231+ let winTransfer = TransferSet([ScriptTransfer(i.caller, lotteryPriceTokenB, unit)])
232+ ScriptResult(writeSets, winTransfer)
233+ }
234+ }
235+ else {
236+ let writeSets = WriteSet([DataEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing!<p>"), DataEntry(lastHashRandomNumber, randNumber)])
237+ let winTransfer = TransferSet(nil)
238+ ScriptResult(writeSets, TransferSet(nil))
239+ }
240+ }
241+ }
242+ }
243+ else throw((("You need " + toBase58String(ticketAsset)) + " to play this game."))
244+ }
245+
246+
247+@Verifier(tx)
248+func verify () = match tx {
249+ case _ =>
250+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
251+}
252+

github/deemru/w8io/169f3d6 
38.96 ms