tx · 35cKJUk9Vt1MRwVJXEFuqdjbAno1mNhETcb849EnrXAh 3Ms7Nm5af4yvCHhFwByoromB51ffLBf2dVJ: -0.01500000 Waves 2021.03.10 16:11 [1431636] smart account 3Ms7Nm5af4yvCHhFwByoromB51ffLBf2dVJ > SELF 0.00000000 Waves
{ "type": 13, "id": "35cKJUk9Vt1MRwVJXEFuqdjbAno1mNhETcb849EnrXAh", "fee": 1500000, "feeAssetId": null, "timestamp": 1615381913441, "version": 2, "chainId": 84, "sender": "3Ms7Nm5af4yvCHhFwByoromB51ffLBf2dVJ", "senderPublicKey": "4jrS3GsAVL5dwBFkk77ZjecY5VNAyJF9w5DCyaBSn4fG", "proofs": [ "463Zpo2qj7sfFp23sPUQnCtMp4JiVhHisGPA6mzqki5WTpQU4ggTUvthdS8P5oRFEDvVjdWhAygEoUi38g3njTBz" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAWAAAAAApkQXBwQWRkcmVzAgAAACtGOURDR2lZZ1Q4eXZCcTFBUUZjU3BHRzRwOHNkek56OW1aY3pEdko0NUxMAAAAAAt0aWNrZXRBc3NldAEAAAAgRhz1lSBi1eJGtOgMmCIyAWadBG7dHU2jIBGpv2KvKCwAAAAADHRva2VuQXNzZXRJZAEAAAAgRhz1lSBi1eJGtOgMmCIyAWadBG7dHU2jIBGpv2KvKCwAAAAADXRva2Vuc1BlclBsYXkAAAAAAAX14QAAAAAADWxvdHRlcnlhbW91bnQCAAAAB19hbW91bnQAAAAAEmxvdHRlcnlwcm9iYWJpbGl0eQIAAAAMX3Byb2JhYmlsaXR5AAAAABlsb3R0ZXJ5cHJvYmFiaWxpdHlkZWNpbWFsAgAAABRfcHJvYmFiaWxpdHlfZGVjaW1hbAAAAAAVbG90dGVyeVdpbm5pbmdBZGRyZXNzAgAAABBfd2lubmluZ19hZGRyZXNzAAAAAAxsb3R0ZXJ5UHJpY2UCAAAABl9wcmljZQAAAAANbG90dGVyeVByaWNlcwIAAAAPX2xvdHRlcnlf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mROdW1iZXIFAAAAA25pbAQAAAALd2luVHJhbnNmZXIJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAACXdyaXRlU2V0cwUAAAALd2luVHJhbnNmZXIJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAACVlvdSBuZWVkIAkAAlgAAAABBQAAAAt0aWNrZXRBc3NldAIAAAATIHRvIHBsYXkgdGhpcyBnYW1lLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTaHvyo=", "height": 1431636, "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 tokenAssetId = base58'5ih9jd4KV9kSey55yvKMgLSHcwsYYkQ4pRDJtRNoxUhy' | |
9 | + | ||
10 | + | let tokensPerPlay = 100000000 | |
11 | + | ||
12 | + | let lotteryamount = "_amount" | |
13 | + | ||
14 | + | let lotteryprobability = "_probability" | |
15 | + | ||
16 | + | let lotteryprobabilitydecimal = "_probability_decimal" | |
17 | + | ||
18 | + | let lotteryWinningAddress = "_winning_address" | |
19 | + | ||
20 | + | let lotteryPrice = "_price" | |
21 | + | ||
22 | + | let lotteryPrices = "_lottery_prices" | |
23 | + | ||
24 | + | let lotteryAssetId = "_lottery_asset_id" | |
25 | + | ||
26 | + | let countOfPrices = "_count_prices" | |
27 | + | ||
28 | + | let lastHashRandomNumber = "last_spin_random_hash" | |
29 | + | ||
30 | + | let lastTokenRandomHash = "last_token_random_hash" | |
31 | + | ||
32 | + | let allowSizeLottery = 2 | |
33 | + | ||
34 | + | let totalPricesInPool = "total_prizes_pool" | |
35 | + | ||
36 | + | let tokenAId = "9cRhKKXSdEoHSJuUkNDVFD53FDSFG" | |
37 | + | ||
38 | + | let tokenBId = "SdsrnAdMYZ1gSqh985sfbngrt45GT" | |
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 generateNewListOfPrices (token,val) = if (isDefined(val)) | |
75 | + | then { | |
76 | + | let indexOfComma = indexOf(token, ",") | |
77 | + | let tokenAlreadyExist = indexOf(token, val) | |
78 | + | if (if (!(isDefined(indexOfComma))) | |
79 | + | then !(isDefined(tokenAlreadyExist)) | |
80 | + | else false) | |
81 | + | then ((token + val) + ",") | |
82 | + | else if (if (!(isDefined(indexOfComma))) | |
83 | + | then isDefined(tokenAlreadyExist) | |
84 | + | else false) | |
85 | + | then (val + ",") | |
86 | + | else if (if (isDefined(tokenAlreadyExist)) | |
87 | + | then isDefined(indexOfComma) | |
88 | + | else false) | |
89 | + | then token | |
90 | + | else if (if (isDefined(indexOfComma)) | |
91 | + | then !(isDefined(tokenAlreadyExist)) | |
92 | + | else false) | |
93 | + | then ((token + val) + ",") | |
94 | + | else "" | |
95 | + | } | |
96 | + | else token | |
97 | + | ||
98 | + | ||
99 | + | func procedLottery (win,token) = if (if (isDefined(token)) | |
100 | + | then true | |
101 | + | else (token != "")) | |
102 | + | then { | |
103 | + | let tokenProbability = getIntegerValue(this, (token + lotteryprobability)) | |
104 | + | let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal)) | |
105 | + | let sizeOfWin = size(win) | |
106 | + | if ((sizeOfWin == 1)) | |
107 | + | then { | |
108 | + | let randomNumber = win[0] | |
109 | + | let convertedRandomNumber = fromBase64String(randomNumber) | |
110 | + | let convertedDecimalNumber = (tokenProbabilityDecimal * 1000) | |
111 | + | let comparisonNumber = (toInt(convertedRandomNumber) % convertedDecimalNumber) | |
112 | + | if ((tokenProbability > comparisonNumber)) | |
113 | + | then token :: win | |
114 | + | else win | |
115 | + | } | |
116 | + | else win | |
117 | + | } | |
118 | + | else win | |
119 | + | ||
120 | + | ||
121 | + | @Callable(i) | |
122 | + | func setGarlicCoinLottery () = { | |
123 | + | let balance = wavesBalance(this) | |
124 | + | if ((69 > balance)) | |
125 | + | then throw("Not enought Amount") | |
126 | + | else { | |
127 | + | let storedTokensValues = ((tokenAId + ",") + tokenBId) | |
128 | + | 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)]) | |
129 | + | ScriptResult(updateLotteryPool, TransferSet(nil)) | |
130 | + | } | |
131 | + | } | |
132 | + | ||
133 | + | ||
134 | + | ||
135 | + | @Callable(i) | |
136 | + | func startlotto () = { | |
137 | + | let paymentIsDefined = if (!(isDefined(i.payment))) | |
138 | + | then false | |
139 | + | else true | |
140 | + | if ((paymentIsDefined == true)) | |
141 | + | then { | |
142 | + | let pmt = extract(i.payment) | |
143 | + | if (if ((pmt.assetId != ticketAsset)) | |
144 | + | then true | |
145 | + | else (pmt.amount != tokensPerPlay)) | |
146 | + | then throw("Incorrect asset passed or incorrect quantity passed") | |
147 | + | else { | |
148 | + | let currentKey = toBase58String(i.caller.bytes) | |
149 | + | let randhash = randomizer(i) | |
150 | + | let countTokens = match getInteger(this, countOfPrices) { | |
151 | + | case a: Int => | |
152 | + | a | |
153 | + | case _: Unit => | |
154 | + | 0 | |
155 | + | case _ => | |
156 | + | throw("Match error") | |
157 | + | } | |
158 | + | let priceList = getPriceArray() | |
159 | + | let randNumber = toBase64String(randhash) | |
160 | + | let updNumber = fromBase64String(randNumber) | |
161 | + | let listWinningPrices = [randNumber] | |
162 | + | let winningToken = { | |
163 | + | let $list57895841 = priceList | |
164 | + | let $size57895841 = size($list57895841) | |
165 | + | let $acc057895841 = listWinningPrices | |
166 | + | if (($size57895841 == 0)) | |
167 | + | then $acc057895841 | |
168 | + | else { | |
169 | + | let $acc157895841 = procedLottery($acc057895841, $list57895841[0]) | |
170 | + | if (($size57895841 == 1)) | |
171 | + | then $acc157895841 | |
172 | + | else { | |
173 | + | let $acc257895841 = procedLottery($acc157895841, $list57895841[1]) | |
174 | + | if (($size57895841 == 2)) | |
175 | + | then $acc257895841 | |
176 | + | else { | |
177 | + | let $acc357895841 = procedLottery($acc257895841, $list57895841[2]) | |
178 | + | if (($size57895841 == 3)) | |
179 | + | then $acc357895841 | |
180 | + | else { | |
181 | + | let $acc457895841 = procedLottery($acc357895841, $list57895841[3]) | |
182 | + | if (($size57895841 == 4)) | |
183 | + | then $acc457895841 | |
184 | + | else { | |
185 | + | let $acc557895841 = procedLottery($acc457895841, $list57895841[4]) | |
186 | + | throw("List size exceed 4") | |
187 | + | } | |
188 | + | } | |
189 | + | } | |
190 | + | } | |
191 | + | } | |
192 | + | } | |
193 | + | let sizeOfWinPrices = size(winningToken) | |
194 | + | if ((sizeOfWinPrices == 1)) | |
195 | + | then { | |
196 | + | let writeSets = WriteSet([DataEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing!<p>"), DataEntry(lastHashRandomNumber, randNumber)]) | |
197 | + | ScriptResult(writeSets, TransferSet(nil)) | |
198 | + | } | |
199 | + | else { | |
200 | + | let token = winningToken[0] | |
201 | + | let addressBalance = assetBalance(this, tokenAssetId) | |
202 | + | if ((addressBalance == 0)) | |
203 | + | then throw("Not Enough Garlic Coin") | |
204 | + | else if ((token == tokenAId)) | |
205 | + | then { | |
206 | + | let probabilityTokenA = match getInteger(this, (tokenAId + lotteryprobability)) { | |
207 | + | case t: Int => | |
208 | + | t | |
209 | + | case _: Unit => | |
210 | + | 0 | |
211 | + | case _ => | |
212 | + | throw("Match error") | |
213 | + | } | |
214 | + | let winningAmount = (probabilityTokenA * addressBalance) | |
215 | + | let writeSets = WriteSet([DataEntry((token + lotteryamount), winningAmount), DataEntry((token + lotteryWinningAddress), toBase58String(i.caller.bytes)), DataEntry(lastHashRandomNumber, randNumber), DataEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + toString(winningAmount)) + " ") + token) + "!<p>"))]) | |
216 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, winningAmount, tokenAssetId)]) | |
217 | + | ScriptResult(writeSets, winTransfer) | |
218 | + | } | |
219 | + | else if ((token == tokenBId)) | |
220 | + | then { | |
221 | + | let probabilityTokenB = match getInteger(this, (tokenBId + lotteryprobability)) { | |
222 | + | case t: Int => | |
223 | + | t | |
224 | + | case _: Unit => | |
225 | + | 0 | |
226 | + | case _ => | |
227 | + | throw("Match error") | |
228 | + | } | |
229 | + | let winningAmount = (probabilityTokenB * addressBalance) | |
230 | + | let writeSets = WriteSet([DataEntry((token + lotteryamount), winningAmount), DataEntry(lastHashRandomNumber, randNumber), DataEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + toString(winningAmount)) + " ") + token) + "!<p>"))]) | |
231 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, winningAmount, tokenAssetId)]) | |
232 | + | ScriptResult(writeSets, winTransfer) | |
233 | + | } | |
234 | + | else { | |
235 | + | let writeSets = WriteSet([DataEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing!<p>"), DataEntry(lastHashRandomNumber, randNumber)]) | |
236 | + | let winTransfer = TransferSet(nil) | |
237 | + | ScriptResult(writeSets, winTransfer) | |
238 | + | } | |
239 | + | } | |
240 | + | } | |
241 | + | } | |
242 | + | else throw((("You need " + toBase58String(ticketAsset)) + " to play this game.")) | |
243 | + | } | |
244 | + | ||
245 | + | ||
246 | + | @Verifier(tx) | |
247 | + | func verify () = match tx { | |
248 | + | case _ => | |
249 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
250 | + | } | |
251 | + |
github/deemru/w8io/169f3d6 37.19 ms ◑