tx · 9hbJ7nJv346QCa65WgNCAkwJcXjc8tHY95FusA95d4oR

3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T:  -0.01000000 Waves

2023.06.07 16:01 [2612280] smart account 3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T > SELF 0.00000000 Waves

{ "type": 13, "id": "9hbJ7nJv346QCa65WgNCAkwJcXjc8tHY95FusA95d4oR", "fee": 1000000, "feeAssetId": null, "timestamp": 1686142943268, "version": 2, "chainId": 84, "sender": "3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T", "senderPublicKey": "97sWz4UZWijkagGprhucQHR7b7nN6FfojMELnzuFEyY1", "proofs": [ "f1hQihZrDUhcCGX7KGeRFTyMHye1MoTJqj1G3aAKJV91MMjEhkE11sLVip5fAEHCsDSUMn22MsUrn5YbomW8RN5" ], "script": "base64:BgIPCAISBQoDAREIEgASABIAFwEKbnVtVG9XYXZlcwEDbnVtCQBoAgUDbnVtAIDC1y8BC2lzUGF5bWVudE9rAgFpA3N1bQQRYWNjZXB0YWJsZUFzc2V0SWQBICJEpueIVH1RKK5qV7oPafp24Q53N+2oR6tSH2lNlEJHBAFwCQCRAwIIBQFpCHBheW1lbnRzAAAEByRtYXRjaDAIBQFwB2Fzc2V0SWQJAGcCCAUBcAZhbW91bnQJAQpudW1Ub1dhdmVzAQUDc3VtAQttYXBJbnRUb1N0cgIFYWNjdW0EbmV4dAkAzAgCCQCkAwEFBG5leHQFBWFjY3VtAQttYXBTdHJUb0ludAIFYWNjdW0EbmV4dAkAzAgCCQENcGFyc2VJbnRWYWx1ZQEFBG5leHQFBWFjY3VtAQttYXBJbnRUb1N1bQIFYWNjdW0EbmV4dAkAZAIFBWFjY3VtBQRuZXh0AQxsaXN0SW50VG9TdW0BA2FycgoAAiRsBQNhcnIKAAIkcwkAkAMBBQIkbAoABSRhY2MwAAAKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBC21hcEludFRvU3VtAgUCJGEJAJE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BBQFpBQxyYW5kb21OdW1iZXIJAMwIAgkBDEludGVnZXJFbnRyeQIJAQxMV19nZXRMb2dLZXkBBQFpBQ13aW5uaW5nQW1vdW50BQNuaWwJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBDExXX2dldEJldEtleQEFAWkJAMwIAgkBDEludGVnZXJFbnRyeQIJAQxMV19nZXRXb25LZXkBBQFpBQ13aW5uaW5nQW1vdW50CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQEVTFdfZ2V0UmFuZG9tTnVtYmVyS2V5AQUBaQUMcmFuZG9tTnVtYmVyCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQEMTFdfZ2V0TG9nS2V5AQUBaQUNd2lubmluZ0Ftb3VudAUDbmlsAH6uNNM=", "height": 2612280, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2ZWNKTRB5hDrnQAqY42kGUR9m2ELMg4Zm77boSRVva8a Next: CLEC5yPeYwdCBuzY48jHxuDmcPHUEHbNrJDfRX9EZgwN Diff:
OldNewDifferences
77 func isPaymentOk (i,sum) = {
88 let acceptableAssetId = base58'3JmaWyFqWo8YSA8x3DXCBUW7veesxacvKx19dMv7wTMg'
99 let p = i.payments[0]
10- if (if ((size(i.payments) == 0))
11- then true
12- else (p.assetId != acceptableAssetId))
13- then throw("Payment not attached")
14- else true
10+ match p.assetId {
11+ case _ =>
12+ (p.amount >= numToWaves(sum))
13+ }
1514 }
1615
1716
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 let p = i.payments[0]
10- if (if ((size(i.payments) == 0))
11- then true
12- else (p.assetId != acceptableAssetId))
13- then throw("Payment not attached")
14- else true
10+ match p.assetId {
11+ case _ =>
12+ (p.amount >= numToWaves(sum))
13+ }
1514 }
1615
1716
1817 func mapIntToStr (accum,next) = toString(next) :: accum
1918
2019
2120 func mapStrToInt (accum,next) = parseIntValue(next) :: accum
2221
2322
2423 func mapIntToSum (accum,next) = (accum + next)
2524
2625
2726 func listIntToSum (arr) = {
2827 let $l = arr
2928 let $s = size($l)
3029 let $acc0 = 0
3130 func $f0_1 ($a,$i) = if (($i >= $s))
3231 then $a
3332 else mapIntToSum($a, $l[$i])
3433
3534 func $f0_2 ($a,$i) = if (($i >= $s))
3635 then $a
3736 else throw("List size exceeds 100")
3837
3938 $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)
4039 }
4140
4241
4342 func listIntToListString (arr) = {
4443 let $l = arr
4544 let $s = size($l)
4645 let $acc0 = nil
4746 func $f0_1 ($a,$i) = if (($i >= $s))
4847 then $a
4948 else mapIntToStr($a, $l[$i])
5049
5150 func $f0_2 ($a,$i) = if (($i >= $s))
5251 then $a
5352 else throw("List size exceeds 100")
5453
5554 $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)
5655 }
5756
5857
5958 func listStringToListIng (arr) = {
6059 let $l = arr
6160 let $s = size($l)
6261 let $acc0 = nil
6362 func $f0_1 ($a,$i) = if (($i >= $s))
6463 then $a
6564 else mapStrToInt($a, $l[$i])
6665
6766 func $f0_2 ($a,$i) = if (($i >= $s))
6867 then $a
6968 else throw("List size exceeds 100")
7069
7170 $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)
7271 }
7372
7473
7574 func listStringCompressToString (arr) = makeString(arr, "|")
7675
7776
7877 func stringDecompressToListString (str) = split(str, "|")
7978
8079
8180 func listIntCompressToString (arr) = makeString(listIntToListString(arr), "|")
8281
8382
8483 func stringDecompressToListInt (arrStr) = listStringToListIng(split(arrStr, "|"))
8584
8685
8786 func LW_getBetKey (i) = ("bet_LuckyWheel_" + toString(i.caller))
8887
8988
9089 func LW_getWonKey (i) = ("won_LuckyWheel_" + toString(i.caller))
9190
9291
9392 func LW_getRandomNumberKey (i) = ("randomNumber_LuckyWheel_" + toString(i.caller))
9493
9594
9695 func LW_getLogKey (i) = ((("log_LuckyWheel_" + toString(i.caller)) + "_") + toBase58String(i.transactionId))
9796
9897
9998 func LW_whatUserWon (value) = match value {
10099 case _ =>
101100 if ((1 == $match0))
102101 then numToWaves(2)
103102 else if ((3 == $match0))
104103 then numToWaves(1)
105104 else if ((7 == $match0))
106105 then numToWaves(6)
107106 else if ((9 == $match0))
108107 then numToWaves(1)
109108 else 0
110109 }
111110
112111
113112 func R_WinCalculator (randomNumber,betAmount,selectedNumberBets,betDirection) = {
114113 let RED_SECTORS = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3]
115114 if (if ((size(selectedNumberBets) == 1))
116115 then (betDirection == "num")
117116 else false)
118117 then if ((selectedNumberBets[0] == randomNumber))
119118 then (betAmount * 36)
120119 else 0
121120 else if ((size(selectedNumberBets) == 2))
122121 then if (containsElement(selectedNumberBets, randomNumber))
123122 then (betAmount * 18)
124123 else 0
125124 else if ((size(selectedNumberBets) == 3))
126125 then if (containsElement(selectedNumberBets, randomNumber))
127126 then (betAmount * 12)
128127 else 0
129128 else if ((size(selectedNumberBets) == 4))
130129 then if (containsElement(selectedNumberBets, randomNumber))
131130 then (betAmount * 9)
132131 else 0
133132 else if ((size(selectedNumberBets) == 12))
134133 then if (containsElement(selectedNumberBets, randomNumber))
135134 then (betAmount * 3)
136135 else 0
137136 else if ((betDirection == "red"))
138137 then if (containsElement(RED_SECTORS, randomNumber))
139138 then (betAmount * 2)
140139 else 0
141140 else if ((betDirection == "black"))
142141 then if (if (!(containsElement(RED_SECTORS, randomNumber)))
143142 then (randomNumber != 0)
144143 else false)
145144 then (betAmount * 2)
146145 else 0
147146 else if ((betDirection == "odd"))
148147 then if (((randomNumber % 2) != 0))
149148 then (betAmount * 2)
150149 else 0
151150 else if ((betDirection == "even"))
152151 then if (((randomNumber % 2) == 0))
153152 then (betAmount * 2)
154153 else 0
155154 else if ((size(selectedNumberBets) == 18))
156155 then if (containsElement(selectedNumberBets, randomNumber))
157156 then (betAmount * 2)
158157 else 0
159158 else 0
160159 }
161160
162161
163162 func R_getBetKey (i) = ("bet_Roulette_" + toString(i.caller))
164163
165164
166165 func R_getBetAmountKey (i) = ("betAmount_Roulette_" + toString(i.caller))
167166
168167
169168 func R_getSelectedNumbersKey (i) = ("selectedNumbers_Roulette_" + toString(i.caller))
170169
171170
172171 func R_getDirectionKey (i) = ("direction_Roulette_" + toString(i.caller))
173172
174173
175174 func R_getLogKey (i) = ((("log_Roulette_" + toString(i.caller)) + "_") + toBase58String(i.transactionId))
176175
177176
178177 @Callable(i)
179178 func Roulette_commit (betAmount,selectedNumberBets,betDirection) = if (!(isPaymentOk(i, betAmount)))
180179 then throw("Wrong payment amount or asset")
181180 else [IntegerEntry(R_getBetKey(i), (height + 1)), IntegerEntry(R_getBetAmountKey(i), betAmount), StringEntry(R_getSelectedNumbersKey(i), listIntCompressToString(selectedNumberBets)), StringEntry(R_getDirectionKey(i), betDirection)]
182181
183182
184183
185184 @Callable(i)
186185 func Roulette_reveal () = {
187186 let commitHeight = valueOrErrorMessage(getIntegerValue(R_getBetKey(i)), "Bet not found")
188187 let betAmount = valueOrErrorMessage(getIntegerValue(R_getBetAmountKey(i)), "Bet amount not found")
189188 let selectedNumbersStr = valueOrErrorMessage(getStringValue(R_getSelectedNumbersKey(i)), "Selected numbers not found")
190189 let direction = valueOrErrorMessage(getStringValue(R_getDirectionKey(i)), "Direction not found")
191190 let selectedNumbers = stringDecompressToListInt(selectedNumbersStr)
192191 if ((commitHeight > height))
193192 then throw((("Wait " + toString((commitHeight - height))) + " blocks to reveal this id"))
194193 else {
195194 let revealBlock = valueOrErrorMessage(blockInfoByHeight(commitHeight), "unexcpected error")
196195 let vrf = valueOrErrorMessage(revealBlock.vrf, "unexcpected error")
197196 let randomHash = sha256(value(vrf))
198197 let randomNumber = (toInt(randomHash, 16) % 37)
199198 let winningAmount = R_WinCalculator(randomNumber, betAmount, selectedNumbers, direction)
200199 if ((winningAmount > 0))
201200 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)]
202201 else [DeleteEntry(R_getBetKey(i)), DeleteEntry(R_getBetAmountKey(i)), DeleteEntry(R_getSelectedNumbersKey(i)), DeleteEntry(R_getDirectionKey(i)), IntegerEntry(R_getLogKey(i), winningAmount)]
203202 }
204203 }
205204
206205
207206
208207 @Callable(i)
209208 func LuckyWheel_commit () = if (!(isPaymentOk(i, 1)))
210209 then throw("Wrong payment amount or asset")
211210 else [IntegerEntry(LW_getBetKey(i), (height + 1)), DeleteEntry(LW_getRandomNumberKey(i)), DeleteEntry(LW_getWonKey(i))]
212211
213212
214213
215214 @Callable(i)
216215 func LuckyWheel_reveal () = {
217216 let commitHeight = valueOrErrorMessage(getIntegerValue(LW_getBetKey(i)), "Bet not found")
218217 if ((commitHeight > height))
219218 then throw((("Wait " + toString((commitHeight - height))) + " blocks to reveal this id"))
220219 else {
221220 let revealBlock = valueOrErrorMessage(blockInfoByHeight(commitHeight), "unexcpected error")
222221 let vrf = valueOrErrorMessage(revealBlock.vrf, "unexcpected error")
223222 let randomHash = sha256(value(vrf))
224223 let randomNumber = (toInt(randomHash, 16) % 12)
225224 let winningAmount = LW_whatUserWon(randomNumber)
226225 if ((winningAmount > 0))
227226 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)]
228227 else [DeleteEntry(LW_getBetKey(i)), IntegerEntry(LW_getWonKey(i), winningAmount), IntegerEntry(LW_getRandomNumberKey(i), randomNumber), IntegerEntry(LW_getLogKey(i), winningAmount)]
229228 }
230229 }
231230
232231

github/deemru/w8io/026f985 
53.70 ms