tx · 5prUjTme2uLDKhUrsNsESAgbUL5CuB3DDdeW4STa94n6

3MrfLFw1uz3BDr45RQLvrRnAwT2nHpB4KiX:  -0.01000000 Waves

2023.06.15 11:53 [2623544] smart account 3MrfLFw1uz3BDr45RQLvrRnAwT2nHpB4KiX > SELF 0.00000000 Waves

{ "type": 13, "id": "5prUjTme2uLDKhUrsNsESAgbUL5CuB3DDdeW4STa94n6", "fee": 1000000, "feeAssetId": null, "timestamp": 1686819223830, "version": 2, "chainId": 84, "sender": "3MrfLFw1uz3BDr45RQLvrRnAwT2nHpB4KiX", "senderPublicKey": "5iiNX4Sz3qZzcerumQLc1y7u9TH2X46jDV4f9Xivtmtv", "proofs": [ "2wVn6mtb2vPYHZUfeJ5fqhCcqron1sNwe5NjbpxwuBAZCzwwjRq7vZCPVC2SHyJZwfwEkYm8BDPjHG9ZXymKqTSU" ], "script": "base64:BgIVCAISAwoBARIGCgQBAREIEgQKAgEBGwEKbnVtVG9XYXZlcwEDbnVtCQBoAgUDbnVtAIDC1y8BC2lzUGF5bWVudE9rAgFpA3N1bQQRYWNjZXB0YWJsZUFzc2V0SWQBBBOr2TMEAXAJAJEDAggFAWkIcGF5bWVudHMAAAMJAGcCCAUBcAZhbW91bnQJAQpudW1Ub1dhdmVzAQUDc3VtCQAAAggFAXAHYXNzZXRJZAUEdW5pdAcBC21hcEludFRvU3RyAgVhY2N1bQRuZXh0CQDMCAIJAKQDAQUEbmV4dAUFYWNjdW0BC21hcFN0clRvSW50AgVhY2N1bQRuZXh0CQDMCAIJAQ1wYXJzZUludFZhbHVlAQUEbmV4dAUFYWNjdW0BC21hcEludFRvU3VtAgVhY2N1bQRuZXh0CQBkAgUFYWNjdW0FBG5leHQBDGxpc3RJbnRUb1N1bQEDYXJyCgACJGwFA2FycgoAAiRzCQCQAwEFAiRsCgAFJGFjYzAAAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQELbWFwSW50VG9TdW0CBQIkYQkAkQMCBQI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dBbW91bnQxMngzXzM6CQCkAwEFE3dpbm5pbmdBbW91bnQxMngzXzMCFXx3aW5uaW5nQW1vdW50MTh4Ml8xOgkApAMBBRN3aW5uaW5nQW1vdW50MTh4Ml8xAhV8d2lubmluZ0Ftb3VudDE4eDJfMjoJAKQDAQUTd2lubmluZ0Ftb3VudDE4eDJfMgCKDCjr", "height": 2623544, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4W3qNgn5bR7H1Zq8dm8ny4av63JLdtGGPExx1X9uPuv4 Next: HgX86cbrxAZtAowrcwBj1eH7iL3KkQi2Gq9vbLbTJccY Diff:
OldNewDifferences
9494 func getRandomRullet (commitHeight) = {
9595 let randomHash = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes(commitHeight)))
9696 let hashInt = toInt(randomHash, 24)
97- let randomHash2 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 2))))
98- let hashInt2 = toInt(randomHash2, 24)
99- let randomHash3 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 4))))
100- let hashInt3 = toInt(randomHash3, 24)
10197 let randomNumber = (hashInt % 37)
102- let randomNumber2 = (hashInt2 % 37)
103- let randomNumber3 = (hashInt3 % 37)
104- if (((randomNumber3 % 2) == 0))
105- then randomNumber
106- else if (((commitHeight % 2) == 0))
107- then randomNumber2
108- else randomNumber3
98+ randomNumber
10999 }
110100
111101
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func numToWaves (num) = (num * 100000000)
55
66
77 func isPaymentOk (i,sum) = {
88 let acceptableAssetId = base58'WAVES'
99 let p = i.payments[0]
1010 if ((p.amount >= numToWaves(sum)))
1111 then (p.assetId == unit)
1212 else false
1313 }
1414
1515
1616 func mapIntToStr (accum,next) = toString(next) :: accum
1717
1818
1919 func mapStrToInt (accum,next) = parseIntValue(next) :: accum
2020
2121
2222 func mapIntToSum (accum,next) = (accum + next)
2323
2424
2525 func listIntToSum (arr) = {
2626 let $l = arr
2727 let $s = size($l)
2828 let $acc0 = 0
2929 func $f0_1 ($a,$i) = if (($i >= $s))
3030 then $a
3131 else mapIntToSum($a, $l[$i])
3232
3333 func $f0_2 ($a,$i) = if (($i >= $s))
3434 then $a
3535 else throw("List size exceeds 50")
3636
3737 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
3838 }
3939
4040
4141 func listIntToListString (arr) = {
4242 let $l = arr
4343 let $s = size($l)
4444 let $acc0 = nil
4545 func $f0_1 ($a,$i) = if (($i >= $s))
4646 then $a
4747 else mapIntToStr($a, $l[$i])
4848
4949 func $f0_2 ($a,$i) = if (($i >= $s))
5050 then $a
5151 else throw("List size exceeds 50")
5252
5353 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
5454 }
5555
5656
5757 func listStringToListIng (arr) = {
5858 let $l = arr
5959 let $s = size($l)
6060 let $acc0 = nil
6161 func $f0_1 ($a,$i) = if (($i >= $s))
6262 then $a
6363 else mapStrToInt($a, $l[$i])
6464
6565 func $f0_2 ($a,$i) = if (($i >= $s))
6666 then $a
6767 else throw("List size exceeds 50")
6868
6969 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
7070 }
7171
7272
7373 func listStringCompressToString (arr) = makeString(arr, "|")
7474
7575
7676 func stringDecompressToListString (str) = split(str, "|")
7777
7878
7979 func listIntCompressToString (arr) = makeString(listIntToListString(arr), "|")
8080
8181
8282 func stringDecompressToListInt (arrStr) = listStringToListIng(split(arrStr, "|"))
8383
8484
8585 func getRandom (commitHeight) = {
8686 let revealBlock = valueOrErrorMessage(blockInfoByHeight(commitHeight), "unexcpected error")
8787 let vrf = valueOrErrorMessage(revealBlock.vrf, "unexcpected error")
8888 let randomHash = sha256(value(vrf))
8989 let hash = toInt(randomHash, 16)
9090 (hash % 37)
9191 }
9292
9393
9494 func getRandomRullet (commitHeight) = {
9595 let randomHash = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes(commitHeight)))
9696 let hashInt = toInt(randomHash, 24)
97- let randomHash2 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 2))))
98- let hashInt2 = toInt(randomHash2, 24)
99- let randomHash3 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 4))))
100- let hashInt3 = toInt(randomHash3, 24)
10197 let randomNumber = (hashInt % 37)
102- let randomNumber2 = (hashInt2 % 37)
103- let randomNumber3 = (hashInt3 % 37)
104- if (((randomNumber3 % 2) == 0))
105- then randomNumber
106- else if (((commitHeight % 2) == 0))
107- then randomNumber2
108- else randomNumber3
98+ randomNumber
10999 }
110100
111101
112102 func R_WinCalculator (randomNumber,betAmount,selectedNumberBets,betDirection) = {
113103 let RED_SECTORS = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3]
114104 let BLACK_SECTORS = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35]
115105 if ((betDirection == "red"))
116106 then if (containsElement(RED_SECTORS, randomNumber))
117107 then (betAmount * 2)
118108 else 0
119109 else if ((betDirection == "black"))
120110 then if (containsElement(BLACK_SECTORS, randomNumber))
121111 then (betAmount * 2)
122112 else 0
123113 else if ((betDirection == "odd"))
124114 then if (if (((randomNumber % 2) != 0))
125115 then (randomNumber != 0)
126116 else false)
127117 then (betAmount * 2)
128118 else 0
129119 else if ((betDirection == "even"))
130120 then if (if (((randomNumber % 2) == 0))
131121 then (randomNumber != 0)
132122 else false)
133123 then (betAmount * 2)
134124 else 0
135125 else if (if ((size(selectedNumberBets) == 1))
136126 then (betDirection == "num")
137127 else false)
138128 then if ((selectedNumberBets[0] == randomNumber))
139129 then (betAmount * 36)
140130 else 0
141131 else if ((size(selectedNumberBets) == 2))
142132 then if (containsElement(selectedNumberBets, randomNumber))
143133 then (betAmount * 18)
144134 else 0
145135 else if ((size(selectedNumberBets) == 3))
146136 then if (containsElement(selectedNumberBets, randomNumber))
147137 then (betAmount * 12)
148138 else 0
149139 else if ((size(selectedNumberBets) == 4))
150140 then if (containsElement(selectedNumberBets, randomNumber))
151141 then (betAmount * 9)
152142 else 0
153143 else if ((size(selectedNumberBets) == 12))
154144 then if (if (containsElement(selectedNumberBets, randomNumber))
155145 then (randomNumber != 0)
156146 else false)
157147 then (betAmount * 3)
158148 else 0
159149 else if ((size(selectedNumberBets) == 18))
160150 then if (if (containsElement(selectedNumberBets, randomNumber))
161151 then (randomNumber != 0)
162152 else false)
163153 then (betAmount * 2)
164154 else 0
165155 else 0
166156 }
167157
168158
169159 func R_getBetKey (i) = ("bet_Roulette_" + toString(i.caller))
170160
171161
172162 func R_getBetAmountKey (i) = ("betAmount_Roulette_" + toString(i.caller))
173163
174164
175165 func R_getSelectedNumbersKey (i) = ("selectedNumbers_Roulette_" + toString(i.caller))
176166
177167
178168 func R_getDirectionKey (i) = ("direction_Roulette_" + toString(i.caller))
179169
180170
181171 func R_getLogKey (i) = ((("log_Roulette_" + toString(i.caller)) + "_") + toBase58String(i.transactionId))
182172
183173
184174 func R_getStatusKey (i) = ("status_Roulette_" + toString(i.caller))
185175
186176
187177 func LW_getBetKey (i) = ("bet_LuckyWheel_" + toString(i.caller))
188178
189179
190180 func LW_getWonKey (i) = ("won_LuckyWheel_" + toString(i.caller))
191181
192182
193183 func LW_getRandomNumberKey (i) = ("randomNumber_LuckyWheel_" + toString(i.caller))
194184
195185
196186 func LW_getLogKey (i) = ((("log_LuckyWheel_" + toString(i.caller)) + "_") + toBase58String(i.transactionId))
197187
198188
199189 func LW_whatUserWon (value) = match value {
200190 case _ =>
201191 if ((1 == $match0))
202192 then numToWaves(2)
203193 else if ((3 == $match0))
204194 then numToWaves(1)
205195 else if ((7 == $match0))
206196 then numToWaves(6)
207197 else if ((9 == $match0))
208198 then numToWaves(1)
209199 else 0
210200 }
211201
212202
213203 func LW_getStatusKey (i) = ("status_Roulette_" + toString(i.caller))
214204
215205
216206 @Callable(i)
217207 func test_num (commitHeight) = {
218208 let randomNumber = getRandomRullet(commitHeight)
219209 throw(toString(randomNumber))
220210 }
221211
222212
223213
224214 @Callable(i)
225215 func Roulette_reveal_test (commitHeight,betAmount,selectedNumbers,direction) = {
226216 let randomNumber = getRandomRullet(commitHeight)
227217 let winningAmount = numToWaves(R_WinCalculator(randomNumber, betAmount, selectedNumbers, direction))
228218 throw(((toString(randomNumber) + "|") + toString(winningAmount)))
229219 }
230220
231221
232222
233223 @Callable(i)
234224 func AllVariantTest (commitHeight,betAmount) = {
235225 let randomNumber = getRandomRullet(commitHeight)
236226 let winningAmountRed = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "red"))
237227 let winningAmountBlack = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "black"))
238228 let winningAmountEven = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "even"))
239229 let winningAmountOdd = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "odd"))
240230 let winningAmount12x3_1 = numToWaves(R_WinCalculator(randomNumber, betAmount, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], ""))
241231 let winningAmount12x3_2 = numToWaves(R_WinCalculator(randomNumber, betAmount, [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], ""))
242232 let winningAmount12x3_3 = numToWaves(R_WinCalculator(randomNumber, betAmount, [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], ""))
243233 let winningAmount18x2_1 = numToWaves(R_WinCalculator(randomNumber, betAmount, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], ""))
244234 let winningAmount18x2_2 = numToWaves(R_WinCalculator(randomNumber, betAmount, [19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], ""))
245235 throw(((((((((((((((((((("|randomNumber:" + toString(randomNumber)) + "|winningAmountRed:") + toString(winningAmountRed)) + "|winningAmountBlack:") + toString(winningAmountBlack)) + "|winningAmountEven:") + toString(winningAmountEven)) + "|winningAmountOdd:") + toString(winningAmountOdd)) + "|winningAmount12x3_1:") + toString(winningAmount12x3_1)) + "|winningAmount12x3_2:") + toString(winningAmount12x3_2)) + "|winningAmount12x3_3:") + toString(winningAmount12x3_3)) + "|winningAmount18x2_1:") + toString(winningAmount18x2_1)) + "|winningAmount18x2_2:") + toString(winningAmount18x2_2)))
246236 }
247237
248238

github/deemru/w8io/026f985 
44.41 ms