tx · H3pWq3WSbEvyfarWciMSnrPTTeVp9BbxBfSdc13p7nSc

3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T:  -0.01000000 Waves

2023.06.07 15:47 [2612264] smart account 3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T > SELF 0.00000000 Waves

{ "type": 13, "id": "H3pWq3WSbEvyfarWciMSnrPTTeVp9BbxBfSdc13p7nSc", "fee": 1000000, "feeAssetId": null, "timestamp": 1686142058773, "version": 2, "chainId": 84, "sender": "3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T", "senderPublicKey": "97sWz4UZWijkagGprhucQHR7b7nN6FfojMELnzuFEyY1", "proofs": [ "5PYQMj6RfFPshXAtUf8uWPxYYujbY1Z2Q6oW8R3eTMvjuMA54sg2SVu4Nbig9eSfMTqH5mMpjdpGakJ7kANqfjnQ" ], "script": "base64:BgIPCAISBQoDAREIEgASABIAFwEKbnVtVG9XYXZlcwEDbnVtCQBoAgUDbnVtAIDC1y8BC2lzUGF5bWVudE9rAgFpA3N1bQQRYWNjZXB0YWJsZUFzc2V0SWQBICJEpueIVH1RKK5qV7oPafp24Q53N+2oR6tSH2lNlEJHAwkAAAIJAJADAQgFAWkIcGF5bWVudHMAAAkAAgECFFBheW1lbnQgbm90IGF0dGFjaGVkBAFwCQCRAwIIBQFpCHBheW1lbnRzAAADCQAAAggFAXAHYXNzZXRJZAURYWNjZXB0YWJsZUFzc2V0SWQGBwELbWFwSW50VG9TdHICBWFjY3VtBG5leHQJAMwIAgkApAMBBQRuZXh0BQVhY2N1bQELbWFwU3RyVG9JbnQCBWFjY3VtBG5leHQJAMwIAgkBDXBhcnNlSW50VmFsdWUBBQRuZXh0BQVhY2N1bQELbWFwSW50VG9TdW0CBWFjY3VtBG5leHQJAGQCBQVhY2N1bQUEbmV4dAEMbGlzdEludFRvU3VtAQNhcnIKAAIkbAUDYXJyCgACJHMJAJADAQUCJGwKAAUkYWNjMAAACgEFJGYwXzECAiRhAiRpAwkAZwI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ZG9tTnVtYmVyS2V5AQUBaQUMcmFuZG9tTnVtYmVyCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQEMTFdfZ2V0TG9nS2V5AQUBaQUNd2lubmluZ0Ftb3VudAUDbmlsCQDMCAIJAQtEZWxldGVFbnRyeQEJAQxMV19nZXRCZXRLZXkBBQFpCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQEMTFdfZ2V0V29uS2V5AQUBaQUNd2lubmluZ0Ftb3VudAkAzAgCCQEMSW50ZWdlckVudHJ5AgkBFUxXX2dldFJhbmRvbU51bWJlcktleQEFAWkFDHJhbmRvbU51bWJlcgkAzAgCCQEMSW50ZWdlckVudHJ5AgkBDExXX2dldExvZ0tleQEFAWkFDXdpbm5pbmdBbW91bnQFA25pbAAj222b", "height": 2612264, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BhFAQbPCM1syNT4ASAS5yZXWqGiaNbhZfdrUyMjdNbrY Next: 2ZWNKTRB5hDrnQAqY42kGUR9m2ELMg4Zm77boSRVva8a Diff:
OldNewDifferences
1010 then throw("Payment not attached")
1111 else {
1212 let p = i.payments[0]
13- if (if ((p.assetId == acceptableAssetId))
14- then (p.amount >= numToWaves(sum))
15- else false)
13+ if ((p.assetId == acceptableAssetId))
1614 then true
1715 else false
1816 }
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'3JmaWyFqWo8YSA8x3DXCBUW7veesxacvKx19dMv7wTMg'
99 if ((size(i.payments) == 0))
1010 then throw("Payment not attached")
1111 else {
1212 let p = i.payments[0]
13- if (if ((p.assetId == acceptableAssetId))
14- then (p.amount >= numToWaves(sum))
15- else false)
13+ if ((p.assetId == acceptableAssetId))
1614 then true
1715 else false
1816 }
1917 }
2018
2119
2220 func mapIntToStr (accum,next) = toString(next) :: accum
2321
2422
2523 func mapStrToInt (accum,next) = parseIntValue(next) :: accum
2624
2725
2826 func mapIntToSum (accum,next) = (accum + next)
2927
3028
3129 func listIntToSum (arr) = {
3230 let $l = arr
3331 let $s = size($l)
3432 let $acc0 = 0
3533 func $f0_1 ($a,$i) = if (($i >= $s))
3634 then $a
3735 else mapIntToSum($a, $l[$i])
3836
3937 func $f0_2 ($a,$i) = if (($i >= $s))
4038 then $a
4139 else throw("List size exceeds 100")
4240
4341 $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($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
4442 }
4543
4644
4745 func listIntToListString (arr) = {
4846 let $l = arr
4947 let $s = size($l)
5048 let $acc0 = nil
5149 func $f0_1 ($a,$i) = if (($i >= $s))
5250 then $a
5351 else mapIntToStr($a, $l[$i])
5452
5553 func $f0_2 ($a,$i) = if (($i >= $s))
5654 then $a
5755 else throw("List size exceeds 100")
5856
5957 $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($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
6058 }
6159
6260
6361 func listStringToListIng (arr) = {
6462 let $l = arr
6563 let $s = size($l)
6664 let $acc0 = nil
6765 func $f0_1 ($a,$i) = if (($i >= $s))
6866 then $a
6967 else mapStrToInt($a, $l[$i])
7068
7169 func $f0_2 ($a,$i) = if (($i >= $s))
7270 then $a
7371 else throw("List size exceeds 100")
7472
7573 $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($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
7674 }
7775
7876
7977 func listStringCompressToString (arr) = makeString(arr, "|")
8078
8179
8280 func stringDecompressToListString (str) = split(str, "|")
8381
8482
8583 func listIntCompressToString (arr) = makeString(listIntToListString(arr), "|")
8684
8785
8886 func stringDecompressToListInt (arrStr) = listStringToListIng(split(arrStr, "|"))
8987
9088
9189 func LW_getBetKey (i) = ("bet_LuckyWheel_" + toString(i.caller))
9290
9391
9492 func LW_getWonKey (i) = ("won_LuckyWheel_" + toString(i.caller))
9593
9694
9795 func LW_getRandomNumberKey (i) = ("randomNumber_LuckyWheel_" + toString(i.caller))
9896
9997
10098 func LW_getLogKey (i) = ((("log_LuckyWheel_" + toString(i.caller)) + "_") + toBase58String(i.transactionId))
10199
102100
103101 func LW_whatUserWon (value) = match value {
104102 case _ =>
105103 if ((1 == $match0))
106104 then numToWaves(2)
107105 else if ((3 == $match0))
108106 then numToWaves(1)
109107 else if ((7 == $match0))
110108 then numToWaves(6)
111109 else if ((9 == $match0))
112110 then numToWaves(1)
113111 else 0
114112 }
115113
116114
117115 func R_WinCalculator (randomNumber,betAmount,selectedNumberBets,betDirection) = {
118116 let RED_SECTORS = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3]
119117 if (if ((size(selectedNumberBets) == 1))
120118 then (betDirection == "num")
121119 else false)
122120 then if ((selectedNumberBets[0] == randomNumber))
123121 then (betAmount * 36)
124122 else 0
125123 else if ((size(selectedNumberBets) == 2))
126124 then if (containsElement(selectedNumberBets, randomNumber))
127125 then (betAmount * 18)
128126 else 0
129127 else if ((size(selectedNumberBets) == 3))
130128 then if (containsElement(selectedNumberBets, randomNumber))
131129 then (betAmount * 12)
132130 else 0
133131 else if ((size(selectedNumberBets) == 4))
134132 then if (containsElement(selectedNumberBets, randomNumber))
135133 then (betAmount * 9)
136134 else 0
137135 else if ((size(selectedNumberBets) == 12))
138136 then if (containsElement(selectedNumberBets, randomNumber))
139137 then (betAmount * 3)
140138 else 0
141139 else if ((betDirection == "red"))
142140 then if (containsElement(RED_SECTORS, randomNumber))
143141 then (betAmount * 2)
144142 else 0
145143 else if ((betDirection == "black"))
146144 then if (if (!(containsElement(RED_SECTORS, randomNumber)))
147145 then (randomNumber != 0)
148146 else false)
149147 then (betAmount * 2)
150148 else 0
151149 else if ((betDirection == "odd"))
152150 then if (((randomNumber % 2) != 0))
153151 then (betAmount * 2)
154152 else 0
155153 else if ((betDirection == "even"))
156154 then if (((randomNumber % 2) == 0))
157155 then (betAmount * 2)
158156 else 0
159157 else if ((size(selectedNumberBets) == 18))
160158 then if (containsElement(selectedNumberBets, randomNumber))
161159 then (betAmount * 2)
162160 else 0
163161 else 0
164162 }
165163
166164
167165 func R_getBetKey (i) = ("bet_Roulette_" + toString(i.caller))
168166
169167
170168 func R_getBetAmountKey (i) = ("betAmount_Roulette_" + toString(i.caller))
171169
172170
173171 func R_getSelectedNumbersKey (i) = ("selectedNumbers_Roulette_" + toString(i.caller))
174172
175173
176174 func R_getDirectionKey (i) = ("direction_Roulette_" + toString(i.caller))
177175
178176
179177 func R_getLogKey (i) = ((("log_Roulette_" + toString(i.caller)) + "_") + toBase58String(i.transactionId))
180178
181179
182180 @Callable(i)
183181 func Roulette_commit (betAmount,selectedNumberBets,betDirection) = if (!(isPaymentOk(i, betAmount)))
184182 then throw("Wrong payment amount or asset")
185183 else [IntegerEntry(R_getBetKey(i), (height + 1)), IntegerEntry(R_getBetAmountKey(i), betAmount), StringEntry(R_getSelectedNumbersKey(i), listIntCompressToString(selectedNumberBets)), StringEntry(R_getDirectionKey(i), betDirection)]
186184
187185
188186
189187 @Callable(i)
190188 func Roulette_reveal () = {
191189 let commitHeight = valueOrErrorMessage(getIntegerValue(R_getBetKey(i)), "Bet not found")
192190 let betAmount = valueOrErrorMessage(getIntegerValue(R_getBetAmountKey(i)), "Bet amount not found")
193191 let selectedNumbersStr = valueOrErrorMessage(getStringValue(R_getSelectedNumbersKey(i)), "Selected numbers not found")
194192 let direction = valueOrErrorMessage(getStringValue(R_getDirectionKey(i)), "Direction not found")
195193 let selectedNumbers = stringDecompressToListInt(selectedNumbersStr)
196194 if ((commitHeight > height))
197195 then throw((("Wait " + toString((commitHeight - height))) + " blocks to reveal this id"))
198196 else {
199197 let revealBlock = valueOrErrorMessage(blockInfoByHeight(commitHeight), "unexcpected error")
200198 let vrf = valueOrErrorMessage(revealBlock.vrf, "unexcpected error")
201199 let randomHash = sha256(value(vrf))
202200 let randomNumber = (toInt(randomHash, 16) % 37)
203201 let winningAmount = R_WinCalculator(randomNumber, betAmount, selectedNumbers, direction)
204202 if ((winningAmount > 0))
205203 then [DeleteEntry(R_getBetKey(i)), DeleteEntry(R_getBetAmountKey(i)), DeleteEntry(R_getSelectedNumbersKey(i)), DeleteEntry(R_getDirectionKey(i)), ScriptTransfer(i.caller, winningAmount, unit), IntegerEntry(R_getLogKey(i), winningAmount)]
206204 else [DeleteEntry(R_getBetKey(i)), DeleteEntry(R_getBetAmountKey(i)), DeleteEntry(R_getSelectedNumbersKey(i)), DeleteEntry(R_getDirectionKey(i)), IntegerEntry(R_getLogKey(i), winningAmount)]
207205 }
208206 }
209207
210208
211209
212210 @Callable(i)
213211 func LuckyWheel_commit () = if (!(isPaymentOk(i, 1)))
214212 then throw("Wrong payment amount or asset")
215213 else [IntegerEntry(LW_getBetKey(i), (height + 1)), DeleteEntry(LW_getRandomNumberKey(i)), DeleteEntry(LW_getWonKey(i))]
216214
217215
218216
219217 @Callable(i)
220218 func LuckyWheel_reveal () = {
221219 let commitHeight = valueOrErrorMessage(getIntegerValue(LW_getBetKey(i)), "Bet not found")
222220 if ((commitHeight > height))
223221 then throw((("Wait " + toString((commitHeight - height))) + " blocks to reveal this id"))
224222 else {
225223 let revealBlock = valueOrErrorMessage(blockInfoByHeight(commitHeight), "unexcpected error")
226224 let vrf = valueOrErrorMessage(revealBlock.vrf, "unexcpected error")
227225 let randomHash = sha256(value(vrf))
228226 let randomNumber = (toInt(randomHash, 16) % 12)
229227 let winningAmount = LW_whatUserWon(randomNumber)
230228 if ((winningAmount > 0))
231229 then [DeleteEntry(LW_getBetKey(i)), ScriptTransfer(i.caller, winningAmount, unit), IntegerEntry(LW_getWonKey(i), winningAmount), IntegerEntry(LW_getRandomNumberKey(i), randomNumber), IntegerEntry(LW_getLogKey(i), winningAmount)]
232230 else [DeleteEntry(LW_getBetKey(i)), IntegerEntry(LW_getWonKey(i), winningAmount), IntegerEntry(LW_getRandomNumberKey(i), randomNumber), IntegerEntry(LW_getLogKey(i), winningAmount)]
233231 }
234232 }
235233
236234

github/deemru/w8io/026f985 
50.99 ms