tx · 8hiNLS1DXzhBP3MvKSsZohoW5QShVrHdAn5S8aq5Brmi

3N8mB685DHj1jER6q33drLYFusBVtxrRame:  -0.01000000 Waves

2023.06.20 10:32 [2630665] smart account 3N8mB685DHj1jER6q33drLYFusBVtxrRame > SELF 0.00000000 Waves

{ "type": 13, "id": "8hiNLS1DXzhBP3MvKSsZohoW5QShVrHdAn5S8aq5Brmi", "fee": 1000000, "feeAssetId": null, "timestamp": 1687246434407, "version": 2, "chainId": 84, "sender": "3N8mB685DHj1jER6q33drLYFusBVtxrRame", "senderPublicKey": "jk6fUkpq9pS4xCNgvJPDbFjWiZVCf9zoog6Gtmb8EtD", "proofs": [ "2m9JL8Ah9HgF6znAtP56hU4BtabEG4tAdtbC6tNBsuZ3LScxYEmbj6brEk88GqeDHnCwBSk4v7JoMcMLUZttMHWA" ], "script": "base64:BgIJCAISAwoBARIAIQEKbnVtVG9XYXZlcwEDbnVtCQBoAgUDbnVtAIDC1y8BC2lzUGF5bWVudE9rAgFpA3N1bQQRYWNjZXB0YWJsZUFzc2V0SWQBBBOr2TMEAXAJAJEDAggFAWkIcGF5bWVudHMAAAMJAGcCCAUBcAZhbW91bnQJAQpudW1Ub1dhdmVzAQUDc3VtCQAAAggFAXAHYXNzZXRJZAUEdW5pdAcBC21hcEludFRvU3RyAgVhY2N1bQRuZXh0CQDMCAIJAKQDAQUEbmV4dAUFYWNjdW0BC21hcFN0clRvSW50AgVhY2N1bQRuZXh0CQDMCAIJAQ1wYXJzZUludFZhbHVlAQUEbmV4dAUFYWNjdW0BC21hcEludFRvU3VtAgVhY2N1bQRuZXh0CQBkAgUFYWNjdW0FBG5leHQBDGxpc3RJbnRUb1N1bQEDYXJyCgACJGwFA2FycgoAAiRzCQCQAwEFAiRsCgAFJGFjYzAAAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQELbWFwSW50VG9TdW0CBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAg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91bnQ6IAkApAMBBQliZXRBbW91bnQDCQBmAgUNd2lubmluZ0Ftb3VudAAACQDMCAIJAQtEZWxldGVFbnRyeQEJAQxTTV9nZXRCZXRLZXkBBQFpCQDMCAIJAQtEZWxldGVFbnRyeQEJARJTTV9nZXRCZXRBbW91bnRLZXkBBQFpCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgUNd2lubmluZ0Ftb3VudAUEdW5pdAkAzAgCCQELU3RyaW5nRW50cnkCCQEMU01fZ2V0TG9nS2V5AQUBaQUGbG9nU3RyCQDMCAIJAQtTdHJpbmdFbnRyeQIJAQ9TTV9nZXRTdGF0dXNLZXkBBQFpBQlzdGF0dXNTdHIFA25pbAkAzAgCCQELRGVsZXRlRW50cnkBCQEMU01fZ2V0QmV0S2V5AQUBaQkAzAgCCQELRGVsZXRlRW50cnkBCQESU01fZ2V0QmV0QW1vdW50S2V5AQUBaQkAzAgCCQELU3RyaW5nRW50cnkCCQEMU01fZ2V0TG9nS2V5AQUBaQUGbG9nU3RyCQDMCAIJAQtTdHJpbmdFbnRyeQIJAQ9TTV9nZXRTdGF0dXNLZXkBBQFpBQlzdGF0dXNTdHIFA25pbADi8Cjk", "height": 2630665, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8A2eeXo63p65V9LfZHerbXJnotXYNFRS1fGE71iKhnrF Next: 7ubHbJWRL9SGZYvdYXcwUgwKcTPuzxu5zUbbasGtwzzD Diff:
OldNewDifferences
212212 func ai (d) = ("status_SM_" + toString(d.caller))
213213
214214
215-func aj (E) = {
215+func aj (d) = ((("log_SM_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
216+
217+
218+func ak (E) = {
216219 let H = sha256((value(value(blockInfoByHeight(E)).vrf) + toBytes(E)))
217220 let K = toInt(H, 24)
218221 let L = (K % 6)
219- let ak = sha256((value(value(blockInfoByHeight((E - ((L + 10) * 3000)))).vrf) + toBytes((L + 10))))
220- let al = toInt(ak, 24)
221- let am = (al % 6)
222- let an = sha256((value(value(blockInfoByHeight((E - ((am + 60) * 1100)))).vrf) + toBytes((am + 60))))
223- let ao = toInt(an, 24)
224- let ap = (ao % 6)
225-[L, am, ap]
222+ let al = sha256((value(value(blockInfoByHeight((E - ((L + 10) * 3000)))).vrf) + toBytes((L + 10))))
223+ let am = toInt(al, 24)
224+ let an = (am % 6)
225+ let ao = sha256((value(value(blockInfoByHeight((E - ((an + 60) * 1100)))).vrf) + toBytes((an + 60))))
226+ let ap = toInt(ao, 24)
227+ let aq = (ap % 6)
228+[L, an, aq]
226229 }
230+
231+
232+func ar (as,at) = if (if ((as[0] == as[1]))
233+ then (as[1] == as[2])
234+ else false)
235+ then if ((as[0] == 0))
236+ then (at * 10)
237+ else if ((as[0] == 1))
238+ then (at * 5)
239+ else (at * 3)
240+ else 0
227241
228242
229243 @Callable(d)
243257 if ((E > height))
244258 then throw((("Wait " + toString((E - height))) + " blocks to reveal this id"))
245259 else {
246- let L = aj(E)
247- throw(((((toString(L[0]) + "|") + toString(L[1])) + "|") + toString(L[2])))
260+ let L = ak(E)
261+ let au = a(ar(L, N))
262+ let av = ((((((("| commitHeight: " + toString(E)) + " | betAmount: ") + toString(N)) + " | winningAmount: ") + toString(au)) + " | randomNumber: ") + A(L))
263+ let aw = ((((("| status: reveal | winningAmount: " + toString(au)) + " | randomNumber: ") + A(L)) + " | betAmount: ") + toString(N))
264+ if ((au > 0))
265+ then [DeleteEntry(ag(d)), DeleteEntry(ah(d)), ScriptTransfer(d.caller, au, unit), StringEntry(aj(d), av), StringEntry(ai(d), aw)]
266+ else [DeleteEntry(ag(d)), DeleteEntry(ah(d)), StringEntry(aj(d), av), StringEntry(ai(d), aw)]
248267 }
249268 }
250269
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = (b * 100000000)
55
66
77 func c (d,e) = {
88 let f = base58'WAVES'
99 let g = d.payments[0]
1010 if ((g.amount >= a(e)))
1111 then (g.assetId == unit)
1212 else false
1313 }
1414
1515
1616 func h (i,j) = toString(j) :: i
1717
1818
1919 func k (i,j) = parseIntValue(j) :: i
2020
2121
2222 func l (i,j) = (i + j)
2323
2424
2525 func m (n) = {
2626 let o = n
2727 let p = size(o)
2828 let q = 0
2929 func r (s,t) = if ((t >= p))
3030 then s
3131 else l(s, o[t])
3232
3333 func u (s,t) = if ((t >= p))
3434 then s
3535 else throw("List size exceeds 50")
3636
3737 u(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(q, 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)
3838 }
3939
4040
4141 func v (n) = {
4242 let o = n
4343 let p = size(o)
4444 let q = nil
4545 func r (s,t) = if ((t >= p))
4646 then s
4747 else h(s, o[t])
4848
4949 func u (s,t) = if ((t >= p))
5050 then s
5151 else throw("List size exceeds 50")
5252
5353 u(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(q, 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)
5454 }
5555
5656
5757 func w (n) = {
5858 let o = n
5959 let p = size(o)
6060 let q = nil
6161 func r (s,t) = if ((t >= p))
6262 then s
6363 else k(s, o[t])
6464
6565 func u (s,t) = if ((t >= p))
6666 then s
6767 else throw("List size exceeds 50")
6868
6969 u(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(q, 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)
7070 }
7171
7272
7373 func x (n) = makeString(n, "|")
7474
7575
7676 func y (z) = split(z, "|")
7777
7878
7979 func A (n) = makeString(v(n), "|")
8080
8181
8282 func B (C) = w(split(C, "|"))
8383
8484
8585 func D (E) = {
8686 let F = valueOrErrorMessage(blockInfoByHeight(E), "unexcpected error")
8787 let G = valueOrErrorMessage(F.vrf, "unexcpected error")
8888 let H = sha256(value(G))
8989 let I = toInt(H, 16)
9090 (I % 37)
9191 }
9292
9393
9494 func J (E) = {
9595 let H = sha256((value(value(blockInfoByHeight(E)).vrf) + toBytes(E)))
9696 let K = toInt(H, 24)
9797 let L = (K % 37)
9898 L
9999 }
100100
101101
102102 func M (L,N,O,P) = {
103103 let Q = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3]
104104 let R = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35]
105105 if ((P == "red"))
106106 then if (containsElement(Q, L))
107107 then (N * 2)
108108 else 0
109109 else if ((P == "black"))
110110 then if (containsElement(R, L))
111111 then (N * 2)
112112 else 0
113113 else if ((P == "odd"))
114114 then if (if (((L % 2) != 0))
115115 then (L != 0)
116116 else false)
117117 then (N * 2)
118118 else 0
119119 else if ((P == "even"))
120120 then if (if (((L % 2) == 0))
121121 then (L != 0)
122122 else false)
123123 then (N * 2)
124124 else 0
125125 else if (if ((size(O) == 1))
126126 then (P == "num")
127127 else false)
128128 then if ((O[0] == L))
129129 then (N * 36)
130130 else 0
131131 else if ((size(O) == 2))
132132 then if (containsElement(O, L))
133133 then (N * 18)
134134 else 0
135135 else if ((size(O) == 3))
136136 then if (containsElement(O, L))
137137 then (N * 12)
138138 else 0
139139 else if ((size(O) == 4))
140140 then if (containsElement(O, L))
141141 then (N * 9)
142142 else 0
143143 else if ((size(O) == 12))
144144 then if (if (containsElement(O, L))
145145 then (L != 0)
146146 else false)
147147 then (N * 3)
148148 else 0
149149 else if ((size(O) == 18))
150150 then if (if (containsElement(O, L))
151151 then (L != 0)
152152 else false)
153153 then (N * 2)
154154 else 0
155155 else 0
156156 }
157157
158158
159159 func S (d) = ("bet_Roulette_" + toString(d.caller))
160160
161161
162162 func T (d) = ("betAmount_Roulette_" + toString(d.caller))
163163
164164
165165 func U (d) = ("selectedNumbers_Roulette_" + toString(d.caller))
166166
167167
168168 func V (d) = ("direction_Roulette_" + toString(d.caller))
169169
170170
171171 func W (d) = ((("log_Roulette_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
172172
173173
174174 func X (d) = ("status_Roulette_" + toString(d.caller))
175175
176176
177177 func Y (d) = ("bet_LuckyWheel_" + toString(d.caller))
178178
179179
180180 func Z (d) = ("won_LuckyWheel_" + toString(d.caller))
181181
182182
183183 func aa (d) = ("randomNumber_LuckyWheel_" + toString(d.caller))
184184
185185
186186 func ab (d) = ((("log_LuckyWheel_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
187187
188188
189189 func ac (ad) = {
190190 let ae = ad
191191 if ((1 == ae))
192192 then a(2)
193193 else if ((3 == ae))
194194 then a(1)
195195 else if ((7 == ae))
196196 then a(6)
197197 else if ((9 == ae))
198198 then a(1)
199199 else 0
200200 }
201201
202202
203203 func af (d) = ("status_Roulette_" + toString(d.caller))
204204
205205
206206 func ag (d) = ("bet_SM_" + toString(d.caller))
207207
208208
209209 func ah (d) = ("betAmount_SM_" + toString(d.caller))
210210
211211
212212 func ai (d) = ("status_SM_" + toString(d.caller))
213213
214214
215-func aj (E) = {
215+func aj (d) = ((("log_SM_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
216+
217+
218+func ak (E) = {
216219 let H = sha256((value(value(blockInfoByHeight(E)).vrf) + toBytes(E)))
217220 let K = toInt(H, 24)
218221 let L = (K % 6)
219- let ak = sha256((value(value(blockInfoByHeight((E - ((L + 10) * 3000)))).vrf) + toBytes((L + 10))))
220- let al = toInt(ak, 24)
221- let am = (al % 6)
222- let an = sha256((value(value(blockInfoByHeight((E - ((am + 60) * 1100)))).vrf) + toBytes((am + 60))))
223- let ao = toInt(an, 24)
224- let ap = (ao % 6)
225-[L, am, ap]
222+ let al = sha256((value(value(blockInfoByHeight((E - ((L + 10) * 3000)))).vrf) + toBytes((L + 10))))
223+ let am = toInt(al, 24)
224+ let an = (am % 6)
225+ let ao = sha256((value(value(blockInfoByHeight((E - ((an + 60) * 1100)))).vrf) + toBytes((an + 60))))
226+ let ap = toInt(ao, 24)
227+ let aq = (ap % 6)
228+[L, an, aq]
226229 }
230+
231+
232+func ar (as,at) = if (if ((as[0] == as[1]))
233+ then (as[1] == as[2])
234+ else false)
235+ then if ((as[0] == 0))
236+ then (at * 10)
237+ else if ((as[0] == 1))
238+ then (at * 5)
239+ else (at * 3)
240+ else 0
227241
228242
229243 @Callable(d)
230244 func SlotMachine_commit (N) = {
231245 let g = d.payments[0]
232246 if (!(c(d, N)))
233247 then throw("Wrong payment amount or asset!")
234248 else [IntegerEntry(ag(d), (height + 1)), IntegerEntry(ah(d), N), StringEntry(ai(d), ((("| status: commit | revealBlock: " + toString((height + 1))) + " | betAmount: ") + toString(N)))]
235249 }
236250
237251
238252
239253 @Callable(d)
240254 func SlotMachine_reveal () = {
241255 let E = valueOrErrorMessage(getIntegerValue(ag(d)), "Bet not found")
242256 let N = valueOrErrorMessage(getIntegerValue(ah(d)), "Bet amount not found")
243257 if ((E > height))
244258 then throw((("Wait " + toString((E - height))) + " blocks to reveal this id"))
245259 else {
246- let L = aj(E)
247- throw(((((toString(L[0]) + "|") + toString(L[1])) + "|") + toString(L[2])))
260+ let L = ak(E)
261+ let au = a(ar(L, N))
262+ let av = ((((((("| commitHeight: " + toString(E)) + " | betAmount: ") + toString(N)) + " | winningAmount: ") + toString(au)) + " | randomNumber: ") + A(L))
263+ let aw = ((((("| status: reveal | winningAmount: " + toString(au)) + " | randomNumber: ") + A(L)) + " | betAmount: ") + toString(N))
264+ if ((au > 0))
265+ then [DeleteEntry(ag(d)), DeleteEntry(ah(d)), ScriptTransfer(d.caller, au, unit), StringEntry(aj(d), av), StringEntry(ai(d), aw)]
266+ else [DeleteEntry(ag(d)), DeleteEntry(ah(d)), StringEntry(aj(d), av), StringEntry(ai(d), aw)]
248267 }
249268 }
250269
251270

github/deemru/w8io/169f3d6 
50.96 ms