tx · 21d62buwCWZQHpi8QYsG6U1mPstEjhWKZDrJuq5JDyo7

3N9bCLWJvRQQmKHye2xD7xd3a8bGMicRo9R:  -0.01000000 Waves

2023.06.13 13:39 [2620792] smart account 3N9bCLWJvRQQmKHye2xD7xd3a8bGMicRo9R > SELF 0.00000000 Waves

{ "type": 13, "id": "21d62buwCWZQHpi8QYsG6U1mPstEjhWKZDrJuq5JDyo7", "fee": 1000000, "feeAssetId": null, "timestamp": 1686652807305, "version": 2, "chainId": 84, "sender": "3N9bCLWJvRQQmKHye2xD7xd3a8bGMicRo9R", "senderPublicKey": "3Lws6NHDGo96BZXMyvFcRMbR4bh6sRJ3Y7UUcd5vvhqG", "proofs": [ "h8mVEnxfP7NVaJ4k7gE7Gf8sVX3vQuKb46tDw8JXD8Z6khUHc7w8ncqozWZmXsBHPAiLvSi5W86i5wGn3KvujLi" ], "script": "base64:BgIVCAISAwoBARIGCgQBAREIEgQKAgEBGwEKbnVtVG9XYXZlcwEDbnVtCQBoAgUDbnVtAIDC1y8BC2lzUGF5bWVudE9rAgFpA3N1bQQRYWNjZXB0YWJsZUFzc2V0SWQBBBOr2TMEAXAJAJEDAggFAWkIcGF5bWVudHMAAAMJAGcCCAUBcAZhbW91bnQJAQpudW1Ub1dhdmVzAQUDc3VtCQAAAggFAXAHYXNzZXRJZAUEdW5pdAcBC21hcEludFRvU3RyAgVhY2N1bQRuZXh0CQDMCAIJAKQDAQUEbmV4dAUFYWNjdW0BC21hcFN0clRvSW50AgVhY2N1bQRuZXh0CQDMCAIJAQ1wYXJzZUludFZhbHVlAQUEbmV4dAUFYWNjdW0BC21hcEludFRvU3VtAgVhY2N1bQRuZXh0CQBkAgUFYWNjdW0FBG5leHQBDGxpc3RJbnRUb1N1bQEDYXJyCgACJGwFA2FycgoAAiRzCQCQAwEFAiRsCgAFJGFjYzAAAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQELbWFwSW50VG9TdW0CBQIkYQkAkQMCBQI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I6CQCkAwEFDHJhbmRvbU51bWJlcgISfHdpbm5pbmdBbW91bnRSZWQ6CQCkAwEFEHdpbm5pbmdBbW91bnRSZWQCFHx3aW5uaW5nQW1vdW50QmxhY2s6CQCkAwEFEndpbm5pbmdBbW91bnRCbGFjawITfHdpbm5pbmdBbW91bnRFdmVuOgkApAMBBRF3aW5uaW5nQW1vdW50RXZlbgISfHdpbm5pbmdBbW91bnRPZGQ6CQCkAwEFEHdpbm5pbmdBbW91bnRPZGQCFXx3aW5uaW5nQW1vdW50MTJ4M18xOgkApAMBBRN3aW5uaW5nQW1vdW50MTJ4M18xAhV8d2lubmluZ0Ftb3VudDEyeDNfMjoJAKQDAQUTd2lubmluZ0Ftb3VudDEyeDNfMgIVfHdpbm5pbmdBbW91bnQxMngzXzM6CQCkAwEFE3dpbm5pbmdBbW91bnQxMngzXzMCFXx3aW5uaW5nQW1vdW50MTh4Ml8xOgkApAMBBRN3aW5uaW5nQW1vdW50MTh4Ml8xAhV8d2lubmluZ0Ftb3VudDE4eDJfMjoJAKQDAQUTd2lubmluZ0Ftb3VudDE4eDJfMgAWZEbg", "height": 2620792, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CfN4E9pGycMAVXrcpJmjbkJjtyY2uqfuhaFzYiNtoDBb Next: 7bSkxJTkF5oTtxxafmWjcbqU1po8ZFpeuBRqCwRZm2cQ 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))))
97+ let randomHash2 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 2))))
9898 let hashInt2 = toInt(randomHash2, 24)
99+ let randomHash3 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 4))))
100+ let hashInt3 = toInt(randomHash3, 24)
99101 let randomNumber = (hashInt % 37)
100102 let randomNumber2 = (hashInt2 % 37)
101- randomNumber
103+ if (((randomNumber % 2) != 0))
104+ then randomNumber2
105+ else 0
102106 }
103107
104108
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))))
97+ let randomHash2 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 2))))
9898 let hashInt2 = toInt(randomHash2, 24)
99+ let randomHash3 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 4))))
100+ let hashInt3 = toInt(randomHash3, 24)
99101 let randomNumber = (hashInt % 37)
100102 let randomNumber2 = (hashInt2 % 37)
101- randomNumber
103+ if (((randomNumber % 2) != 0))
104+ then randomNumber2
105+ else 0
102106 }
103107
104108
105109 func R_WinCalculator (randomNumber,betAmount,selectedNumberBets,betDirection) = {
106110 let RED_SECTORS = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3]
107111 let BLACK_SECTORS = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35]
108112 if ((betDirection == "red"))
109113 then if (containsElement(RED_SECTORS, randomNumber))
110114 then (betAmount * 2)
111115 else 0
112116 else if ((betDirection == "black"))
113117 then if (containsElement(BLACK_SECTORS, randomNumber))
114118 then (betAmount * 2)
115119 else 0
116120 else if ((betDirection == "odd"))
117121 then if (if (((randomNumber % 2) == 0))
118122 then (randomNumber != 0)
119123 else false)
120124 then (betAmount * 2)
121125 else 0
122126 else if ((betDirection == "even"))
123127 then if (if (((randomNumber % 2) != 0))
124128 then (randomNumber != 0)
125129 else false)
126130 then (betAmount * 2)
127131 else 0
128132 else if (if ((size(selectedNumberBets) == 1))
129133 then (betDirection == "num")
130134 else false)
131135 then if ((selectedNumberBets[0] == randomNumber))
132136 then (betAmount * 36)
133137 else 0
134138 else if ((size(selectedNumberBets) == 2))
135139 then if (containsElement(selectedNumberBets, randomNumber))
136140 then (betAmount * 18)
137141 else 0
138142 else if ((size(selectedNumberBets) == 3))
139143 then if (containsElement(selectedNumberBets, randomNumber))
140144 then (betAmount * 12)
141145 else 0
142146 else if ((size(selectedNumberBets) == 4))
143147 then if (containsElement(selectedNumberBets, randomNumber))
144148 then (betAmount * 9)
145149 else 0
146150 else if ((size(selectedNumberBets) == 12))
147151 then if (if (containsElement(selectedNumberBets, randomNumber))
148152 then (randomNumber != 0)
149153 else false)
150154 then (betAmount * 3)
151155 else 0
152156 else if ((size(selectedNumberBets) == 18))
153157 then if (if (containsElement(selectedNumberBets, randomNumber))
154158 then (randomNumber != 0)
155159 else false)
156160 then (betAmount * 2)
157161 else 0
158162 else 0
159163 }
160164
161165
162166 func R_getBetKey (i) = ("bet_Roulette_" + toString(i.caller))
163167
164168
165169 func R_getBetAmountKey (i) = ("betAmount_Roulette_" + toString(i.caller))
166170
167171
168172 func R_getSelectedNumbersKey (i) = ("selectedNumbers_Roulette_" + toString(i.caller))
169173
170174
171175 func R_getDirectionKey (i) = ("direction_Roulette_" + toString(i.caller))
172176
173177
174178 func R_getLogKey (i) = ((("log_Roulette_" + toString(i.caller)) + "_") + toBase58String(i.transactionId))
175179
176180
177181 func R_getStatusKey (i) = ("status_Roulette_" + toString(i.caller))
178182
179183
180184 func LW_getBetKey (i) = ("bet_LuckyWheel_" + toString(i.caller))
181185
182186
183187 func LW_getWonKey (i) = ("won_LuckyWheel_" + toString(i.caller))
184188
185189
186190 func LW_getRandomNumberKey (i) = ("randomNumber_LuckyWheel_" + toString(i.caller))
187191
188192
189193 func LW_getLogKey (i) = ((("log_LuckyWheel_" + toString(i.caller)) + "_") + toBase58String(i.transactionId))
190194
191195
192196 func LW_whatUserWon (value) = match value {
193197 case _ =>
194198 if ((1 == $match0))
195199 then numToWaves(2)
196200 else if ((3 == $match0))
197201 then numToWaves(1)
198202 else if ((7 == $match0))
199203 then numToWaves(6)
200204 else if ((9 == $match0))
201205 then numToWaves(1)
202206 else 0
203207 }
204208
205209
206210 func LW_getStatusKey (i) = ("status_Roulette_" + toString(i.caller))
207211
208212
209213 @Callable(i)
210214 func test_num (commitHeight) = {
211215 let randomNumber = getRandomRullet(commitHeight)
212216 throw(toString(randomNumber))
213217 }
214218
215219
216220
217221 @Callable(i)
218222 func Roulette_reveal_test (commitHeight,betAmount,selectedNumbers,direction) = {
219223 let randomNumber = getRandomRullet(commitHeight)
220224 let winningAmount = numToWaves(R_WinCalculator(randomNumber, betAmount, selectedNumbers, direction))
221225 throw(((toString(randomNumber) + "|") + toString(winningAmount)))
222226 }
223227
224228
225229
226230 @Callable(i)
227231 func AllVariantTest (commitHeight,betAmount) = {
228232 let randomNumber = getRandomRullet(commitHeight)
229233 let winningAmountRed = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "red"))
230234 let winningAmountBlack = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "black"))
231235 let winningAmountEven = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "even"))
232236 let winningAmountOdd = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "odd"))
233237 let winningAmount12x3_1 = numToWaves(R_WinCalculator(randomNumber, betAmount, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], ""))
234238 let winningAmount12x3_2 = numToWaves(R_WinCalculator(randomNumber, betAmount, [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], ""))
235239 let winningAmount12x3_3 = numToWaves(R_WinCalculator(randomNumber, betAmount, [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], ""))
236240 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], ""))
237241 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], ""))
238242 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)))
239243 }
240244
241245

github/deemru/w8io/026f985 
51.23 ms