tx · G2BwT8M1fe75DvFstWnkoj2GWUmb5i7D9vfgf7P5Jwgg

3MrfLFw1uz3BDr45RQLvrRnAwT2nHpB4KiX:  -0.01000000 Waves

2023.06.11 17:09 [2618117] smart account 3MrfLFw1uz3BDr45RQLvrRnAwT2nHpB4KiX > SELF 0.00000000 Waves

{ "type": 13, "id": "G2BwT8M1fe75DvFstWnkoj2GWUmb5i7D9vfgf7P5Jwgg", "fee": 1000000, "feeAssetId": null, "timestamp": 1686492567958, "version": 2, "chainId": 84, "sender": "3MrfLFw1uz3BDr45RQLvrRnAwT2nHpB4KiX", "senderPublicKey": "5iiNX4Sz3qZzcerumQLc1y7u9TH2X46jDV4f9Xivtmtv", "proofs": [ "CRvFQiJi6anNbNu8tT1qMg6We88uDJtvw1ZmF2Rrqruvsxx4yLg6dvPrXzYRehhxWH5Rg1xwLVAteHuUCqGuci6" ], "script": "base64:BgIHCAISAwoBARoBCm51bVRvV2F2ZXMBA251bQkAaAIFA251bQCAwtcvAQtpc1BheW1lbnRPawIBaQNzdW0EEWFjY2VwdGFibGVBc3NldElkAQQTq9kzBAFwCQCRAwIIBQFpCHBheW1lbnRzAAADCQBnAggFAXAGYW1vdW50CQEKbnVtVG9XYXZlcwEFA3N1bQkAAAIIBQFwB2Fzc2V0SWQFBHVuaXQHAQttYXBJbnRUb1N0cgIFYWNjdW0EbmV4dAkAzAgCCQCkAwEFBG5leHQFBWFjY3VtAQttYXBTdHJUb0ludAIFYWNjdW0EbmV4dAkAzAgCCQENcGFyc2VJbnRWYWx1ZQEFBG5leHQFBWFjY3VtAQttYXBJbnRUb1N1bQIFYWNjdW0EbmV4dAkAZAIFBWFjY3VtBQRuZXh0AQxsaXN0SW50VG9TdW0BA2FycgoAAiRsBQNhcnIKAAIkcwkAkAMBBQIkbAoABSRhY2MwAAAKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBC21hcEludFRvU3VtAgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYwXzICAi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4xAAAEDXJhbmRvbU51bWJlcjEJAGoCBQJuMQAlBA1yYW5kb21OdW1iZXIyCQBqAgUCbjIAJQMJAGYCABMFDXJhbmRvbU51bWJlcjEJAAIBCQCkAwEFDXJhbmRvbU51bWJlcjEJAAIBCQCkAwEFDXJhbmRvbU51bWJlcjIDCQBmAgUCbjIAAAQNcmFuZG9tTnVtYmVyMgkAagIFAm4yACUEDXJhbmRvbU51bWJlcjMJAGoCBQJuMwAlAwkAZgIAEwUNcmFuZG9tTnVtYmVyMgkAAgEJAKwCAgIDKzErCQCkAwEFDXJhbmRvbU51bWJlcjIJAAIBCQCsAgICAysyKwkApAMBBQ1yYW5kb21OdW1iZXIzAwkAZgIFAm4zAAAEDXJhbmRvbU51bWJlcjIJAGoCBQJuMwAlBA1yYW5kb21OdW1iZXIzCQBqAgUCbjQAJQMJAGYCABMFDXJhbmRvbU51bWJlcjIJAAIBCQCsAgICAyszKwkApAMBBQ1yYW5kb21OdW1iZXIyCQACAQkArAICAgMrNCsJAKQDAQUNcmFuZG9tTnVtYmVyMwQMcmFuZG9tTnVtYmVyCQBqAgUCbjQAJQkAAgEJAKwCAgIDKzUrCQCkAwEFDHJhbmRvbU51bWJlcgCGf2dQ", "height": 2618117, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9RSidx8HfUyndbtuDqMWy5cDPxU3wyZbtXfW4kce1iBX Next: 7gAoyo53YPKrjN1qU15qN36c64iAZkuVjBGgsMKuuAQg Diff:
OldNewDifferences
199199 let ag = valueOrErrorMessage(blockInfoByHeight((E - 20)), "unexcpected error")
200200 let ah = valueOrErrorMessage(F.vrf, "unexcpected error")
201201 let ai = sha256(value(G))
202- let aj = toInt(H, 16)
203- let ak = toInt(af, 16)
204- let al = toInt(ai, 16)
205- if ((aj > 0))
202+ let aj = valueOrErrorMessage(blockInfoByHeight((E - 30)), "unexcpected error")
203+ let ak = valueOrErrorMessage(F.vrf, "unexcpected error")
204+ let al = sha256(value(G))
205+ let am = toInt(H, 16)
206+ let an = toInt(af, 16)
207+ let ao = toInt(ai, 16)
208+ let ap = toInt(al, 16)
209+ if ((am > 0))
206210 then {
207- let am = (aj % 37)
208- let an = (ak % 37)
209- if ((19 > am))
210- then throw(toString(am))
211- else throw(toString(an))
211+ let aq = (am % 37)
212+ let ar = (an % 37)
213+ if ((19 > aq))
214+ then throw(toString(aq))
215+ else throw(toString(ar))
212216 }
213- else if ((ak > 0))
217+ else if ((an > 0))
214218 then {
215- let an = (ak % 37)
216- let ao = (al % 37)
217- if ((19 > an))
218- then throw(toString(an))
219- else throw(toString(ao))
219+ let ar = (an % 37)
220+ let as = (ao % 37)
221+ if ((19 > ar))
222+ then throw(("+1+" + toString(ar)))
223+ else throw(("+2+" + toString(as)))
220224 }
221- else {
222- let K = (al % 37)
223- throw(toString(K))
224- }
225+ else if ((ao > 0))
226+ then {
227+ let ar = (ao % 37)
228+ let as = (ap % 37)
229+ if ((19 > ar))
230+ then throw(("+3+" + toString(ar)))
231+ else throw(("+4+" + toString(as)))
232+ }
233+ else {
234+ let K = (ap % 37)
235+ throw(("+5+" + toString(K)))
236+ }
225237 }
226238
227239
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 (K,L,M,N) = {
9595 let O = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3]
9696 if (if ((size(M) == 1))
9797 then (N == "num")
9898 else false)
9999 then if ((M[0] == K))
100100 then (L * 36)
101101 else 0
102102 else if ((size(M) == 2))
103103 then if (containsElement(M, K))
104104 then (L * 18)
105105 else 0
106106 else if ((size(M) == 3))
107107 then if (containsElement(M, K))
108108 then (L * 12)
109109 else 0
110110 else if ((size(M) == 4))
111111 then if (containsElement(M, K))
112112 then (L * 9)
113113 else 0
114114 else if ((size(M) == 12))
115115 then if (containsElement(M, K))
116116 then (L * 3)
117117 else 0
118118 else if ((N == "red"))
119119 then if (containsElement(O, K))
120120 then (L * 2)
121121 else 0
122122 else if ((N == "black"))
123123 then if (if (!(containsElement(O, K)))
124124 then (K != 0)
125125 else false)
126126 then (L * 2)
127127 else 0
128128 else if ((N == "odd"))
129129 then if (((K % 2) != 0))
130130 then (L * 2)
131131 else 0
132132 else if ((N == "even"))
133133 then if (((K % 2) == 0))
134134 then (L * 2)
135135 else 0
136136 else if ((size(M) == 18))
137137 then if (containsElement(M, K))
138138 then (L * 2)
139139 else 0
140140 else 0
141141 }
142142
143143
144144 func P (d) = ("bet_Roulette_" + toString(d.caller))
145145
146146
147147 func Q (d) = ("betAmount_Roulette_" + toString(d.caller))
148148
149149
150150 func R (d) = ("selectedNumbers_Roulette_" + toString(d.caller))
151151
152152
153153 func S (d) = ("direction_Roulette_" + toString(d.caller))
154154
155155
156156 func T (d) = ((("log_Roulette_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
157157
158158
159159 func U (d) = ("status_Roulette_" + toString(d.caller))
160160
161161
162162 func V (d) = ("bet_LuckyWheel_" + toString(d.caller))
163163
164164
165165 func W (d) = ("won_LuckyWheel_" + toString(d.caller))
166166
167167
168168 func X (d) = ("randomNumber_LuckyWheel_" + toString(d.caller))
169169
170170
171171 func Y (d) = ((("log_LuckyWheel_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
172172
173173
174174 func Z (aa) = {
175175 let ab = aa
176176 if ((1 == ab))
177177 then a(2)
178178 else if ((3 == ab))
179179 then a(1)
180180 else if ((7 == ab))
181181 then a(6)
182182 else if ((9 == ab))
183183 then a(1)
184184 else 0
185185 }
186186
187187
188188 func ac (d) = ("status_Roulette_" + toString(d.caller))
189189
190190
191191 @Callable(d)
192192 func testRandomNumber (E) = {
193193 let F = valueOrErrorMessage(blockInfoByHeight(E), "unexcpected error")
194194 let G = valueOrErrorMessage(F.vrf, "unexcpected error")
195195 let H = sha256(value(G))
196196 let ad = valueOrErrorMessage(blockInfoByHeight((E - 10)), "unexcpected error")
197197 let ae = valueOrErrorMessage(F.vrf, "unexcpected error")
198198 let af = sha256(value(G))
199199 let ag = valueOrErrorMessage(blockInfoByHeight((E - 20)), "unexcpected error")
200200 let ah = valueOrErrorMessage(F.vrf, "unexcpected error")
201201 let ai = sha256(value(G))
202- let aj = toInt(H, 16)
203- let ak = toInt(af, 16)
204- let al = toInt(ai, 16)
205- if ((aj > 0))
202+ let aj = valueOrErrorMessage(blockInfoByHeight((E - 30)), "unexcpected error")
203+ let ak = valueOrErrorMessage(F.vrf, "unexcpected error")
204+ let al = sha256(value(G))
205+ let am = toInt(H, 16)
206+ let an = toInt(af, 16)
207+ let ao = toInt(ai, 16)
208+ let ap = toInt(al, 16)
209+ if ((am > 0))
206210 then {
207- let am = (aj % 37)
208- let an = (ak % 37)
209- if ((19 > am))
210- then throw(toString(am))
211- else throw(toString(an))
211+ let aq = (am % 37)
212+ let ar = (an % 37)
213+ if ((19 > aq))
214+ then throw(toString(aq))
215+ else throw(toString(ar))
212216 }
213- else if ((ak > 0))
217+ else if ((an > 0))
214218 then {
215- let an = (ak % 37)
216- let ao = (al % 37)
217- if ((19 > an))
218- then throw(toString(an))
219- else throw(toString(ao))
219+ let ar = (an % 37)
220+ let as = (ao % 37)
221+ if ((19 > ar))
222+ then throw(("+1+" + toString(ar)))
223+ else throw(("+2+" + toString(as)))
220224 }
221- else {
222- let K = (al % 37)
223- throw(toString(K))
224- }
225+ else if ((ao > 0))
226+ then {
227+ let ar = (ao % 37)
228+ let as = (ap % 37)
229+ if ((19 > ar))
230+ then throw(("+3+" + toString(ar)))
231+ else throw(("+4+" + toString(as)))
232+ }
233+ else {
234+ let K = (ap % 37)
235+ throw(("+5+" + toString(K)))
236+ }
225237 }
226238
227239

github/deemru/w8io/026f985 
55.41 ms