tx · J2LoZ1EtHS3mcwUxLMrh6PNAXsw5aZGwoG1xrQqUqmbF

3MrfLFw1uz3BDr45RQLvrRnAwT2nHpB4KiX:  -0.01000000 Waves

2023.06.11 12:49 [2617863] smart account 3MrfLFw1uz3BDr45RQLvrRnAwT2nHpB4KiX > SELF 0.00000000 Waves

{ "type": 13, "id": "J2LoZ1EtHS3mcwUxLMrh6PNAXsw5aZGwoG1xrQqUqmbF", "fee": 1000000, "feeAssetId": null, "timestamp": 1686476969859, "version": 2, "chainId": 84, "sender": "3MrfLFw1uz3BDr45RQLvrRnAwT2nHpB4KiX", "senderPublicKey": "5iiNX4Sz3qZzcerumQLc1y7u9TH2X46jDV4f9Xivtmtv", "proofs": [ "828ZptU9NF8Ryrkm5RgjEJC5GkSp8Uk5zoM828FyjZFXWRKfWwpt5EYMxWHqpW5DjBAQ27zrkNxNjKJ2ryt4m5E" ], "script": "base64:BgIECAISABwBCm51bVRvV2F2ZXMBA251bQkAaAIFA251bQCAwtcvAQtpc1BheW1lbnRPawIBaQNzdW0EEWFjY2VwdGFibGVBc3NldElkAQQTq9kzBAFwCQCRAwIIBQFpCHBheW1lbnRzAAADCQBnAggFAXAGYW1vdW50CQEKbnVtVG9XYXZlcwEFA3N1bQkAAAIIBQFwB2Fzc2V0SWQFBHVuaXQHAQttYXBJbnRUb1N0cgIFYWNjdW0EbmV4dAkAzAgCCQCkAwEFBG5leHQFBWFjY3VtAQttYXBTdHJUb0ludAIFYWNjdW0EbmV4dAkAzAgCCQENcGFyc2VJbnRWYWx1ZQEFBG5leHQFBWFjY3VtAQttYXBJbnRUb1N1bQIFYWNjdW0EbmV4dAkAZAIFBWFjY3VtBQRuZXh0AQxsaXN0SW50VG9TdW0BA2FycgoAAiRsBQNhcnIKAAIkcwkAkAMBBQIkbAoABSRhY2MwAAAKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBC21hcEludFRvU3VtAgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYwXzIC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VzdWx0CQEPUl9XaW5DYWxjdWxhdG9yBAUGcmFuZG9tAAEFA25pbAIFYmxhY2sJAGQCCQBlAgUFYWNjdW0AAQUGcmVzdWx0AQd0ZXN0UmVkAQNhcnIKAAIkbAUDYXJyCgACJHMJAJADAQUCJGwKAAUkYWNjMAAeCgEFJGYwXzECAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAQN4eHgCBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECFExpc3Qgc2l6ZSBleGNlZWRzIDMwCQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAAVABYAFwAYABkAGgAbABwAHQAeAQFpAQRUZXN0AAQDcmVkCQEHdGVzdFJlZAEJAMwIAgABCQDMCAIAAgUDbmlsCQACAQkApAMBBQNyZWQA16vQLQ==", "height": 2617863, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6N5Ac1Be63WAd3SnJ4BLNJJZcj4kjddEE5taLzAn4aUZ Next: FnfbSCsqrD6k7dzUVjSBdMjkepWECVTbY66MsAwhCXak Diff:
OldNewDifferences
8484
8585 func D (E) = {
8686 let F = valueOrErrorMessage(blockInfoByHeight(E), "unexcpected error")
87- let G = valueOrErrorMessage(blockInfoByHeight((E - 10)), "unexcpected error")
88- let H = valueOrErrorMessage(F.vrf, "unexcpected error")
89- let I = valueOrErrorMessage(G.vrf, "unexcpected error")
90- let J = sha256(value(H))
91- let K = sha256(value(I))
92- let L = (toInt(J, 16) * toInt(J, 16))
93- (L % 37)
87+ let G = valueOrErrorMessage(F.vrf, "unexcpected error")
88+ let H = sha256(value(G))
89+ let I = (toInt(H, 16) - toInt(H, 2))
90+ (I % 37)
9491 }
9592
9693
97-func M (N,O,P,Q) = {
98- let R = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3]
99- if (if ((size(P) == 1))
100- then (Q == "num")
94+func J (K,L,M,N) = {
95+ let O = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3]
96+ if (if ((size(M) == 1))
97+ then (N == "num")
10198 else false)
102- then if ((P[0] == N))
103- then (O * 36)
99+ then if ((M[0] == K))
100+ then (L * 36)
104101 else 0
105- else if ((size(P) == 2))
106- then if (containsElement(P, N))
107- then (O * 18)
102+ else if ((size(M) == 2))
103+ then if (containsElement(M, K))
104+ then (L * 18)
108105 else 0
109- else if ((size(P) == 3))
110- then if (containsElement(P, N))
111- then (O * 12)
106+ else if ((size(M) == 3))
107+ then if (containsElement(M, K))
108+ then (L * 12)
112109 else 0
113- else if ((size(P) == 4))
114- then if (containsElement(P, N))
115- then (O * 9)
110+ else if ((size(M) == 4))
111+ then if (containsElement(M, K))
112+ then (L * 9)
116113 else 0
117- else if ((size(P) == 12))
118- then if (containsElement(P, N))
119- then (O * 3)
114+ else if ((size(M) == 12))
115+ then if (containsElement(M, K))
116+ then (L * 3)
120117 else 0
121- else if ((Q == "red"))
122- then if (containsElement(R, N))
123- then (O * 2)
118+ else if ((N == "red"))
119+ then if (containsElement(O, K))
120+ then (L * 2)
124121 else 0
125- else if ((Q == "black"))
126- then if (if (!(containsElement(R, N)))
127- then (N != 0)
122+ else if ((N == "black"))
123+ then if (if (!(containsElement(O, K)))
124+ then (K != 0)
128125 else false)
129- then (O * 2)
126+ then (L * 2)
130127 else 0
131- else if ((Q == "odd"))
132- then if (((N % 2) != 0))
133- then (O * 2)
128+ else if ((N == "odd"))
129+ then if (((K % 2) != 0))
130+ then (L * 2)
134131 else 0
135- else if ((Q == "even"))
136- then if (((N % 2) == 0))
137- then (O * 2)
132+ else if ((N == "even"))
133+ then if (((K % 2) == 0))
134+ then (L * 2)
138135 else 0
139- else if ((size(P) == 18))
140- then if (containsElement(P, N))
141- then (O * 2)
136+ else if ((size(M) == 18))
137+ then if (containsElement(M, K))
138+ then (L * 2)
142139 else 0
143140 else 0
144141 }
145142
146143
147-func S (d) = ("bet_Roulette_" + toString(d.caller))
144+func P (d) = ("bet_Roulette_" + toString(d.caller))
148145
149146
150-func T (d) = ("betAmount_Roulette_" + toString(d.caller))
147+func Q (d) = ("betAmount_Roulette_" + toString(d.caller))
151148
152149
153-func U (d) = ("selectedNumbers_Roulette_" + toString(d.caller))
150+func R (d) = ("selectedNumbers_Roulette_" + toString(d.caller))
154151
155152
156-func V (d) = ("direction_Roulette_" + toString(d.caller))
153+func S (d) = ("direction_Roulette_" + toString(d.caller))
157154
158155
159-func W (d) = ((("log_Roulette_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
156+func T (d) = ((("log_Roulette_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
160157
161158
162-func X (d) = ("status_Roulette_" + toString(d.caller))
159+func U (d) = ("status_Roulette_" + toString(d.caller))
163160
164161
165-func Y (d) = ("bet_LuckyWheel_" + toString(d.caller))
162+func V (d) = ("bet_LuckyWheel_" + toString(d.caller))
166163
167164
168-func Z (d) = ("won_LuckyWheel_" + toString(d.caller))
165+func W (d) = ("won_LuckyWheel_" + toString(d.caller))
169166
170167
171-func aa (d) = ("randomNumber_LuckyWheel_" + toString(d.caller))
168+func X (d) = ("randomNumber_LuckyWheel_" + toString(d.caller))
172169
173170
174-func ab (d) = ((("log_LuckyWheel_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
171+func Y (d) = ((("log_LuckyWheel_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
175172
176173
177-func ac (ad) = {
178- let ae = ad
179- if ((1 == ae))
174+func Z (aa) = {
175+ let ab = aa
176+ if ((1 == ab))
180177 then a(2)
181- else if ((3 == ae))
178+ else if ((3 == ab))
182179 then a(1)
183- else if ((7 == ae))
180+ else if ((7 == ab))
184181 then a(6)
185- else if ((9 == ae))
182+ else if ((9 == ab))
186183 then a(1)
187184 else 0
188185 }
189186
190187
191-func af (d) = ("status_Roulette_" + toString(d.caller))
188+func ac (d) = ("status_Roulette_" + toString(d.caller))
192189
193190
194-func ag (i,j) = {
195- let ah = D((height - j))
196- let ai = M(ah, 1, nil, "black")
197- ((i - 1) + ai)
191+func ad (i,j) = {
192+ let ae = D((height - j))
193+ let af = J(ae, 1, nil, "black")
194+ ((i - 1) + af)
198195 }
199196
200197
201-func aj (n) = {
198+func ag (n) = {
202199 let o = n
203200 let p = size(o)
204201 let q = 30
205202 func r (s,t) = if ((t >= p))
206203 then s
207- else ag(s, o[t])
204+ else ad(s, o[t])
208205
209206 func u (s,t) = if ((t >= p))
210207 then s
216213
217214 @Callable(d)
218215 func Test () = {
219- let ak = aj([1, 2])
220- throw(toString(ak))
216+ let ah = ag([1, 2])
217+ throw(toString(ah))
221218 }
222219
223220
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")
87- let G = valueOrErrorMessage(blockInfoByHeight((E - 10)), "unexcpected error")
88- let H = valueOrErrorMessage(F.vrf, "unexcpected error")
89- let I = valueOrErrorMessage(G.vrf, "unexcpected error")
90- let J = sha256(value(H))
91- let K = sha256(value(I))
92- let L = (toInt(J, 16) * toInt(J, 16))
93- (L % 37)
87+ let G = valueOrErrorMessage(F.vrf, "unexcpected error")
88+ let H = sha256(value(G))
89+ let I = (toInt(H, 16) - toInt(H, 2))
90+ (I % 37)
9491 }
9592
9693
97-func M (N,O,P,Q) = {
98- let R = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3]
99- if (if ((size(P) == 1))
100- then (Q == "num")
94+func J (K,L,M,N) = {
95+ let O = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3]
96+ if (if ((size(M) == 1))
97+ then (N == "num")
10198 else false)
102- then if ((P[0] == N))
103- then (O * 36)
99+ then if ((M[0] == K))
100+ then (L * 36)
104101 else 0
105- else if ((size(P) == 2))
106- then if (containsElement(P, N))
107- then (O * 18)
102+ else if ((size(M) == 2))
103+ then if (containsElement(M, K))
104+ then (L * 18)
108105 else 0
109- else if ((size(P) == 3))
110- then if (containsElement(P, N))
111- then (O * 12)
106+ else if ((size(M) == 3))
107+ then if (containsElement(M, K))
108+ then (L * 12)
112109 else 0
113- else if ((size(P) == 4))
114- then if (containsElement(P, N))
115- then (O * 9)
110+ else if ((size(M) == 4))
111+ then if (containsElement(M, K))
112+ then (L * 9)
116113 else 0
117- else if ((size(P) == 12))
118- then if (containsElement(P, N))
119- then (O * 3)
114+ else if ((size(M) == 12))
115+ then if (containsElement(M, K))
116+ then (L * 3)
120117 else 0
121- else if ((Q == "red"))
122- then if (containsElement(R, N))
123- then (O * 2)
118+ else if ((N == "red"))
119+ then if (containsElement(O, K))
120+ then (L * 2)
124121 else 0
125- else if ((Q == "black"))
126- then if (if (!(containsElement(R, N)))
127- then (N != 0)
122+ else if ((N == "black"))
123+ then if (if (!(containsElement(O, K)))
124+ then (K != 0)
128125 else false)
129- then (O * 2)
126+ then (L * 2)
130127 else 0
131- else if ((Q == "odd"))
132- then if (((N % 2) != 0))
133- then (O * 2)
128+ else if ((N == "odd"))
129+ then if (((K % 2) != 0))
130+ then (L * 2)
134131 else 0
135- else if ((Q == "even"))
136- then if (((N % 2) == 0))
137- then (O * 2)
132+ else if ((N == "even"))
133+ then if (((K % 2) == 0))
134+ then (L * 2)
138135 else 0
139- else if ((size(P) == 18))
140- then if (containsElement(P, N))
141- then (O * 2)
136+ else if ((size(M) == 18))
137+ then if (containsElement(M, K))
138+ then (L * 2)
142139 else 0
143140 else 0
144141 }
145142
146143
147-func S (d) = ("bet_Roulette_" + toString(d.caller))
144+func P (d) = ("bet_Roulette_" + toString(d.caller))
148145
149146
150-func T (d) = ("betAmount_Roulette_" + toString(d.caller))
147+func Q (d) = ("betAmount_Roulette_" + toString(d.caller))
151148
152149
153-func U (d) = ("selectedNumbers_Roulette_" + toString(d.caller))
150+func R (d) = ("selectedNumbers_Roulette_" + toString(d.caller))
154151
155152
156-func V (d) = ("direction_Roulette_" + toString(d.caller))
153+func S (d) = ("direction_Roulette_" + toString(d.caller))
157154
158155
159-func W (d) = ((("log_Roulette_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
156+func T (d) = ((("log_Roulette_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
160157
161158
162-func X (d) = ("status_Roulette_" + toString(d.caller))
159+func U (d) = ("status_Roulette_" + toString(d.caller))
163160
164161
165-func Y (d) = ("bet_LuckyWheel_" + toString(d.caller))
162+func V (d) = ("bet_LuckyWheel_" + toString(d.caller))
166163
167164
168-func Z (d) = ("won_LuckyWheel_" + toString(d.caller))
165+func W (d) = ("won_LuckyWheel_" + toString(d.caller))
169166
170167
171-func aa (d) = ("randomNumber_LuckyWheel_" + toString(d.caller))
168+func X (d) = ("randomNumber_LuckyWheel_" + toString(d.caller))
172169
173170
174-func ab (d) = ((("log_LuckyWheel_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
171+func Y (d) = ((("log_LuckyWheel_" + toString(d.caller)) + "_") + toBase58String(d.transactionId))
175172
176173
177-func ac (ad) = {
178- let ae = ad
179- if ((1 == ae))
174+func Z (aa) = {
175+ let ab = aa
176+ if ((1 == ab))
180177 then a(2)
181- else if ((3 == ae))
178+ else if ((3 == ab))
182179 then a(1)
183- else if ((7 == ae))
180+ else if ((7 == ab))
184181 then a(6)
185- else if ((9 == ae))
182+ else if ((9 == ab))
186183 then a(1)
187184 else 0
188185 }
189186
190187
191-func af (d) = ("status_Roulette_" + toString(d.caller))
188+func ac (d) = ("status_Roulette_" + toString(d.caller))
192189
193190
194-func ag (i,j) = {
195- let ah = D((height - j))
196- let ai = M(ah, 1, nil, "black")
197- ((i - 1) + ai)
191+func ad (i,j) = {
192+ let ae = D((height - j))
193+ let af = J(ae, 1, nil, "black")
194+ ((i - 1) + af)
198195 }
199196
200197
201-func aj (n) = {
198+func ag (n) = {
202199 let o = n
203200 let p = size(o)
204201 let q = 30
205202 func r (s,t) = if ((t >= p))
206203 then s
207- else ag(s, o[t])
204+ else ad(s, o[t])
208205
209206 func u (s,t) = if ((t >= p))
210207 then s
211208 else throw("List size exceeds 30")
212209
213210 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(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)
214211 }
215212
216213
217214 @Callable(d)
218215 func Test () = {
219- let ak = aj([1, 2])
220- throw(toString(ak))
216+ let ah = ag([1, 2])
217+ throw(toString(ah))
221218 }
222219
223220

github/deemru/w8io/026f985 
74.17 ms