tx · Cafx3HbtKSMasq4K2MYqEjGUfbYrdZe2hxHTDYuDTKSH 3MuuCyTh913kmXsNHDkXCnioffKipQcVoyp: -0.01500000 Waves 2021.03.12 05:23 [1433862] smart account 3MuuCyTh913kmXsNHDkXCnioffKipQcVoyp > SELF 0.00000000 Waves
{ "type": 13, "id": "Cafx3HbtKSMasq4K2MYqEjGUfbYrdZe2hxHTDYuDTKSH", "fee": 1500000, "feeAssetId": null, "timestamp": 1615515925233, "version": 2, "chainId": 84, "sender": "3MuuCyTh913kmXsNHDkXCnioffKipQcVoyp", "senderPublicKey": "8qDGUMAKhjkXB21LBuTTWz8EbqVRC2KxHqggDVjcXAXx", "proofs": [ "2iZKUCvwGt5PJYGHhNM8UATGii1G4XGScc5dNZEWYbgS5z8JXFdofWZbx1WXachCa6FTo2M3sDz4vNGSYztgEQtb" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAVAAAAAApkQXBwQWRkcmVzAgAAACtGOURDR2lZZ1Q4eXZCcTFBUUZjU3BHRzRwOHNkek56OW1aY3pEdko0NUxMAAAAAAx0b2tlbkFzc2V0SWQCAAAALDVpaDlqZDRLVjlrU2V5NTV5dktNZ0xTSGN3c1lZa1E0cFJESnRSTm94VWh5AAAAAA11c2VHYXJsaWNDb2luBwAAAAANdG9rZW5zUGVyUGxheQAAAAAAAAAAAQAAAAANbG90dGVyeWFtb3VudAIAAAAHX2Ftb3VudAAAAAASbG90dGVyeXByb2JhYmlsaXR5AgAAAAxfcHJvYmFiaWxpdHkAAAAAGWxvdHRlcnlwcm9iYWJpbGl0eWRlY2ltYWwCAAAAFF9wcm9iYWJpbGl0eV9kZWNpbWFsAAAAABVsb3R0ZXJ5V2lubmluZ0FkZHJlc3MCAAAAEF93aW5uaW5nX2FkZHJlc3MAAAAADGxvdHRlcnlQcmljZQIAAAAGX3ByaWNlAAAAAA1sb3R0ZXJ5UHJpY2VzAgAAAA9fbG90dGVyeV9wcmljZXMAAAAADmxvdHRlcnlBc3NldElk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RMb3R0ZXJ5AAAAAgUAAAAPJGFjYzExMTk1MDEyMDAyCQABkQAAAAIFAAAADyRsaXN0MTE5NTAxMjAwMgAAAAAAAAAAAQMJAAAAAAAAAgUAAAAPJHNpemUxMTk1MDEyMDAyAAAAAAAAAAACBQAAAA8kYWNjMjExOTUwMTIwMDIEAAAADyRhY2MzMTE5NTAxMjAwMgkBAAAADXByb2NlZExvdHRlcnkAAAACBQAAAA8kYWNjMjExOTUwMTIwMDIJAAGRAAAAAgUAAAAPJGxpc3QxMTk1MDEyMDAyAAAAAAAAAAACCQAAAgAAAAECAAAAEkxpc3Qgc2l6ZSBleGNlZWQgMgkAAAIAAAABCQABpAAAAAEJAAGQAAAAAQUAAAAMd2lubmluZ1Rva2VuCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAAAlZb3UgbmVlZCAFAAAADHRva2VuQXNzZXRJZAIAAAATIHRvIHBsYXkgdGhpcyBnYW1lLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleeWri1o=", "height": 1433862, "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 tokenAssetId = "5ih9jd4KV9kSey55yvKMgLSHcwsYYkQ4pRDJtRNoxUhy" | |
7 | + | ||
8 | + | let useGarlicCoin = false | |
9 | + | ||
10 | + | let tokensPerPlay = 1 | |
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 getCurrentBalance () = if ((useGarlicCoin == true)) | |
73 | + | then assetBalance(this, fromBase58String(tokenAssetId)) | |
74 | + | else wavesBalance(this) | |
75 | + | ||
76 | + | ||
77 | + | func procedLottery (win,token) = if (if (isDefined(token)) | |
78 | + | then true | |
79 | + | else (token != "")) | |
80 | + | then { | |
81 | + | let tokenProbability = getIntegerValue(this, (token + lotteryprobability)) | |
82 | + | let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal)) | |
83 | + | let sizeOfWin = size(win) | |
84 | + | if ((sizeOfWin == 1)) | |
85 | + | then { | |
86 | + | let randomNumber = win[0] | |
87 | + | let convertedRandomNumber = fromBase64String(randomNumber) | |
88 | + | let convertedDecimalNumber = (tokenProbabilityDecimal * 1000) | |
89 | + | let comparisonNumber = (toInt(convertedRandomNumber) % convertedDecimalNumber) | |
90 | + | if ((tokenProbability > comparisonNumber)) | |
91 | + | then token :: win | |
92 | + | else win | |
93 | + | } | |
94 | + | else win | |
95 | + | } | |
96 | + | else throw("fsdf") | |
97 | + | ||
98 | + | ||
99 | + | @Callable(i) | |
100 | + | func setGarlicCoinLottery () = { | |
101 | + | let balance = getCurrentBalance() | |
102 | + | let randomHash = randomizer(i) | |
103 | + | if ((69 > balance)) | |
104 | + | then throw("Not enought Amount") | |
105 | + | else { | |
106 | + | let storedTokensValues = (((tokenAId + ",") + tokenBId) + ",") | |
107 | + | if (useGarlicCoin) | |
108 | + | then { | |
109 | + | let updateLotteryPool = WriteSet([DataEntry((tokenAId + lotteryprobability), 69), DataEntry((tokenAId + lotteryPrice), 69), DataEntry((tokenAId + lotteryprobabilitydecimal), 100000), DataEntry((tokenAId + lotteryAssetId), tokenAssetId), DataEntry((tokenBId + lotteryprobability), 69), DataEntry((tokenBId + lotteryPrice), 6900000000), DataEntry((tokenBId + lotteryprobabilitydecimal), 10000), DataEntry((tokenBId + lotteryAssetId), tokenAssetId), DataEntry(lastHashRandomNumber, randomHash), DataEntry(lotteryPrices, storedTokensValues), DataEntry(countOfPrices, 2)]) | |
110 | + | ScriptResult(updateLotteryPool, TransferSet(nil)) | |
111 | + | } | |
112 | + | else { | |
113 | + | let updateLotteryPool = WriteSet([DataEntry((tokenAId + lotteryprobability), 69), DataEntry((tokenAId + lotteryPrice), 69), DataEntry((tokenAId + lotteryprobabilitydecimal), 100000), DataEntry((tokenAId + lotteryAssetId), ""), DataEntry((tokenBId + lotteryamount), 6900000000), DataEntry((tokenBId + lotteryprobability), 69), DataEntry((tokenBId + lotteryPrice), 6900000000), DataEntry((tokenBId + lotteryprobabilitydecimal), 10000), DataEntry((tokenBId + lotteryAssetId), ""), DataEntry(lotteryPrices, storedTokensValues), DataEntry(countOfPrices, 2)]) | |
114 | + | ScriptResult(updateLotteryPool, TransferSet(nil)) | |
115 | + | } | |
116 | + | } | |
117 | + | } | |
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | @Callable(i) | |
122 | + | func startlotto () = { | |
123 | + | let paymentIsDefined = if (!(isDefined(i.payment))) | |
124 | + | then false | |
125 | + | else true | |
126 | + | if ((paymentIsDefined == true)) | |
127 | + | then { | |
128 | + | let pmt = extract(i.payment) | |
129 | + | if (isDefined(pmt.assetId)) | |
130 | + | then if ((pmt.amount != tokensPerPlay)) | |
131 | + | then throw("Incorrect asset passed or incorrect quantity passed") | |
132 | + | else if ((fromBase58String(tokenAssetId) != pmt.assetId)) | |
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 priceList = getPriceArray() | |
138 | + | let randNumber = toBase64String(randhash) | |
139 | + | let listWinningPrices = [randNumber] | |
140 | + | let winningToken = { | |
141 | + | let $list61776229 = priceList | |
142 | + | let $size61776229 = size($list61776229) | |
143 | + | let $acc061776229 = listWinningPrices | |
144 | + | if (($size61776229 == 0)) | |
145 | + | then $acc061776229 | |
146 | + | else { | |
147 | + | let $acc161776229 = procedLottery($acc061776229, $list61776229[0]) | |
148 | + | if (($size61776229 == 1)) | |
149 | + | then $acc161776229 | |
150 | + | else { | |
151 | + | let $acc261776229 = procedLottery($acc161776229, $list61776229[1]) | |
152 | + | if (($size61776229 == 2)) | |
153 | + | then $acc261776229 | |
154 | + | else { | |
155 | + | let $acc361776229 = procedLottery($acc261776229, $list61776229[2]) | |
156 | + | if (($size61776229 == 3)) | |
157 | + | then $acc361776229 | |
158 | + | else { | |
159 | + | let $acc461776229 = procedLottery($acc361776229, $list61776229[3]) | |
160 | + | if (($size61776229 == 4)) | |
161 | + | then $acc461776229 | |
162 | + | else { | |
163 | + | let $acc561776229 = procedLottery($acc461776229, $list61776229[4]) | |
164 | + | throw("List size exceed 4") | |
165 | + | } | |
166 | + | } | |
167 | + | } | |
168 | + | } | |
169 | + | } | |
170 | + | } | |
171 | + | let sizeOfWinPrices = size(winningToken) | |
172 | + | if ((sizeOfWinPrices == 1)) | |
173 | + | then { | |
174 | + | let writeSets = WriteSet([DataEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing!<p>"), DataEntry(lastHashRandomNumber, randNumber)]) | |
175 | + | ScriptResult(writeSets, TransferSet(nil)) | |
176 | + | } | |
177 | + | else { | |
178 | + | let token = winningToken[0] | |
179 | + | let callerAddress = toBase58String(i.caller.bytes) | |
180 | + | let addressBalance = getCurrentBalance() | |
181 | + | if ((addressBalance == 0)) | |
182 | + | then throw("Not Enough Garlic Coin") | |
183 | + | else if ((token == tokenAId)) | |
184 | + | then { | |
185 | + | let lotteryPriceTokenA = match getInteger(this, (tokenAId + lotteryPrice)) { | |
186 | + | case t: Int => | |
187 | + | t | |
188 | + | case _: Unit => | |
189 | + | 0 | |
190 | + | case _ => | |
191 | + | throw("Match error") | |
192 | + | } | |
193 | + | let winningAmount = (lotteryPriceTokenA * addressBalance) | |
194 | + | 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>"))]) | |
195 | + | if (useGarlicCoin) | |
196 | + | then { | |
197 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, winningAmount, fromBase58String(tokenAssetId))]) | |
198 | + | ScriptResult(writeSets, winTransfer) | |
199 | + | } | |
200 | + | else { | |
201 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, winningAmount, unit)]) | |
202 | + | ScriptResult(writeSets, winTransfer) | |
203 | + | } | |
204 | + | } | |
205 | + | else if ((token == tokenBId)) | |
206 | + | then { | |
207 | + | let lotteryPriceTokenB = match getInteger(this, (tokenBId + lotteryprobability)) { | |
208 | + | case t: Int => | |
209 | + | t | |
210 | + | case _: Unit => | |
211 | + | 0 | |
212 | + | case _ => | |
213 | + | throw("Match error") | |
214 | + | } | |
215 | + | 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>"))]) | |
216 | + | if (useGarlicCoin) | |
217 | + | then { | |
218 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, lotteryPriceTokenB, fromBase58String(tokenAssetId))]) | |
219 | + | ScriptResult(writeSets, winTransfer) | |
220 | + | } | |
221 | + | else { | |
222 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, lotteryPriceTokenB, unit)]) | |
223 | + | ScriptResult(writeSets, winTransfer) | |
224 | + | } | |
225 | + | } | |
226 | + | else { | |
227 | + | let writeSets = WriteSet([DataEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing!<p>"), DataEntry(lastHashRandomNumber, randNumber)]) | |
228 | + | let winTransfer = TransferSet(nil) | |
229 | + | ScriptResult(writeSets, TransferSet(nil)) | |
230 | + | } | |
231 | + | } | |
232 | + | } | |
233 | + | else if ((pmt.amount != tokensPerPlay)) | |
234 | + | then throw("Incorrect asset passed or incorrect quantity passed") | |
235 | + | else { | |
236 | + | let currentKey = toBase58String(i.caller.bytes) | |
237 | + | let randhash = randomizer(i) | |
238 | + | let priceList = getPriceArray() | |
239 | + | let randNumber = toBase64String(randhash) | |
240 | + | let listWinningPrices = [randNumber] | |
241 | + | let winningToken = { | |
242 | + | let $list1195012002 = priceList | |
243 | + | let $size1195012002 = size($list1195012002) | |
244 | + | let $acc01195012002 = listWinningPrices | |
245 | + | if (($size1195012002 == 0)) | |
246 | + | then $acc01195012002 | |
247 | + | else { | |
248 | + | let $acc11195012002 = procedLottery($acc01195012002, $list1195012002[0]) | |
249 | + | if (($size1195012002 == 1)) | |
250 | + | then $acc11195012002 | |
251 | + | else { | |
252 | + | let $acc21195012002 = procedLottery($acc11195012002, $list1195012002[1]) | |
253 | + | if (($size1195012002 == 2)) | |
254 | + | then $acc21195012002 | |
255 | + | else { | |
256 | + | let $acc31195012002 = procedLottery($acc21195012002, $list1195012002[2]) | |
257 | + | throw("List size exceed 2") | |
258 | + | } | |
259 | + | } | |
260 | + | } | |
261 | + | } | |
262 | + | throw(toString(size(winningToken))) | |
263 | + | } | |
264 | + | } | |
265 | + | else throw((("You need " + tokenAssetId) + " to play this game.")) | |
266 | + | } | |
267 | + | ||
268 | + | ||
269 | + | @Verifier(tx) | |
270 | + | func verify () = match tx { | |
271 | + | case _ => | |
272 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
273 | + | } | |
274 | + |
github/deemru/w8io/169f3d6 24.25 ms ◑