tx · bi7EdMBXRFPCeUCjF33g4UF5yWPAtGLAUTqKyU4VjQ5 3MrMD48DoZKGN1VSnLDXkwxThwUjxHM9PL9: -0.01500000 Waves 2021.03.11 05:34 [1432444] smart account 3MrMD48DoZKGN1VSnLDXkwxThwUjxHM9PL9 > SELF 0.00000000 Waves
{ "type": 13, "id": "bi7EdMBXRFPCeUCjF33g4UF5yWPAtGLAUTqKyU4VjQ5", "fee": 1500000, "feeAssetId": null, "timestamp": 1615430179474, "version": 2, "chainId": 84, "sender": "3MrMD48DoZKGN1VSnLDXkwxThwUjxHM9PL9", "senderPublicKey": "Brre1RwbhN364hWzAwtq57PUf44tHPu9G8Zi3PM4ek6i", "proofs": [ "4W6ZHNszNyaqEVYYydQ5A8qgy4UaY4mpLJpC4K9wBMqgdfBioJPH7ymDy66wDvdawQt3SWW5szGpFPddwC7kBz8k" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAUAAAAAApkQXBwQWRkcmVzAgAAACtGOURDR2lZZ1Q4eXZCcTFBUUZjU3BHRzRwOHNkek56OW1aY3pEdko0NUxMAAAAAAt0aWNrZXRBc3NldAEAAAAgRhz1lSBi1eJGtOgMmCIyAWadBG7dHU2jIBGpv2KvKCwAAAAADHRva2VuQXNzZXRJZAEAAAAgRhz1lSBi1eJGtOgMmCIyAWadBG7dHU2jIBGpv2KvKCwAAAAADXRva2Vuc1BlclBsYXkAAAAAAAX14QAAAAAADWxvdHRlcnlhbW91bnQCAAAAB19hbW91bnQAAAAAEmxvdHRlcnlwcm9iYWJpbGl0eQIAAAAMX3Byb2JhYmlsaXR5AAAAABlsb3R0ZXJ5cHJvYmFiaWxpdHlkZWNpbWFsAgAAABRfcHJvYmFiaWxpdHlfZGVjaW1hbAAAAAAVbG90dGVyeVdpbm5pbmdBZGRyZXNzAgAAABBfd2lubmluZ19hZGRyZXNzAAAAAAxsb3R0ZXJ5UHJpY2UCAAAABl9wcmljZQAAAAANbG90dGVyeVByaWNlcwIAAAAPX2xvdH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AAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAdtZXNzYWdlAgAAAE08aDE+QmV0dGVyIGx1Y2sgbmV4dCB0aW1lITwvaDE+PGJyPjxwPkludml0ZSBtb3JlIGZyaWVuZHMgdG8ga2VlcCBwbGF5aW5nITxwPgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAUbGFzdEhhc2hSYW5kb21OdW1iZXIFAAAACnJhbmROdW1iZXIFAAAAA25pbAQAAAALd2luVHJhbnNmZXIJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAACXdyaXRlU2V0cwkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAAAlZb3UgbmVlZCAJAAJYAAAAAQUAAAALdGlja2V0QXNzZXQCAAAAEyB0byBwbGF5IHRoaXMgZ2FtZS4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXketYlO", "height": 1432444, "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 allowSizeLottery = 2 | |
31 | + | ||
32 | + | let totalPricesInPool = "total_prizes_pool" | |
33 | + | ||
34 | + | let tokenAId = "f2MzwrmN5wiMn5DwbBL33247fdsf432FV9kSe" | |
35 | + | ||
36 | + | let tokenBId = "f1MzwrmN4wiMn4DwbBL43242fsdf434Ffsdfs" | |
37 | + | ||
38 | + | func randomizer (inv) = { | |
39 | + | let lastPlay = match getBinary(this, lastHashRandomNumber) { | |
40 | + | case s: ByteVector => | |
41 | + | s | |
42 | + | case _: Unit => | |
43 | + | base58'2ee4oFDYriWJ9EMeR' | |
44 | + | case _ => | |
45 | + | throw("Match error") | |
46 | + | } | |
47 | + | let rand = (((((lastPlay + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
48 | + | sha256(rand) | |
49 | + | } | |
50 | + | ||
51 | + | ||
52 | + | func getPriceArray () = { | |
53 | + | let currentPrices = match getString(this, lotteryPrices) { | |
54 | + | case a: String => | |
55 | + | a | |
56 | + | case _: Unit => | |
57 | + | "" | |
58 | + | case _ => | |
59 | + | throw("Match error") | |
60 | + | } | |
61 | + | let sizePrices = size(currentPrices) | |
62 | + | if ((sizePrices == 0)) | |
63 | + | then nil | |
64 | + | else { | |
65 | + | let trimPrices = take(currentPrices, (size(currentPrices) - 1)) | |
66 | + | let newArray = split(trimPrices, ",") | |
67 | + | newArray | |
68 | + | } | |
69 | + | } | |
70 | + | ||
71 | + | ||
72 | + | func procedLottery (win,token) = if (if (isDefined(token)) | |
73 | + | then true | |
74 | + | else (token != "")) | |
75 | + | then { | |
76 | + | let tokenProbability = getIntegerValue(this, (token + lotteryprobability)) | |
77 | + | let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal)) | |
78 | + | let sizeOfWin = size(win) | |
79 | + | if ((sizeOfWin == 1)) | |
80 | + | then { | |
81 | + | let randomNumber = win[0] | |
82 | + | let convertedRandomNumber = fromBase64String(randomNumber) | |
83 | + | let convertedDecimalNumber = (tokenProbabilityDecimal * 1000) | |
84 | + | let comparisonNumber = (toInt(convertedRandomNumber) % convertedDecimalNumber) | |
85 | + | if ((tokenProbability > comparisonNumber)) | |
86 | + | then token :: win | |
87 | + | else win | |
88 | + | } | |
89 | + | else win | |
90 | + | } | |
91 | + | else win | |
92 | + | ||
93 | + | ||
94 | + | @Callable(i) | |
95 | + | func setGarlicCoinLottery () = { | |
96 | + | let balance = wavesBalance(this) | |
97 | + | if ((69 > balance)) | |
98 | + | then throw("Not enought Amount") | |
99 | + | else { | |
100 | + | let storedTokensValues = ((tokenAId + ",") + tokenBId) | |
101 | + | 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)]) | |
102 | + | ScriptResult(updateLotteryPool, TransferSet(nil)) | |
103 | + | } | |
104 | + | } | |
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | @Callable(i) | |
109 | + | func startlotto () = { | |
110 | + | let paymentIsDefined = if (!(isDefined(i.payment))) | |
111 | + | then false | |
112 | + | else true | |
113 | + | if ((paymentIsDefined == true)) | |
114 | + | then { | |
115 | + | let pmt = extract(i.payment) | |
116 | + | if (if ((pmt.assetId != ticketAsset)) | |
117 | + | then true | |
118 | + | else (pmt.amount != tokensPerPlay)) | |
119 | + | then throw("Incorrect asset passed or incorrect quantity passed") | |
120 | + | else { | |
121 | + | let currentKey = toBase58String(i.caller.bytes) | |
122 | + | let randhash = randomizer(i) | |
123 | + | let countTokens = match getInteger(this, countOfPrices) { | |
124 | + | case a: Int => | |
125 | + | a | |
126 | + | case _: Unit => | |
127 | + | 0 | |
128 | + | case _ => | |
129 | + | throw("Match error") | |
130 | + | } | |
131 | + | let priceList = getPriceArray() | |
132 | + | let randNumber = toBase64String(randhash) | |
133 | + | let updNumber = fromBase64String(randNumber) | |
134 | + | let listWinningPrices = [randNumber] | |
135 | + | let winningToken = { | |
136 | + | let $list49334985 = priceList | |
137 | + | let $size49334985 = size($list49334985) | |
138 | + | let $acc049334985 = listWinningPrices | |
139 | + | if (($size49334985 == 0)) | |
140 | + | then $acc049334985 | |
141 | + | else { | |
142 | + | let $acc149334985 = procedLottery($acc049334985, $list49334985[0]) | |
143 | + | if (($size49334985 == 1)) | |
144 | + | then $acc149334985 | |
145 | + | else { | |
146 | + | let $acc249334985 = procedLottery($acc149334985, $list49334985[1]) | |
147 | + | if (($size49334985 == 2)) | |
148 | + | then $acc249334985 | |
149 | + | else { | |
150 | + | let $acc349334985 = procedLottery($acc249334985, $list49334985[2]) | |
151 | + | if (($size49334985 == 3)) | |
152 | + | then $acc349334985 | |
153 | + | else { | |
154 | + | let $acc449334985 = procedLottery($acc349334985, $list49334985[3]) | |
155 | + | if (($size49334985 == 4)) | |
156 | + | then $acc449334985 | |
157 | + | else { | |
158 | + | let $acc549334985 = procedLottery($acc449334985, $list49334985[4]) | |
159 | + | throw("List size exceed 4") | |
160 | + | } | |
161 | + | } | |
162 | + | } | |
163 | + | } | |
164 | + | } | |
165 | + | } | |
166 | + | let sizeOfWinPrices = size(winningToken) | |
167 | + | if ((sizeOfWinPrices == 1)) | |
168 | + | then { | |
169 | + | let writeSets = WriteSet([DataEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing!<p>"), DataEntry(lastHashRandomNumber, randNumber)]) | |
170 | + | ScriptResult(writeSets, TransferSet(nil)) | |
171 | + | } | |
172 | + | else { | |
173 | + | let token = winningToken[0] | |
174 | + | let callerAddress = toBase58String(i.caller.bytes) | |
175 | + | let addressBalance = assetBalance(this, tokenAssetId) | |
176 | + | if ((addressBalance == 0)) | |
177 | + | then throw("Not Enough Garlic Coin") | |
178 | + | else if ((token == tokenAId)) | |
179 | + | then { | |
180 | + | let lotteryPriceTokenA = match getInteger(this, (tokenAId + lotteryPrice)) { | |
181 | + | case t: Int => | |
182 | + | t | |
183 | + | case _: Unit => | |
184 | + | 0 | |
185 | + | case _ => | |
186 | + | throw("Match error") | |
187 | + | } | |
188 | + | let winningAmount = (lotteryPriceTokenA * addressBalance) | |
189 | + | 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>"))]) | |
190 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, winningAmount, tokenAssetId)]) | |
191 | + | ScriptResult(writeSets, winTransfer) | |
192 | + | } | |
193 | + | else if ((token == tokenBId)) | |
194 | + | then { | |
195 | + | let lotteryPriceTokenB = match getInteger(this, (tokenBId + lotteryprobability)) { | |
196 | + | case t: Int => | |
197 | + | t | |
198 | + | case _: Unit => | |
199 | + | 0 | |
200 | + | case _ => | |
201 | + | throw("Match error") | |
202 | + | } | |
203 | + | 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>"))]) | |
204 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, lotteryPriceTokenB, tokenAssetId)]) | |
205 | + | ScriptResult(writeSets, winTransfer) | |
206 | + | } | |
207 | + | else { | |
208 | + | let writeSets = WriteSet([DataEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing!<p>"), DataEntry(lastHashRandomNumber, randNumber)]) | |
209 | + | let winTransfer = TransferSet(nil) | |
210 | + | ScriptResult(writeSets, TransferSet(nil)) | |
211 | + | } | |
212 | + | } | |
213 | + | } | |
214 | + | } | |
215 | + | else throw((("You need " + toBase58String(ticketAsset)) + " to play this game.")) | |
216 | + | } | |
217 | + | ||
218 | + | ||
219 | + | @Verifier(tx) | |
220 | + | func verify () = match tx { | |
221 | + | case _ => | |
222 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
223 | + | } | |
224 | + |
github/deemru/w8io/169f3d6 72.68 ms ◑