tx · 6bVZrkttqbcnM7LZvwhYuMXQzLaLQbonrhdPdvLruKXc

3N9bCLWJvRQQmKHye2xD7xd3a8bGMicRo9R:  -0.01000000 Waves

2023.06.13 12:09 [2620700] smart account 3N9bCLWJvRQQmKHye2xD7xd3a8bGMicRo9R > SELF 0.00000000 Waves

{ "type": 13, "id": "6bVZrkttqbcnM7LZvwhYuMXQzLaLQbonrhdPdvLruKXc", "fee": 1000000, "feeAssetId": null, "timestamp": 1686647477615, "version": 2, "chainId": 84, "sender": "3N9bCLWJvRQQmKHye2xD7xd3a8bGMicRo9R", "senderPublicKey": "3Lws6NHDGo96BZXMyvFcRMbR4bh6sRJ3Y7UUcd5vvhqG", "proofs": [ "2CxZQ9tpQGfv9VRdyYJon9H7cnUjcr72tiuYLrg8b4KrKHxaLkkLuMZt2ZsPvRQeMQUvgYfEh7GMtyp7PMmztk59" ], "script": "base64:BgIQCAISBgoEAQERCBIECgIBARsBCm51bVRvV2F2ZXMBA251bQkAaAIFA251bQCAwtcvAQtpc1BheW1lbnRPawIBaQNzdW0EEWFjY2VwdGFibGVBc3NldElkAQQTq9kzBAFwCQCRAwIIBQFpCHBheW1lbnRzAAADCQBnAggFAXAGYW1vdW50CQEKbnVtVG9XYXZlcwEFA3N1bQkAAAIIBQFwB2Fzc2V0SWQFBHVuaXQHAQttYXBJbnRUb1N0cgIFYWNjdW0EbmV4dAkAzAgCCQCkAwEFBG5leHQFBWFjY3VtAQttYXBTdHJUb0ludAIFYWNjdW0EbmV4dAkAzAgCCQENcGFyc2VJbnRWYWx1ZQEFBG5leHQFBWFjY3VtAQttYXBJbnRUb1N1bQIFYWNjdW0EbmV4dAkAZAIFBWFjY3VtBQRuZXh0AQxsaXN0SW50VG9TdW0BA2FycgoAAiRsBQNhcnIKAAIkcwkAkAMBBQIkbAoABSRhY2MwAAAKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBC21hcEludFRvU3VtAgUCJGEJAJEDAgUCJGwFAiRpCgE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AhR8d2lubmluZ0Ftb3VudEJsYWNrOgkApAMBBRJ3aW5uaW5nQW1vdW50QmxhY2sCE3x3aW5uaW5nQW1vdW50RXZlbjoJAKQDAQURd2lubmluZ0Ftb3VudEV2ZW4CEnx3aW5uaW5nQW1vdW50T2RkOgkApAMBBRB3aW5uaW5nQW1vdW50T2RkAhV8d2lubmluZ0Ftb3VudDEyeDNfMToJAKQDAQUTd2lubmluZ0Ftb3VudDEyeDNfMQIVfHdpbm5pbmdBbW91bnQxMngzXzI6CQCkAwEFE3dpbm5pbmdBbW91bnQxMngzXzICFXx3aW5uaW5nQW1vdW50MTJ4M18zOgkApAMBBRN3aW5uaW5nQW1vdW50MTJ4M18zAhV8d2lubmluZ0Ftb3VudDE4eDJfMToJAKQDAQUTd2lubmluZ0Ftb3VudDE4eDJfMQIVfHdpbm5pbmdBbW91bnQxOHgyXzI6CQCkAwEFE3dpbm5pbmdBbW91bnQxOHgyXzIAzTLpBw==", "height": 2620700, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7LPHPai5SwmXhRTtrCmuET16GwBmSAQY12ydu4xhtswH Next: JBfdri7xdooiHoiVynHTjjwSKW8PcnmDfAmcKMto4Wao 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 - 1))))
98+ let hashInt2 = toInt(randomHash2, 24)
9799 let randomNumber = (hashInt % 37)
98- randomNumber
100+ let randomNumber2 = (hashInt2 % 37)
101+ if (if (((randomNumber % 2) != 0))
102+ then (randomNumber != 0)
103+ else false)
104+ then randomNumber
105+ else randomNumber2
99106 }
100107
101108
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 - 1))))
98+ let hashInt2 = toInt(randomHash2, 24)
9799 let randomNumber = (hashInt % 37)
98- randomNumber
100+ let randomNumber2 = (hashInt2 % 37)
101+ if (if (((randomNumber % 2) != 0))
102+ then (randomNumber != 0)
103+ else false)
104+ then randomNumber
105+ else randomNumber2
99106 }
100107
101108
102109 func R_WinCalculator (randomNumber,betAmount,selectedNumberBets,betDirection) = {
103110 let RED_SECTORS = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3]
104111 let BLACK_SECTORS = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35]
105112 if ((betDirection == "red"))
106113 then if (containsElement(RED_SECTORS, randomNumber))
107114 then (betAmount * 2)
108115 else 0
109116 else if ((betDirection == "black"))
110117 then if (containsElement(BLACK_SECTORS, randomNumber))
111118 then (betAmount * 2)
112119 else 0
113120 else if ((betDirection == "odd"))
114121 then if (if (((randomNumber % 2) == 0))
115122 then (randomNumber != 0)
116123 else false)
117124 then (betAmount * 2)
118125 else 0
119126 else if ((betDirection == "even"))
120127 then if (if (((randomNumber % 2) != 0))
121128 then (randomNumber != 0)
122129 else false)
123130 then (betAmount * 2)
124131 else 0
125132 else if (if ((size(selectedNumberBets) == 1))
126133 then (betDirection == "num")
127134 else false)
128135 then if ((selectedNumberBets[0] == randomNumber))
129136 then (betAmount * 36)
130137 else 0
131138 else if ((size(selectedNumberBets) == 2))
132139 then if (containsElement(selectedNumberBets, randomNumber))
133140 then (betAmount * 18)
134141 else 0
135142 else if ((size(selectedNumberBets) == 3))
136143 then if (containsElement(selectedNumberBets, randomNumber))
137144 then (betAmount * 12)
138145 else 0
139146 else if ((size(selectedNumberBets) == 4))
140147 then if (containsElement(selectedNumberBets, randomNumber))
141148 then (betAmount * 9)
142149 else 0
143150 else if ((size(selectedNumberBets) == 12))
144151 then if (if (containsElement(selectedNumberBets, randomNumber))
145152 then (randomNumber != 0)
146153 else false)
147154 then (betAmount * 3)
148155 else 0
149156 else if ((size(selectedNumberBets) == 18))
150157 then if (if (containsElement(selectedNumberBets, randomNumber))
151158 then (randomNumber != 0)
152159 else false)
153160 then (betAmount * 2)
154161 else 0
155162 else 0
156163 }
157164
158165
159166 func R_getBetKey (i) = ("bet_Roulette_" + toString(i.caller))
160167
161168
162169 func R_getBetAmountKey (i) = ("betAmount_Roulette_" + toString(i.caller))
163170
164171
165172 func R_getSelectedNumbersKey (i) = ("selectedNumbers_Roulette_" + toString(i.caller))
166173
167174
168175 func R_getDirectionKey (i) = ("direction_Roulette_" + toString(i.caller))
169176
170177
171178 func R_getLogKey (i) = ((("log_Roulette_" + toString(i.caller)) + "_") + toBase58String(i.transactionId))
172179
173180
174181 func R_getStatusKey (i) = ("status_Roulette_" + toString(i.caller))
175182
176183
177184 func LW_getBetKey (i) = ("bet_LuckyWheel_" + toString(i.caller))
178185
179186
180187 func LW_getWonKey (i) = ("won_LuckyWheel_" + toString(i.caller))
181188
182189
183190 func LW_getRandomNumberKey (i) = ("randomNumber_LuckyWheel_" + toString(i.caller))
184191
185192
186193 func LW_getLogKey (i) = ((("log_LuckyWheel_" + toString(i.caller)) + "_") + toBase58String(i.transactionId))
187194
188195
189196 func LW_whatUserWon (value) = match value {
190197 case _ =>
191198 if ((1 == $match0))
192199 then numToWaves(2)
193200 else if ((3 == $match0))
194201 then numToWaves(1)
195202 else if ((7 == $match0))
196203 then numToWaves(6)
197204 else if ((9 == $match0))
198205 then numToWaves(1)
199206 else 0
200207 }
201208
202209
203210 func LW_getStatusKey (i) = ("status_Roulette_" + toString(i.caller))
204211
205212
206213 @Callable(i)
207214 func Roulette_reveal_test (commitHeight,betAmount,selectedNumbers,direction) = {
208215 let randomNumber = getRandomRullet(commitHeight)
209216 let winningAmount = numToWaves(R_WinCalculator(randomNumber, betAmount, selectedNumbers, direction))
210217 throw(((toString(randomNumber) + "|") + toString(winningAmount)))
211218 }
212219
213220
214221
215222 @Callable(i)
216223 func AllVariantTest (commitHeight,betAmount) = {
217224 let randomNumber = getRandomRullet(commitHeight)
218225 let winningAmountRed = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "red"))
219226 let winningAmountBlack = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "black"))
220227 let winningAmountEven = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "even"))
221228 let winningAmountOdd = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "odd"))
222229 let winningAmount12x3_1 = numToWaves(R_WinCalculator(randomNumber, betAmount, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], ""))
223230 let winningAmount12x3_2 = numToWaves(R_WinCalculator(randomNumber, betAmount, [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], ""))
224231 let winningAmount12x3_3 = numToWaves(R_WinCalculator(randomNumber, betAmount, [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], ""))
225232 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], ""))
226233 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], ""))
227234 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)))
228235 }
229236
230237

github/deemru/w8io/026f985 
49.69 ms