tx · 8dhhQjpBT2LGUoABv8nnuBX7JrRZj3GM9mKfvbajbXJo 3MrfLFw1uz3BDr45RQLvrRnAwT2nHpB4KiX: -0.01000000 Waves 2023.06.09 18:19 [2615298] smart account 3MrfLFw1uz3BDr45RQLvrRnAwT2nHpB4KiX > SELF 0.00000000 Waves
{ "type": 13, "id": "8dhhQjpBT2LGUoABv8nnuBX7JrRZj3GM9mKfvbajbXJo", "fee": 1000000, "feeAssetId": null, "timestamp": 1686324067278, "version": 2, "chainId": 84, "sender": "3MrfLFw1uz3BDr45RQLvrRnAwT2nHpB4KiX", "senderPublicKey": "5iiNX4Sz3qZzcerumQLc1y7u9TH2X46jDV4f9Xivtmtv", "proofs": [ "4EsYKR2nU11nhVUi6vVujD42pCvYo2wmJ3mzoKB8KJmYynSErwBAtgNkDrVgdoxPVdZj9sHoKKDrk8qE9TKTRnh2" ], "script": "base64:BgIHCAISAwoBARsBCm51bVRvV2F2ZXMBA251bQkAaAIFA251bQCAwtcvAQtpc1BheW1lbnRPawIBaQNzdW0EEWFjY2VwdGFibGVBc3NldElkAQQTq9kzBAFwCQCRAwIIBQFpCHBheW1lbnRzAAADCQBnAggFAXAGYW1vdW50CQEKbnVtVG9XYXZlcwEFA3N1bQkAAAIIBQFwB2Fzc2V0SWQFBHVuaXQHAQttYXBJbnRUb1N0cgIFYWNjdW0EbmV4dAkAzAgCCQCkAwEFBG5leHQFBWFjY3VtAQttYXBTdHJUb0ludAIFYWNjdW0EbmV4dAkAzAgCCQENcGFyc2VJbnRWYWx1ZQEFBG5leHQFBWFjY3VtAQttYXBJbnRUb1N1bQIFYWNjdW0EbmV4dAkAZAIFBWFjY3VtBQRuZXh0AQxsaXN0SW50VG9TdW0BA2FycgoAAiRsBQNhcnIKAAIkcwkAkAMBBQIkbAoABSRhY2MwAAAKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBC21hcEludFRvU3VtAgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYwXzICAiR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MF8xAgkBBSRmMF8xAgkBBSRmMF8xAgUFJGFjYzAAAAABAAIAAwAEAAUABgAHAAgACQAKAAsADAANAA4ADwAQABEAEgATABQAFQAWABcAGAAZABoAGwAcAB0AHgAfACAAIQAiACMAJAAlACYAJwAoACkAKgArACwALQAuAC8AMAAxADIBAWkBBHRlc3QBDGNvbW1pdEhlaWdodAkBBHh4eDIBCQDMCAIFDGNvbW1pdEhlaWdodAkAzAgCCQBlAgUMY29tbWl0SGVpZ2h0AAEJAMwIAgkAZQIFDGNvbW1pdEhlaWdodAACCQDMCAIJAGUCBQxjb21taXRIZWlnaHQAAwUDbmlsALRAF70=", "height": 2615298, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4o3beqGtq3yvCQV8QEqcRhD8Yhwfq1F6wLgVgqBTa17B Next: 7uoxJYjPaJJHLrUm5g7dcQXhVSkDyMNDMUuDjD9oV3sa Diff:
Old | New | Differences | |
---|---|---|---|
186 | 186 | let ab = valueOrErrorMessage(blockInfoByHeight((j - 1)), "unexcpected error") | |
187 | 187 | let ac = valueOrErrorMessage(Y.vrf, "unexcpected error") | |
188 | 188 | let ad = sha256(value(Z)) | |
189 | - | let ae = toInt(aa, 16) | |
189 | + | let ae = (toInt(aa, 16) * toInt(aa, 10)) | |
190 | 190 | let E = (ae % 37) | |
191 | 191 | StringEntry(("random__" + toString(j)), toString(E)) :: i | |
192 | 192 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | @Callable(d) | |
212 | - | func test (ag) = af([ag]) | |
212 | + | func test (ag) = af([ag, (ag - 1), (ag - 2), (ag - 3)]) | |
213 | 213 | ||
214 | 214 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = (b * 100000000) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func c (d,e) = { | |
8 | 8 | let f = base58'WAVES' | |
9 | 9 | let g = d.payments[0] | |
10 | 10 | if ((g.amount >= a(e))) | |
11 | 11 | then (g.assetId == unit) | |
12 | 12 | else false | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func h (i,j) = toString(j) :: i | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func k (i,j) = parseIntValue(j) :: i | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func l (i,j) = (i + j) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func m (n) = { | |
26 | 26 | let o = n | |
27 | 27 | let p = size(o) | |
28 | 28 | let q = 0 | |
29 | 29 | func r (s,t) = if ((t >= p)) | |
30 | 30 | then s | |
31 | 31 | else l(s, o[t]) | |
32 | 32 | ||
33 | 33 | func u (s,t) = if ((t >= p)) | |
34 | 34 | then s | |
35 | 35 | else throw("List size exceeds 50") | |
36 | 36 | ||
37 | 37 | 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) | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func v (n) = { | |
42 | 42 | let o = n | |
43 | 43 | let p = size(o) | |
44 | 44 | let q = nil | |
45 | 45 | func r (s,t) = if ((t >= p)) | |
46 | 46 | then s | |
47 | 47 | else h(s, o[t]) | |
48 | 48 | ||
49 | 49 | func u (s,t) = if ((t >= p)) | |
50 | 50 | then s | |
51 | 51 | else throw("List size exceeds 50") | |
52 | 52 | ||
53 | 53 | 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) | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func w (n) = { | |
58 | 58 | let o = n | |
59 | 59 | let p = size(o) | |
60 | 60 | let q = nil | |
61 | 61 | func r (s,t) = if ((t >= p)) | |
62 | 62 | then s | |
63 | 63 | else k(s, o[t]) | |
64 | 64 | ||
65 | 65 | func u (s,t) = if ((t >= p)) | |
66 | 66 | then s | |
67 | 67 | else throw("List size exceeds 50") | |
68 | 68 | ||
69 | 69 | 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) | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func x (n) = makeString(n, "|") | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func y (z) = split(z, "|") | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func A (n) = makeString(v(n), "|") | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func B (C) = w(split(C, "|")) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func D (E,F,G,H) = { | |
86 | 86 | let I = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3] | |
87 | 87 | if (if ((size(G) == 1)) | |
88 | 88 | then (H == "num") | |
89 | 89 | else false) | |
90 | 90 | then if ((G[0] == E)) | |
91 | 91 | then (F * 36) | |
92 | 92 | else 0 | |
93 | 93 | else if ((size(G) == 2)) | |
94 | 94 | then if (containsElement(G, E)) | |
95 | 95 | then (F * 18) | |
96 | 96 | else 0 | |
97 | 97 | else if ((size(G) == 3)) | |
98 | 98 | then if (containsElement(G, E)) | |
99 | 99 | then (F * 12) | |
100 | 100 | else 0 | |
101 | 101 | else if ((size(G) == 4)) | |
102 | 102 | then if (containsElement(G, E)) | |
103 | 103 | then (F * 9) | |
104 | 104 | else 0 | |
105 | 105 | else if ((size(G) == 12)) | |
106 | 106 | then if (containsElement(G, E)) | |
107 | 107 | then (F * 3) | |
108 | 108 | else 0 | |
109 | 109 | else if ((H == "red")) | |
110 | 110 | then if (containsElement(I, E)) | |
111 | 111 | then (F * 2) | |
112 | 112 | else 0 | |
113 | 113 | else if ((H == "black")) | |
114 | 114 | then if (if (!(containsElement(I, E))) | |
115 | 115 | then (E != 0) | |
116 | 116 | else false) | |
117 | 117 | then (F * 2) | |
118 | 118 | else 0 | |
119 | 119 | else if ((H == "odd")) | |
120 | 120 | then if (((E % 2) != 0)) | |
121 | 121 | then (F * 2) | |
122 | 122 | else 0 | |
123 | 123 | else if ((H == "even")) | |
124 | 124 | then if (((E % 2) == 0)) | |
125 | 125 | then (F * 2) | |
126 | 126 | else 0 | |
127 | 127 | else if ((size(G) == 18)) | |
128 | 128 | then if (containsElement(G, E)) | |
129 | 129 | then (F * 2) | |
130 | 130 | else 0 | |
131 | 131 | else 0 | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func J (d) = ("bet_Roulette_" + toString(d.caller)) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func K (d) = ("betAmount_Roulette_" + toString(d.caller)) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func L (d) = ("selectedNumbers_Roulette_" + toString(d.caller)) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func M (d) = ("direction_Roulette_" + toString(d.caller)) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func N (d) = ((("log_Roulette_" + toString(d.caller)) + "_") + toBase58String(d.transactionId)) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func O (d) = ("status_Roulette_" + toString(d.caller)) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func P (d) = ("bet_LuckyWheel_" + toString(d.caller)) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func Q (d) = ("won_LuckyWheel_" + toString(d.caller)) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func R (d) = ("randomNumber_LuckyWheel_" + toString(d.caller)) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func S (d) = ((("log_LuckyWheel_" + toString(d.caller)) + "_") + toBase58String(d.transactionId)) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func T (U) = { | |
166 | 166 | let V = U | |
167 | 167 | if ((1 == V)) | |
168 | 168 | then a(2) | |
169 | 169 | else if ((3 == V)) | |
170 | 170 | then a(1) | |
171 | 171 | else if ((7 == V)) | |
172 | 172 | then a(6) | |
173 | 173 | else if ((9 == V)) | |
174 | 174 | then a(1) | |
175 | 175 | else 0 | |
176 | 176 | } | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func W (d) = ("status_Roulette_" + toString(d.caller)) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func X (i,j) = { | |
183 | 183 | let Y = valueOrErrorMessage(blockInfoByHeight(j), "unexcpected error") | |
184 | 184 | let Z = valueOrErrorMessage(Y.vrf, "unexcpected error") | |
185 | 185 | let aa = sha256(value(Z)) | |
186 | 186 | let ab = valueOrErrorMessage(blockInfoByHeight((j - 1)), "unexcpected error") | |
187 | 187 | let ac = valueOrErrorMessage(Y.vrf, "unexcpected error") | |
188 | 188 | let ad = sha256(value(Z)) | |
189 | - | let ae = toInt(aa, 16) | |
189 | + | let ae = (toInt(aa, 16) * toInt(aa, 10)) | |
190 | 190 | let E = (ae % 37) | |
191 | 191 | StringEntry(("random__" + toString(j)), toString(E)) :: i | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func af (n) = { | |
196 | 196 | let o = n | |
197 | 197 | let p = size(o) | |
198 | 198 | let q = nil | |
199 | 199 | func r (s,t) = if ((t >= p)) | |
200 | 200 | then s | |
201 | 201 | else X(s, o[t]) | |
202 | 202 | ||
203 | 203 | func u (s,t) = if ((t >= p)) | |
204 | 204 | then s | |
205 | 205 | else throw("List size exceeds 50") | |
206 | 206 | ||
207 | 207 | 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) | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | @Callable(d) | |
212 | - | func test (ag) = af([ag]) | |
212 | + | func test (ag) = af([ag, (ag - 1), (ag - 2), (ag - 3)]) | |
213 | 213 | ||
214 | 214 |
github/deemru/w8io/026f985 37.15 ms ◑