tx · 5zZXToxYFe78WC22rEX2ug47ieUPsouubs9DT6Vw6eLU 3N8mB685DHj1jER6q33drLYFusBVtxrRame: -0.01000000 Waves 2023.06.20 10:03 [2630634] smart account 3N8mB685DHj1jER6q33drLYFusBVtxrRame > SELF 0.00000000 Waves
{ "type": 13, "id": "5zZXToxYFe78WC22rEX2ug47ieUPsouubs9DT6Vw6eLU", "fee": 1000000, "feeAssetId": null, "timestamp": 1687244610335, "version": 2, "chainId": 84, "sender": "3N8mB685DHj1jER6q33drLYFusBVtxrRame", "senderPublicKey": "jk6fUkpq9pS4xCNgvJPDbFjWiZVCf9zoog6Gtmb8EtD", "proofs": [ "3aSS1Vv6Pt2PT3Arize9gdpJgo9FwPCcYyP5gymmmjFEEQiYCjZqBxWe3KNAJVQMzKmwmyTNX84fmyVg3hAjbwsD" ], "script": "base64:BgIJCAISAwoBARIAHwEKbnVtVG9XYXZlcwEDbnVtCQBoAgUDbnVtAIDC1y8BC2lzUGF5bWVudE9rAgFpA3N1bQQRYWNjZXB0YWJsZUFzc2V0SWQBBBOr2TMEAXAJAJEDAggFAWkIcGF5bWVudHMAAAMJAGcCCAUBcAZhbW91bnQJAQpudW1Ub1dhdmVzAQUDc3VtCQAAAggFAXAHYXNzZXRJZAUEdW5pdAcBC21hcEludFRvU3RyAgVhY2N1bQRuZXh0CQDMCAIJAKQDAQUEbmV4dAUFYWNjdW0BC21hcFN0clRvSW50AgVhY2N1bQRuZXh0CQDMCAIJAQ1wYXJzZUludFZhbHVlAQUEbmV4dAUFYWNjdW0BC21hcEludFRvU3VtAgVhY2N1bQRuZXh0CQBkAgUFYWNjdW0FBG5leHQBDGxpc3RJbnRUb1N1bQEDYXJyCgACJGwFA2FycgoAAiRzCQCQAwEFAiRsCgAFJGFjYzAAAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQELbWFwSW50VG9TdW0CBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJG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BAxyYW5kb21OdW1iZXIJAQtnZXRSYW5kb21TTQEFDGNvbW1pdEhlaWdodAkAAgEJAKwCAgkArAICCQCsAgIJAKwCAgkApAMBCQCRAwIFDHJhbmRvbU51bWJlcgAAAgF8CQCkAwEJAJEDAgUMcmFuZG9tTnVtYmVyAAECAXwJAKQDAQkAkQMCBQxyYW5kb21OdW1iZXIAAgBPW7Tn", "height": 2630634, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 7VxfETN8KK9ajNrzbtWwFYiZyDyqNYo7rCt8dKCqX3Ri Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b) = (b * 100000000) | |
5 | + | ||
6 | + | ||
7 | + | func c (d,e) = { | |
8 | + | let f = base58'WAVES' | |
9 | + | let g = d.payments[0] | |
10 | + | if ((g.amount >= a(e))) | |
11 | + | then (g.assetId == unit) | |
12 | + | else false | |
13 | + | } | |
14 | + | ||
15 | + | ||
16 | + | func h (i,j) = toString(j) :: i | |
17 | + | ||
18 | + | ||
19 | + | func k (i,j) = parseIntValue(j) :: i | |
20 | + | ||
21 | + | ||
22 | + | func l (i,j) = (i + j) | |
23 | + | ||
24 | + | ||
25 | + | func m (n) = { | |
26 | + | let o = n | |
27 | + | let p = size(o) | |
28 | + | let q = 0 | |
29 | + | func r (s,t) = if ((t >= p)) | |
30 | + | then s | |
31 | + | else l(s, o[t]) | |
32 | + | ||
33 | + | func u (s,t) = if ((t >= p)) | |
34 | + | then s | |
35 | + | else throw("List size exceeds 50") | |
36 | + | ||
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 | + | } | |
39 | + | ||
40 | + | ||
41 | + | func v (n) = { | |
42 | + | let o = n | |
43 | + | let p = size(o) | |
44 | + | let q = nil | |
45 | + | func r (s,t) = if ((t >= p)) | |
46 | + | then s | |
47 | + | else h(s, o[t]) | |
48 | + | ||
49 | + | func u (s,t) = if ((t >= p)) | |
50 | + | then s | |
51 | + | else throw("List size exceeds 50") | |
52 | + | ||
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 | + | } | |
55 | + | ||
56 | + | ||
57 | + | func w (n) = { | |
58 | + | let o = n | |
59 | + | let p = size(o) | |
60 | + | let q = nil | |
61 | + | func r (s,t) = if ((t >= p)) | |
62 | + | then s | |
63 | + | else k(s, o[t]) | |
64 | + | ||
65 | + | func u (s,t) = if ((t >= p)) | |
66 | + | then s | |
67 | + | else throw("List size exceeds 50") | |
68 | + | ||
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 | + | } | |
71 | + | ||
72 | + | ||
73 | + | func x (n) = makeString(n, "|") | |
74 | + | ||
75 | + | ||
76 | + | func y (z) = split(z, "|") | |
77 | + | ||
78 | + | ||
79 | + | func A (n) = makeString(v(n), "|") | |
80 | + | ||
81 | + | ||
82 | + | func B (C) = w(split(C, "|")) | |
83 | + | ||
84 | + | ||
85 | + | func D (E) = { | |
86 | + | let F = valueOrErrorMessage(blockInfoByHeight(E), "unexcpected error") | |
87 | + | let G = valueOrErrorMessage(F.vrf, "unexcpected error") | |
88 | + | let H = sha256(value(G)) | |
89 | + | let I = toInt(H, 16) | |
90 | + | (I % 37) | |
91 | + | } | |
92 | + | ||
93 | + | ||
94 | + | func J (E) = { | |
95 | + | let H = sha256((value(value(blockInfoByHeight(E)).vrf) + toBytes(E))) | |
96 | + | let K = toInt(H, 24) | |
97 | + | let L = (K % 37) | |
98 | + | L | |
99 | + | } | |
100 | + | ||
101 | + | ||
102 | + | func M (L,N,O,P) = { | |
103 | + | let Q = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3] | |
104 | + | let R = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35] | |
105 | + | if ((P == "red")) | |
106 | + | then if (containsElement(Q, L)) | |
107 | + | then (N * 2) | |
108 | + | else 0 | |
109 | + | else if ((P == "black")) | |
110 | + | then if (containsElement(R, L)) | |
111 | + | then (N * 2) | |
112 | + | else 0 | |
113 | + | else if ((P == "odd")) | |
114 | + | then if (if (((L % 2) != 0)) | |
115 | + | then (L != 0) | |
116 | + | else false) | |
117 | + | then (N * 2) | |
118 | + | else 0 | |
119 | + | else if ((P == "even")) | |
120 | + | then if (if (((L % 2) == 0)) | |
121 | + | then (L != 0) | |
122 | + | else false) | |
123 | + | then (N * 2) | |
124 | + | else 0 | |
125 | + | else if (if ((size(O) == 1)) | |
126 | + | then (P == "num") | |
127 | + | else false) | |
128 | + | then if ((O[0] == L)) | |
129 | + | then (N * 36) | |
130 | + | else 0 | |
131 | + | else if ((size(O) == 2)) | |
132 | + | then if (containsElement(O, L)) | |
133 | + | then (N * 18) | |
134 | + | else 0 | |
135 | + | else if ((size(O) == 3)) | |
136 | + | then if (containsElement(O, L)) | |
137 | + | then (N * 12) | |
138 | + | else 0 | |
139 | + | else if ((size(O) == 4)) | |
140 | + | then if (containsElement(O, L)) | |
141 | + | then (N * 9) | |
142 | + | else 0 | |
143 | + | else if ((size(O) == 12)) | |
144 | + | then if (if (containsElement(O, L)) | |
145 | + | then (L != 0) | |
146 | + | else false) | |
147 | + | then (N * 3) | |
148 | + | else 0 | |
149 | + | else if ((size(O) == 18)) | |
150 | + | then if (if (containsElement(O, L)) | |
151 | + | then (L != 0) | |
152 | + | else false) | |
153 | + | then (N * 2) | |
154 | + | else 0 | |
155 | + | else 0 | |
156 | + | } | |
157 | + | ||
158 | + | ||
159 | + | func S (d) = ("bet_Roulette_" + toString(d.caller)) | |
160 | + | ||
161 | + | ||
162 | + | func T (d) = ("betAmount_Roulette_" + toString(d.caller)) | |
163 | + | ||
164 | + | ||
165 | + | func U (d) = ("selectedNumbers_Roulette_" + toString(d.caller)) | |
166 | + | ||
167 | + | ||
168 | + | func V (d) = ("direction_Roulette_" + toString(d.caller)) | |
169 | + | ||
170 | + | ||
171 | + | func W (d) = ((("log_Roulette_" + toString(d.caller)) + "_") + toBase58String(d.transactionId)) | |
172 | + | ||
173 | + | ||
174 | + | func X (d) = ("status_Roulette_" + toString(d.caller)) | |
175 | + | ||
176 | + | ||
177 | + | func Y (d) = ("bet_LuckyWheel_" + toString(d.caller)) | |
178 | + | ||
179 | + | ||
180 | + | func Z (d) = ("won_LuckyWheel_" + toString(d.caller)) | |
181 | + | ||
182 | + | ||
183 | + | func aa (d) = ("randomNumber_LuckyWheel_" + toString(d.caller)) | |
184 | + | ||
185 | + | ||
186 | + | func ab (d) = ((("log_LuckyWheel_" + toString(d.caller)) + "_") + toBase58String(d.transactionId)) | |
187 | + | ||
188 | + | ||
189 | + | func ac (ad) = { | |
190 | + | let ae = ad | |
191 | + | if ((1 == ae)) | |
192 | + | then a(2) | |
193 | + | else if ((3 == ae)) | |
194 | + | then a(1) | |
195 | + | else if ((7 == ae)) | |
196 | + | then a(6) | |
197 | + | else if ((9 == ae)) | |
198 | + | then a(1) | |
199 | + | else 0 | |
200 | + | } | |
201 | + | ||
202 | + | ||
203 | + | func af (d) = ("status_Roulette_" + toString(d.caller)) | |
204 | + | ||
205 | + | ||
206 | + | func ag (d) = ("bet_SM_" + toString(d.caller)) | |
207 | + | ||
208 | + | ||
209 | + | func ah (d) = ("betAmount_SM_" + toString(d.caller)) | |
210 | + | ||
211 | + | ||
212 | + | func ai (d) = ("status_SM_" + toString(d.caller)) | |
213 | + | ||
214 | + | ||
215 | + | func aj (E) = { | |
216 | + | let H = sha256((value(value(blockInfoByHeight(E)).vrf) + toBytes(E))) | |
217 | + | let K = toInt(H, 24) | |
218 | + | let L = (K % 6) | |
219 | + | let ak = sha256((value(value(blockInfoByHeight((E - (L * 100)))).vrf) + toBytes(E))) | |
220 | + | let al = toInt(ak, 24) | |
221 | + | let am = (al % 6) | |
222 | + | let an = sha256((value(value(blockInfoByHeight((E - (am * 100)))).vrf) + toBytes(E))) | |
223 | + | let ao = toInt(an, 24) | |
224 | + | let ap = (ao % 6) | |
225 | + | [L, am, ap] | |
226 | + | } | |
227 | + | ||
228 | + | ||
229 | + | @Callable(d) | |
230 | + | func SlotMachine_commit (N) = { | |
231 | + | let g = d.payments[0] | |
232 | + | if (!(c(d, N))) | |
233 | + | then throw("Wrong payment amount or asset!") | |
234 | + | else [IntegerEntry(ag(d), (height + 1)), IntegerEntry(ah(d), N), StringEntry(ai(d), ((("| status: commit | revealBlock: " + toString((height + 1))) + " | betAmount: ") + toString(N)))] | |
235 | + | } | |
236 | + | ||
237 | + | ||
238 | + | ||
239 | + | @Callable(d) | |
240 | + | func SlotMachine_reveal () = { | |
241 | + | let E = valueOrErrorMessage(getIntegerValue(ag(d)), "Bet not found") | |
242 | + | let N = valueOrErrorMessage(getIntegerValue(ah(d)), "Bet amount not found") | |
243 | + | if ((E > height)) | |
244 | + | then throw((("Wait " + toString((E - height))) + " blocks to reveal this id")) | |
245 | + | else { | |
246 | + | let L = aj(E) | |
247 | + | throw(((((toString(L[0]) + "|") + toString(L[1])) + "|") + toString(L[2]))) | |
248 | + | } | |
249 | + | } | |
250 | + | ||
251 | + |
github/deemru/w8io/169f3d6 43.77 ms ◑