tx · 2ZWNKTRB5hDrnQAqY42kGUR9m2ELMg4Zm77boSRVva8a

3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T:  -0.01000000 Waves

2023.06.07 15:49 [2612267] smart account 3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
48.59 ms