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:BgIQCAISBgoEAQERCBIECgIBARsBCm51bVRvV2F2ZXMBA251bQkAaAIFA251bQCAwtcvAQtpc1BheW1lbnRPawIBaQNzdW0EEWFjY2VwdGFibGVBc3NldElkAQQTq9kzBAFwCQCRAwIIBQFpCHBheW1lbnRzAAADCQBnAggFAXAGYW1vdW50CQEKbnVtVG9XYXZlcwEFA3N1bQkAAAIIBQFwB2Fzc2V0SWQFBHVuaXQHAQttYXBJbnRUb1N0cgIFYWNjdW0EbmV4dAkAzAgCCQCkAwEFBG5leHQFBWFjY3VtAQttYXBTdHJUb0ludAIFYWNjdW0EbmV4dAkAzAgCCQENcGFyc2VJbnRWYWx1ZQEFBG5leHQFBWFjY3VtAQttYXBJbnRUb1N1bQIFYWNjdW0EbmV4dAkAZAIFBWFjY3VtBQRuZXh0AQxsaXN0SW50VG9TdW0BA2FycgoAAiRsBQNhcnIKAAIkcwkAkAMBBQIkbAoABSRhY2MwAAAKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBC21hcEludFRvU3VtAgUCJGEJAJEDAgUCJGwFAiRpCgEF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hR8d2lubmluZ0Ftb3VudEJsYWNrOgkApAMBBRJ3aW5uaW5nQW1vdW50QmxhY2sCE3x3aW5uaW5nQW1vdW50RXZlbjoJAKQDAQURd2lubmluZ0Ftb3VudEV2ZW4CEnx3aW5uaW5nQW1vdW50T2RkOgkApAMBBRB3aW5uaW5nQW1vdW50T2RkAhV8d2lubmluZ0Ftb3VudDEyeDNfMToJAKQDAQUTd2lubmluZ0Ftb3VudDEyeDNfMQIVfHdpbm5pbmdBbW91bnQxMngzXzI6CQCkAwEFE3dpbm5pbmdBbW91bnQxMngzXzICFXx3aW5uaW5nQW1vdW50MTJ4M18zOgkApAMBBRN3aW5uaW5nQW1vdW50MTJ4M18zAhV8d2lubmluZ0Ftb3VudDE4eDJfMToJAKQDAQUTd2lubmluZ0Ftb3VudDE4eDJfMQIVfHdpbm5pbmdBbW91bnQxOHgyXzI6CQCkAwEFE3dpbm5pbmdBbW91bnQxOHgyXzIAzTLpBw==", "height": 2620700, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7LPHPai5SwmXhRTtrCmuET16GwBmSAQY12ydu4xhtswH Next: JBfdri7xdooiHoiVynHTjjwSKW8PcnmDfAmcKMto4Wao Diff:
Old | New | Differences | |
---|---|---|---|
94 | 94 | func getRandomRullet (commitHeight) = { | |
95 | 95 | let randomHash = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes(commitHeight))) | |
96 | 96 | let hashInt = toInt(randomHash, 24) | |
97 | + | let randomHash2 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 1)))) | |
98 | + | let hashInt2 = toInt(randomHash2, 24) | |
97 | 99 | 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 | |
99 | 106 | } | |
100 | 107 | ||
101 | 108 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func numToWaves (num) = (num * 100000000) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func isPaymentOk (i,sum) = { | |
8 | 8 | let acceptableAssetId = base58'WAVES' | |
9 | 9 | let p = i.payments[0] | |
10 | 10 | if ((p.amount >= numToWaves(sum))) | |
11 | 11 | then (p.assetId == unit) | |
12 | 12 | else false | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func mapIntToStr (accum,next) = toString(next) :: accum | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func mapStrToInt (accum,next) = parseIntValue(next) :: accum | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func mapIntToSum (accum,next) = (accum + next) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func listIntToSum (arr) = { | |
26 | 26 | let $l = arr | |
27 | 27 | let $s = size($l) | |
28 | 28 | let $acc0 = 0 | |
29 | 29 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
30 | 30 | then $a | |
31 | 31 | else mapIntToSum($a, $l[$i]) | |
32 | 32 | ||
33 | 33 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
34 | 34 | then $a | |
35 | 35 | else throw("List size exceeds 50") | |
36 | 36 | ||
37 | 37 | $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) | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func listIntToListString (arr) = { | |
42 | 42 | let $l = arr | |
43 | 43 | let $s = size($l) | |
44 | 44 | let $acc0 = nil | |
45 | 45 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
46 | 46 | then $a | |
47 | 47 | else mapIntToStr($a, $l[$i]) | |
48 | 48 | ||
49 | 49 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
50 | 50 | then $a | |
51 | 51 | else throw("List size exceeds 50") | |
52 | 52 | ||
53 | 53 | $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) | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func listStringToListIng (arr) = { | |
58 | 58 | let $l = arr | |
59 | 59 | let $s = size($l) | |
60 | 60 | let $acc0 = nil | |
61 | 61 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
62 | 62 | then $a | |
63 | 63 | else mapStrToInt($a, $l[$i]) | |
64 | 64 | ||
65 | 65 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
66 | 66 | then $a | |
67 | 67 | else throw("List size exceeds 50") | |
68 | 68 | ||
69 | 69 | $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) | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func listStringCompressToString (arr) = makeString(arr, "|") | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func stringDecompressToListString (str) = split(str, "|") | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func listIntCompressToString (arr) = makeString(listIntToListString(arr), "|") | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func stringDecompressToListInt (arrStr) = listStringToListIng(split(arrStr, "|")) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func getRandom (commitHeight) = { | |
86 | 86 | let revealBlock = valueOrErrorMessage(blockInfoByHeight(commitHeight), "unexcpected error") | |
87 | 87 | let vrf = valueOrErrorMessage(revealBlock.vrf, "unexcpected error") | |
88 | 88 | let randomHash = sha256(value(vrf)) | |
89 | 89 | let hash = toInt(randomHash, 16) | |
90 | 90 | (hash % 37) | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func getRandomRullet (commitHeight) = { | |
95 | 95 | let randomHash = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes(commitHeight))) | |
96 | 96 | let hashInt = toInt(randomHash, 24) | |
97 | + | let randomHash2 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 1)))) | |
98 | + | let hashInt2 = toInt(randomHash2, 24) | |
97 | 99 | 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 | |
99 | 106 | } | |
100 | 107 | ||
101 | 108 | ||
102 | 109 | func R_WinCalculator (randomNumber,betAmount,selectedNumberBets,betDirection) = { | |
103 | 110 | let RED_SECTORS = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3] | |
104 | 111 | let BLACK_SECTORS = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35] | |
105 | 112 | if ((betDirection == "red")) | |
106 | 113 | then if (containsElement(RED_SECTORS, randomNumber)) | |
107 | 114 | then (betAmount * 2) | |
108 | 115 | else 0 | |
109 | 116 | else if ((betDirection == "black")) | |
110 | 117 | then if (containsElement(BLACK_SECTORS, randomNumber)) | |
111 | 118 | then (betAmount * 2) | |
112 | 119 | else 0 | |
113 | 120 | else if ((betDirection == "odd")) | |
114 | 121 | then if (if (((randomNumber % 2) == 0)) | |
115 | 122 | then (randomNumber != 0) | |
116 | 123 | else false) | |
117 | 124 | then (betAmount * 2) | |
118 | 125 | else 0 | |
119 | 126 | else if ((betDirection == "even")) | |
120 | 127 | then if (if (((randomNumber % 2) != 0)) | |
121 | 128 | then (randomNumber != 0) | |
122 | 129 | else false) | |
123 | 130 | then (betAmount * 2) | |
124 | 131 | else 0 | |
125 | 132 | else if (if ((size(selectedNumberBets) == 1)) | |
126 | 133 | then (betDirection == "num") | |
127 | 134 | else false) | |
128 | 135 | then if ((selectedNumberBets[0] == randomNumber)) | |
129 | 136 | then (betAmount * 36) | |
130 | 137 | else 0 | |
131 | 138 | else if ((size(selectedNumberBets) == 2)) | |
132 | 139 | then if (containsElement(selectedNumberBets, randomNumber)) | |
133 | 140 | then (betAmount * 18) | |
134 | 141 | else 0 | |
135 | 142 | else if ((size(selectedNumberBets) == 3)) | |
136 | 143 | then if (containsElement(selectedNumberBets, randomNumber)) | |
137 | 144 | then (betAmount * 12) | |
138 | 145 | else 0 | |
139 | 146 | else if ((size(selectedNumberBets) == 4)) | |
140 | 147 | then if (containsElement(selectedNumberBets, randomNumber)) | |
141 | 148 | then (betAmount * 9) | |
142 | 149 | else 0 | |
143 | 150 | else if ((size(selectedNumberBets) == 12)) | |
144 | 151 | then if (if (containsElement(selectedNumberBets, randomNumber)) | |
145 | 152 | then (randomNumber != 0) | |
146 | 153 | else false) | |
147 | 154 | then (betAmount * 3) | |
148 | 155 | else 0 | |
149 | 156 | else if ((size(selectedNumberBets) == 18)) | |
150 | 157 | then if (if (containsElement(selectedNumberBets, randomNumber)) | |
151 | 158 | then (randomNumber != 0) | |
152 | 159 | else false) | |
153 | 160 | then (betAmount * 2) | |
154 | 161 | else 0 | |
155 | 162 | else 0 | |
156 | 163 | } | |
157 | 164 | ||
158 | 165 | ||
159 | 166 | func R_getBetKey (i) = ("bet_Roulette_" + toString(i.caller)) | |
160 | 167 | ||
161 | 168 | ||
162 | 169 | func R_getBetAmountKey (i) = ("betAmount_Roulette_" + toString(i.caller)) | |
163 | 170 | ||
164 | 171 | ||
165 | 172 | func R_getSelectedNumbersKey (i) = ("selectedNumbers_Roulette_" + toString(i.caller)) | |
166 | 173 | ||
167 | 174 | ||
168 | 175 | func R_getDirectionKey (i) = ("direction_Roulette_" + toString(i.caller)) | |
169 | 176 | ||
170 | 177 | ||
171 | 178 | func R_getLogKey (i) = ((("log_Roulette_" + toString(i.caller)) + "_") + toBase58String(i.transactionId)) | |
172 | 179 | ||
173 | 180 | ||
174 | 181 | func R_getStatusKey (i) = ("status_Roulette_" + toString(i.caller)) | |
175 | 182 | ||
176 | 183 | ||
177 | 184 | func LW_getBetKey (i) = ("bet_LuckyWheel_" + toString(i.caller)) | |
178 | 185 | ||
179 | 186 | ||
180 | 187 | func LW_getWonKey (i) = ("won_LuckyWheel_" + toString(i.caller)) | |
181 | 188 | ||
182 | 189 | ||
183 | 190 | func LW_getRandomNumberKey (i) = ("randomNumber_LuckyWheel_" + toString(i.caller)) | |
184 | 191 | ||
185 | 192 | ||
186 | 193 | func LW_getLogKey (i) = ((("log_LuckyWheel_" + toString(i.caller)) + "_") + toBase58String(i.transactionId)) | |
187 | 194 | ||
188 | 195 | ||
189 | 196 | func LW_whatUserWon (value) = match value { | |
190 | 197 | case _ => | |
191 | 198 | if ((1 == $match0)) | |
192 | 199 | then numToWaves(2) | |
193 | 200 | else if ((3 == $match0)) | |
194 | 201 | then numToWaves(1) | |
195 | 202 | else if ((7 == $match0)) | |
196 | 203 | then numToWaves(6) | |
197 | 204 | else if ((9 == $match0)) | |
198 | 205 | then numToWaves(1) | |
199 | 206 | else 0 | |
200 | 207 | } | |
201 | 208 | ||
202 | 209 | ||
203 | 210 | func LW_getStatusKey (i) = ("status_Roulette_" + toString(i.caller)) | |
204 | 211 | ||
205 | 212 | ||
206 | 213 | @Callable(i) | |
207 | 214 | func Roulette_reveal_test (commitHeight,betAmount,selectedNumbers,direction) = { | |
208 | 215 | let randomNumber = getRandomRullet(commitHeight) | |
209 | 216 | let winningAmount = numToWaves(R_WinCalculator(randomNumber, betAmount, selectedNumbers, direction)) | |
210 | 217 | throw(((toString(randomNumber) + "|") + toString(winningAmount))) | |
211 | 218 | } | |
212 | 219 | ||
213 | 220 | ||
214 | 221 | ||
215 | 222 | @Callable(i) | |
216 | 223 | func AllVariantTest (commitHeight,betAmount) = { | |
217 | 224 | let randomNumber = getRandomRullet(commitHeight) | |
218 | 225 | let winningAmountRed = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "red")) | |
219 | 226 | let winningAmountBlack = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "black")) | |
220 | 227 | let winningAmountEven = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "even")) | |
221 | 228 | let winningAmountOdd = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "odd")) | |
222 | 229 | let winningAmount12x3_1 = numToWaves(R_WinCalculator(randomNumber, betAmount, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "")) | |
223 | 230 | let winningAmount12x3_2 = numToWaves(R_WinCalculator(randomNumber, betAmount, [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], "")) | |
224 | 231 | let winningAmount12x3_3 = numToWaves(R_WinCalculator(randomNumber, betAmount, [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], "")) | |
225 | 232 | 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], "")) | |
226 | 233 | 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], "")) | |
227 | 234 | 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))) | |
228 | 235 | } | |
229 | 236 | ||
230 | 237 |
github/deemru/w8io/026f985 49.69 ms ◑