tx · DJfZoSRYYNWNVT75BtgpHJuxqZr3SPzthJdFqsS7i4f3

3N9bCLWJvRQQmKHye2xD7xd3a8bGMicRo9R:  -0.01000000 Waves

2023.06.13 12:17 [2620706] smart account 3N9bCLWJvRQQmKHye2xD7xd3a8bGMicRo9R > SELF 0.00000000 Waves

{ "type": 13, "id": "DJfZoSRYYNWNVT75BtgpHJuxqZr3SPzthJdFqsS7i4f3", "fee": 1000000, "feeAssetId": null, "timestamp": 1686647880100, "version": 2, "chainId": 84, "sender": "3N9bCLWJvRQQmKHye2xD7xd3a8bGMicRo9R", "senderPublicKey": "3Lws6NHDGo96BZXMyvFcRMbR4bh6sRJ3Y7UUcd5vvhqG", "proofs": [ "JX7B2SUNcqURUGj5Atge3ahFTENZ7bHcK72WDPa2bxeRwdP2Vt7tPvWB2hp6BqZGmvNas7QRT4RfvDLaKQ84MNf" ], "script": "base64:BgIYCAISBgoEAQERCBIGCgQBAREIEgQKAgEBGwEKbnVtVG9XYXZlcwEDbnVtCQBoAgUDbnVtAIDC1y8BC2lzUGF5bWVudE9rAgFpA3N1bQQRYWNjZXB0YWJsZUFzc2V0SWQBBBOr2TMEAXAJAJEDAggFAWkIcGF5bWVudHMAAAMJAGcCCAUBcAZhbW91bnQJAQpudW1Ub1dhdmVzAQUDc3VtCQAAAggFAXAHYXNzZXRJZAUEdW5pdAcBC21hcEludFRvU3RyAgVhY2N1bQRuZXh0CQDMCAIJAKQDAQUEbmV4dAUFYWNjdW0BC21hcFN0clRvSW50AgVhY2N1bQRuZXh0CQDMCAIJAQ1wYXJzZUludFZhbHVlAQUEbmV4dAUFYWNjdW0BC21hcEludFRvU3VtAgVhY2N1bQRuZXh0CQBkAgUFYWNjdW0FBG5leHQBDGxpc3RJbnRUb1N1bQEDYXJyCgACJGwFA2FycgoAAiRzCQCQAwEFAiRsCgAFJGFjYzAAAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQELbWFwSW50VG9TdW0CBQIkYQkAk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JhbmRvbU51bWJlcgISfHdpbm5pbmdBbW91bnRSZWQ6CQCkAwEFEHdpbm5pbmdBbW91bnRSZWQCFHx3aW5uaW5nQW1vdW50QmxhY2s6CQCkAwEFEndpbm5pbmdBbW91bnRCbGFjawITfHdpbm5pbmdBbW91bnRFdmVuOgkApAMBBRF3aW5uaW5nQW1vdW50RXZlbgISfHdpbm5pbmdBbW91bnRPZGQ6CQCkAwEFEHdpbm5pbmdBbW91bnRPZGQCFXx3aW5uaW5nQW1vdW50MTJ4M18xOgkApAMBBRN3aW5uaW5nQW1vdW50MTJ4M18xAhV8d2lubmluZ0Ftb3VudDEyeDNfMjoJAKQDAQUTd2lubmluZ0Ftb3VudDEyeDNfMgIVfHdpbm5pbmdBbW91bnQxMngzXzM6CQCkAwEFE3dpbm5pbmdBbW91bnQxMngzXzMCFXx3aW5uaW5nQW1vdW50MTh4Ml8xOgkApAMBBRN3aW5uaW5nQW1vdW50MTh4Ml8xAhV8d2lubmluZ0Ftb3VudDE4eDJfMjoJAKQDAQUTd2lubmluZ0Ftb3VudDE4eDJfMgDK36Ux", "height": 2620706, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AuBwXE6HbiYeBYpXujY4STAQcXEY59VuNju6bJD6KTFb Next: 5ZcBr29nmjrdcEuetfjtDfxGXyxDQzyhwiGcWqhf8zoA Diff:
OldNewDifferences
207207
208208
209209 @Callable(i)
210+func test_num (commitHeight,betAmount,selectedNumbers,direction) = {
211+ let randomNumber = getRandomRullet(commitHeight)
212+ let winningAmount = numToWaves(R_WinCalculator(randomNumber, betAmount, selectedNumbers, direction))
213+ throw(toString(randomNumber))
214+ }
215+
216+
217+
218+@Callable(i)
210219 func Roulette_reveal_test (commitHeight,betAmount,selectedNumbers,direction) = {
211220 let randomNumber = getRandomRullet(commitHeight)
212221 let winningAmount = numToWaves(R_WinCalculator(randomNumber, betAmount, selectedNumbers, direction))
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)
9797 let randomHash2 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 1))))
9898 let hashInt2 = toInt(randomHash2, 24)
9999 let randomNumber = (hashInt % 37)
100100 let randomNumber2 = (hashInt2 % 37)
101101 randomNumber
102102 }
103103
104104
105105 func R_WinCalculator (randomNumber,betAmount,selectedNumberBets,betDirection) = {
106106 let RED_SECTORS = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3]
107107 let BLACK_SECTORS = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35]
108108 if ((betDirection == "red"))
109109 then if (containsElement(RED_SECTORS, randomNumber))
110110 then (betAmount * 2)
111111 else 0
112112 else if ((betDirection == "black"))
113113 then if (containsElement(BLACK_SECTORS, randomNumber))
114114 then (betAmount * 2)
115115 else 0
116116 else if ((betDirection == "odd"))
117117 then if (if (((randomNumber % 2) == 0))
118118 then (randomNumber != 0)
119119 else false)
120120 then (betAmount * 2)
121121 else 0
122122 else if ((betDirection == "even"))
123123 then if (if (((randomNumber % 2) != 0))
124124 then (randomNumber != 0)
125125 else false)
126126 then (betAmount * 2)
127127 else 0
128128 else if (if ((size(selectedNumberBets) == 1))
129129 then (betDirection == "num")
130130 else false)
131131 then if ((selectedNumberBets[0] == randomNumber))
132132 then (betAmount * 36)
133133 else 0
134134 else if ((size(selectedNumberBets) == 2))
135135 then if (containsElement(selectedNumberBets, randomNumber))
136136 then (betAmount * 18)
137137 else 0
138138 else if ((size(selectedNumberBets) == 3))
139139 then if (containsElement(selectedNumberBets, randomNumber))
140140 then (betAmount * 12)
141141 else 0
142142 else if ((size(selectedNumberBets) == 4))
143143 then if (containsElement(selectedNumberBets, randomNumber))
144144 then (betAmount * 9)
145145 else 0
146146 else if ((size(selectedNumberBets) == 12))
147147 then if (if (containsElement(selectedNumberBets, randomNumber))
148148 then (randomNumber != 0)
149149 else false)
150150 then (betAmount * 3)
151151 else 0
152152 else if ((size(selectedNumberBets) == 18))
153153 then if (if (containsElement(selectedNumberBets, randomNumber))
154154 then (randomNumber != 0)
155155 else false)
156156 then (betAmount * 2)
157157 else 0
158158 else 0
159159 }
160160
161161
162162 func R_getBetKey (i) = ("bet_Roulette_" + toString(i.caller))
163163
164164
165165 func R_getBetAmountKey (i) = ("betAmount_Roulette_" + toString(i.caller))
166166
167167
168168 func R_getSelectedNumbersKey (i) = ("selectedNumbers_Roulette_" + toString(i.caller))
169169
170170
171171 func R_getDirectionKey (i) = ("direction_Roulette_" + toString(i.caller))
172172
173173
174174 func R_getLogKey (i) = ((("log_Roulette_" + toString(i.caller)) + "_") + toBase58String(i.transactionId))
175175
176176
177177 func R_getStatusKey (i) = ("status_Roulette_" + toString(i.caller))
178178
179179
180180 func LW_getBetKey (i) = ("bet_LuckyWheel_" + toString(i.caller))
181181
182182
183183 func LW_getWonKey (i) = ("won_LuckyWheel_" + toString(i.caller))
184184
185185
186186 func LW_getRandomNumberKey (i) = ("randomNumber_LuckyWheel_" + toString(i.caller))
187187
188188
189189 func LW_getLogKey (i) = ((("log_LuckyWheel_" + toString(i.caller)) + "_") + toBase58String(i.transactionId))
190190
191191
192192 func LW_whatUserWon (value) = match value {
193193 case _ =>
194194 if ((1 == $match0))
195195 then numToWaves(2)
196196 else if ((3 == $match0))
197197 then numToWaves(1)
198198 else if ((7 == $match0))
199199 then numToWaves(6)
200200 else if ((9 == $match0))
201201 then numToWaves(1)
202202 else 0
203203 }
204204
205205
206206 func LW_getStatusKey (i) = ("status_Roulette_" + toString(i.caller))
207207
208208
209209 @Callable(i)
210+func test_num (commitHeight,betAmount,selectedNumbers,direction) = {
211+ let randomNumber = getRandomRullet(commitHeight)
212+ let winningAmount = numToWaves(R_WinCalculator(randomNumber, betAmount, selectedNumbers, direction))
213+ throw(toString(randomNumber))
214+ }
215+
216+
217+
218+@Callable(i)
210219 func Roulette_reveal_test (commitHeight,betAmount,selectedNumbers,direction) = {
211220 let randomNumber = getRandomRullet(commitHeight)
212221 let winningAmount = numToWaves(R_WinCalculator(randomNumber, betAmount, selectedNumbers, direction))
213222 throw(((toString(randomNumber) + "|") + toString(winningAmount)))
214223 }
215224
216225
217226
218227 @Callable(i)
219228 func AllVariantTest (commitHeight,betAmount) = {
220229 let randomNumber = getRandomRullet(commitHeight)
221230 let winningAmountRed = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "red"))
222231 let winningAmountBlack = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "black"))
223232 let winningAmountEven = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "even"))
224233 let winningAmountOdd = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "odd"))
225234 let winningAmount12x3_1 = numToWaves(R_WinCalculator(randomNumber, betAmount, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], ""))
226235 let winningAmount12x3_2 = numToWaves(R_WinCalculator(randomNumber, betAmount, [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], ""))
227236 let winningAmount12x3_3 = numToWaves(R_WinCalculator(randomNumber, betAmount, [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], ""))
228237 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], ""))
229238 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], ""))
230239 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)))
231240 }
232241
233242

github/deemru/w8io/026f985 
136.74 ms