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