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:BgIVCAISAwoBARIGCgQBAREIEgQKAgEBGwEKbnVtVG9XYXZlcwEDbnVtCQBoAgUDbnVtAIDC1y8BC2lzUGF5bWVudE9rAgFpA3N1bQQRYWNjZXB0YWJsZUFzc2V0SWQBBBOr2TMEAXAJAJEDAggFAWkIcGF5bWVudHMAAAMJAGcCCAUBcAZhbW91bnQJAQpudW1Ub1dhdmVzAQUDc3VtCQAAAggFAXAHYXNzZXRJZAUEdW5pdAcBC21hcEludFRvU3RyAgVhY2N1bQRuZXh0CQDMCAIJAKQDAQUEbmV4dAUFYWNjdW0BC21hcFN0clRvSW50AgVhY2N1bQRuZXh0CQDMCAIJAQ1wYXJzZUludFZhbHVlAQUEbmV4dAUFYWNjdW0BC21hcEludFRvU3VtAgVhY2N1bQRuZXh0CQBkAgUFYWNjdW0FBG5leHQBDGxpc3RJbnRUb1N1bQEDYXJyCgACJGwFA2FycgoAAiRzCQCQAwEFAiRsCgAFJGFjYzAAAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQELbWFwSW50VG9TdW0CBQIkYQkAkQMCBQIk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6CQCkAwEFDHJhbmRvbU51bWJlcgISfHdpbm5pbmdBbW91bnRSZWQ6CQCkAwEFEHdpbm5pbmdBbW91bnRSZWQCFHx3aW5uaW5nQW1vdW50QmxhY2s6CQCkAwEFEndpbm5pbmdBbW91bnRCbGFjawITfHdpbm5pbmdBbW91bnRFdmVuOgkApAMBBRF3aW5uaW5nQW1vdW50RXZlbgISfHdpbm5pbmdBbW91bnRPZGQ6CQCkAwEFEHdpbm5pbmdBbW91bnRPZGQCFXx3aW5uaW5nQW1vdW50MTJ4M18xOgkApAMBBRN3aW5uaW5nQW1vdW50MTJ4M18xAhV8d2lubmluZ0Ftb3VudDEyeDNfMjoJAKQDAQUTd2lubmluZ0Ftb3VudDEyeDNfMgIVfHdpbm5pbmdBbW91bnQxMngzXzM6CQCkAwEFE3dpbm5pbmdBbW91bnQxMngzXzMCFXx3aW5uaW5nQW1vdW50MTh4Ml8xOgkApAMBBRN3aW5uaW5nQW1vdW50MTh4Ml8xAhV8d2lubmluZ0Ftb3VudDE4eDJfMjoJAKQDAQUTd2lubmluZ0Ftb3VudDE4eDJfMgAWZEbg", "height": 2620792, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CfN4E9pGycMAVXrcpJmjbkJjtyY2uqfuhaFzYiNtoDBb Next: 7bSkxJTkF5oTtxxafmWjcbqU1po8ZFpeuBRqCwRZm2cQ 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 - | |
97 | + | let randomHash2 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 2)))) | |
98 | 98 | let hashInt2 = toInt(randomHash2, 24) | |
99 | + | let randomHash3 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 4)))) | |
100 | + | let hashInt3 = toInt(randomHash3, 24) | |
99 | 101 | let randomNumber = (hashInt % 37) | |
100 | 102 | let randomNumber2 = (hashInt2 % 37) | |
101 | - | randomNumber | |
103 | + | if (((randomNumber % 2) != 0)) | |
104 | + | then randomNumber2 | |
105 | + | else 0 | |
102 | 106 | } | |
103 | 107 | ||
104 | 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 - | |
97 | + | let randomHash2 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 2)))) | |
98 | 98 | let hashInt2 = toInt(randomHash2, 24) | |
99 | + | let randomHash3 = sha256((value(value(blockInfoByHeight(commitHeight)).vrf) + toBytes((commitHeight - 4)))) | |
100 | + | let hashInt3 = toInt(randomHash3, 24) | |
99 | 101 | let randomNumber = (hashInt % 37) | |
100 | 102 | let randomNumber2 = (hashInt2 % 37) | |
101 | - | randomNumber | |
103 | + | if (((randomNumber % 2) != 0)) | |
104 | + | then randomNumber2 | |
105 | + | else 0 | |
102 | 106 | } | |
103 | 107 | ||
104 | 108 | ||
105 | 109 | func R_WinCalculator (randomNumber,betAmount,selectedNumberBets,betDirection) = { | |
106 | 110 | let RED_SECTORS = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3] | |
107 | 111 | let BLACK_SECTORS = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35] | |
108 | 112 | if ((betDirection == "red")) | |
109 | 113 | then if (containsElement(RED_SECTORS, randomNumber)) | |
110 | 114 | then (betAmount * 2) | |
111 | 115 | else 0 | |
112 | 116 | else if ((betDirection == "black")) | |
113 | 117 | then if (containsElement(BLACK_SECTORS, randomNumber)) | |
114 | 118 | then (betAmount * 2) | |
115 | 119 | else 0 | |
116 | 120 | else if ((betDirection == "odd")) | |
117 | 121 | then if (if (((randomNumber % 2) == 0)) | |
118 | 122 | then (randomNumber != 0) | |
119 | 123 | else false) | |
120 | 124 | then (betAmount * 2) | |
121 | 125 | else 0 | |
122 | 126 | else if ((betDirection == "even")) | |
123 | 127 | then if (if (((randomNumber % 2) != 0)) | |
124 | 128 | then (randomNumber != 0) | |
125 | 129 | else false) | |
126 | 130 | then (betAmount * 2) | |
127 | 131 | else 0 | |
128 | 132 | else if (if ((size(selectedNumberBets) == 1)) | |
129 | 133 | then (betDirection == "num") | |
130 | 134 | else false) | |
131 | 135 | then if ((selectedNumberBets[0] == randomNumber)) | |
132 | 136 | then (betAmount * 36) | |
133 | 137 | else 0 | |
134 | 138 | else if ((size(selectedNumberBets) == 2)) | |
135 | 139 | then if (containsElement(selectedNumberBets, randomNumber)) | |
136 | 140 | then (betAmount * 18) | |
137 | 141 | else 0 | |
138 | 142 | else if ((size(selectedNumberBets) == 3)) | |
139 | 143 | then if (containsElement(selectedNumberBets, randomNumber)) | |
140 | 144 | then (betAmount * 12) | |
141 | 145 | else 0 | |
142 | 146 | else if ((size(selectedNumberBets) == 4)) | |
143 | 147 | then if (containsElement(selectedNumberBets, randomNumber)) | |
144 | 148 | then (betAmount * 9) | |
145 | 149 | else 0 | |
146 | 150 | else if ((size(selectedNumberBets) == 12)) | |
147 | 151 | then if (if (containsElement(selectedNumberBets, randomNumber)) | |
148 | 152 | then (randomNumber != 0) | |
149 | 153 | else false) | |
150 | 154 | then (betAmount * 3) | |
151 | 155 | else 0 | |
152 | 156 | else if ((size(selectedNumberBets) == 18)) | |
153 | 157 | then if (if (containsElement(selectedNumberBets, randomNumber)) | |
154 | 158 | then (randomNumber != 0) | |
155 | 159 | else false) | |
156 | 160 | then (betAmount * 2) | |
157 | 161 | else 0 | |
158 | 162 | else 0 | |
159 | 163 | } | |
160 | 164 | ||
161 | 165 | ||
162 | 166 | func R_getBetKey (i) = ("bet_Roulette_" + toString(i.caller)) | |
163 | 167 | ||
164 | 168 | ||
165 | 169 | func R_getBetAmountKey (i) = ("betAmount_Roulette_" + toString(i.caller)) | |
166 | 170 | ||
167 | 171 | ||
168 | 172 | func R_getSelectedNumbersKey (i) = ("selectedNumbers_Roulette_" + toString(i.caller)) | |
169 | 173 | ||
170 | 174 | ||
171 | 175 | func R_getDirectionKey (i) = ("direction_Roulette_" + toString(i.caller)) | |
172 | 176 | ||
173 | 177 | ||
174 | 178 | func R_getLogKey (i) = ((("log_Roulette_" + toString(i.caller)) + "_") + toBase58String(i.transactionId)) | |
175 | 179 | ||
176 | 180 | ||
177 | 181 | func R_getStatusKey (i) = ("status_Roulette_" + toString(i.caller)) | |
178 | 182 | ||
179 | 183 | ||
180 | 184 | func LW_getBetKey (i) = ("bet_LuckyWheel_" + toString(i.caller)) | |
181 | 185 | ||
182 | 186 | ||
183 | 187 | func LW_getWonKey (i) = ("won_LuckyWheel_" + toString(i.caller)) | |
184 | 188 | ||
185 | 189 | ||
186 | 190 | func LW_getRandomNumberKey (i) = ("randomNumber_LuckyWheel_" + toString(i.caller)) | |
187 | 191 | ||
188 | 192 | ||
189 | 193 | func LW_getLogKey (i) = ((("log_LuckyWheel_" + toString(i.caller)) + "_") + toBase58String(i.transactionId)) | |
190 | 194 | ||
191 | 195 | ||
192 | 196 | func LW_whatUserWon (value) = match value { | |
193 | 197 | case _ => | |
194 | 198 | if ((1 == $match0)) | |
195 | 199 | then numToWaves(2) | |
196 | 200 | else if ((3 == $match0)) | |
197 | 201 | then numToWaves(1) | |
198 | 202 | else if ((7 == $match0)) | |
199 | 203 | then numToWaves(6) | |
200 | 204 | else if ((9 == $match0)) | |
201 | 205 | then numToWaves(1) | |
202 | 206 | else 0 | |
203 | 207 | } | |
204 | 208 | ||
205 | 209 | ||
206 | 210 | func LW_getStatusKey (i) = ("status_Roulette_" + toString(i.caller)) | |
207 | 211 | ||
208 | 212 | ||
209 | 213 | @Callable(i) | |
210 | 214 | func test_num (commitHeight) = { | |
211 | 215 | let randomNumber = getRandomRullet(commitHeight) | |
212 | 216 | throw(toString(randomNumber)) | |
213 | 217 | } | |
214 | 218 | ||
215 | 219 | ||
216 | 220 | ||
217 | 221 | @Callable(i) | |
218 | 222 | func Roulette_reveal_test (commitHeight,betAmount,selectedNumbers,direction) = { | |
219 | 223 | let randomNumber = getRandomRullet(commitHeight) | |
220 | 224 | let winningAmount = numToWaves(R_WinCalculator(randomNumber, betAmount, selectedNumbers, direction)) | |
221 | 225 | throw(((toString(randomNumber) + "|") + toString(winningAmount))) | |
222 | 226 | } | |
223 | 227 | ||
224 | 228 | ||
225 | 229 | ||
226 | 230 | @Callable(i) | |
227 | 231 | func AllVariantTest (commitHeight,betAmount) = { | |
228 | 232 | let randomNumber = getRandomRullet(commitHeight) | |
229 | 233 | let winningAmountRed = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "red")) | |
230 | 234 | let winningAmountBlack = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "black")) | |
231 | 235 | let winningAmountEven = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "even")) | |
232 | 236 | let winningAmountOdd = numToWaves(R_WinCalculator(randomNumber, betAmount, nil, "odd")) | |
233 | 237 | let winningAmount12x3_1 = numToWaves(R_WinCalculator(randomNumber, betAmount, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "")) | |
234 | 238 | let winningAmount12x3_2 = numToWaves(R_WinCalculator(randomNumber, betAmount, [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], "")) | |
235 | 239 | let winningAmount12x3_3 = numToWaves(R_WinCalculator(randomNumber, betAmount, [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], "")) | |
236 | 240 | 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], "")) | |
237 | 241 | 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], "")) | |
238 | 242 | 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))) | |
239 | 243 | } | |
240 | 244 | ||
241 | 245 |
github/deemru/w8io/026f985 51.23 ms ◑