tx · CZjZpiSFnGjRbNhbaZyHBf7fjTyx298JH8zF7ZsJE5NG 3NAjwfxvJp9VShPRRyyqxM7DBur7oCPn79L: -0.00800000 Waves 2022.08.31 22:36 [2209054] smart account 3NAjwfxvJp9VShPRRyyqxM7DBur7oCPn79L > SELF 0.00000000 Waves
{ "type": 13, "id": "CZjZpiSFnGjRbNhbaZyHBf7fjTyx298JH8zF7ZsJE5NG", "fee": 800000, "feeAssetId": null, "timestamp": 1661974652498, "version": 2, "chainId": 84, "sender": "3NAjwfxvJp9VShPRRyyqxM7DBur7oCPn79L", "senderPublicKey": "3qLStkxzTGZubeF2nmuXT2iopYYNg89sPT7VaNpTqihE", "proofs": [ "23M8tNTXoZjDjv6ZoTQD8Nn4p8NJyjdiNge4JYcMgr9CbGAFhs6B9UFgddkgfmG6t9qsYKKyx57rXDbKwiUQqkZm" ], "script": "base64:AAIFAAAAAAAAABAIAhIAEgASABIAEgASABIAAAAAGgAAAAAOZ2FtZVRva2VuTGFiZWwCAAAACUdfVE9LRU5JRAAAAAAQZ2FtZUJhbGFuY2VMYWJlbAIAAAAJR19CQUxBTkNFAAAAABVnYW1lQ29tbXVuaXR5UG90TGFiZWwCAAAADkdfQ09NTVVOSVRZUE9UAQAAABFnYW1lUHJpemVQb3RMYWJlbAAAAAEAAAAKZ2FtZU51bWJlcgkAASwAAAACCQABLAAAAAICAAAAAkdfCQABpAAAAAEFAAAACmdhbWVOdW1iZXICAAAACFBSSVpFUE9UAQAAABlnYW1lUHJpemVTaGFyZUFtb3VudExhYmVsAAAAAQAAAApnYW1lTnVtYmVyCQABLAAAAAIJAAEsAAAAAgIAAAACR18JAAGkAAAAAQUAAAAKZ2FtZU51bWJlcgIAAAAQUFJJWkVTSEFSRUFNT1VOVAAAAAAQZ2FtZUNvdW50ZXJMYWJlbAIAAAAOR19HQU1FU0NPVU5URVIBAAAAEmdhbWVUb3RhbEJldHNMYWJlbAAAAAEAAAAKZ2FtZU51bWJlcgkAASwAAAACCQABLAAAA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wUAAAAQcHJpemVTaGFyZUFtb3VudAkBAAAACWdhbWVUb2tlbgAAAAAFAAAAA25pbAkAAAIAAAABAgAAADtHYW1lIGhhcyBub3QgYmVlbiBpbml0aWFsaXplZCwgcHJpemUgc2hhcmUgYW1vdW50IG5vdCBmb3VuZAkAAAIAAAABAgAAAEBHYW1lIGhhcyBub3QgYmVlbiBpbml0aWFsaXplZCwgdG90YWwgcHJvY2Vzc2VkIHdpbm5lcnMgbm90IGZvdW5kCQAAAgAAAAECAAAANkdhbWUgaGFzIG5vdCBiZWVuIGluaXRpYWxpemVkLCB0b3RhbCB3aW5uZXJzIG5vdCBmb3VuZAkAAAIAAAABAgAAADRHYW1lIGhhcyBub3QgYmVlbiBpbml0aWFsaXplZCwgdG90YWwgZ2FtZXMgbm90IGZvdW5kAAAAAC2XJuc=", "height": 2209054, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3UzrUWbFrh4BmBt9cHWZSUZXoZQCpDJFfvsyoad5YJEK Next: 6wWxMwaAMV76vBCXN8Ahrg1upb9pZ4KLr6TWZYDmL7nt Diff:
Old | New | Differences | |
---|---|---|---|
97 | 97 | then { | |
98 | 98 | let G = D | |
99 | 99 | let H = (G + 1) | |
100 | - | [IntegerEntry(g, H), IntegerEntry(d(H), | |
100 | + | [IntegerEntry(g, H), IntegerEntry(d(H), 100000000), IntegerEntry(f(H), 0), IntegerEntry(h(H), 0), IntegerEntry(i(H), 0), IntegerEntry(j(H), 0), IntegerEntry(k(H), 0)] | |
101 | 101 | } | |
102 | 102 | else throw("Game has not been initialized, total games not found") | |
103 | 103 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "G_TOKENID" | |
5 | 5 | ||
6 | 6 | let b = "G_BALANCE" | |
7 | 7 | ||
8 | 8 | let c = "G_COMMUNITYPOT" | |
9 | 9 | ||
10 | 10 | func d (e) = (("G_" + toString(e)) + "PRIZEPOT") | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func f (e) = (("G_" + toString(e)) + "PRIZESHAREAMOUNT") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | let g = "G_GAMESCOUNTER" | |
17 | 17 | ||
18 | 18 | func h (e) = (("G_" + toString(e)) + "TOTALBETS") | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func i (e) = (("G_" + toString(e)) + "PROCESSEDBETS") | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func j (e) = (("G_" + toString(e)) + "WINNERSCOUNT") | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func k (e) = (("G_" + toString(e)) + "PROCESSEDWINNERS") | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func l (e) = (("G_" + toString(e)) + "_RESULT") | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func m (n) = (("B_" + toString(n)) + "_BETDETAILS") | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func o (p) = (("W_" + toString(p)) + "_WINNERDETAILS") | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func q () = getInteger(this, b) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func r () = getInteger(this, c) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func s (e) = getInteger(this, d(e)) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func t (e) = getInteger(this, f(e)) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func u () = getInteger(this, g) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func v (e) = getInteger(this, h(e)) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func w (e) = getInteger(this, i(e)) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func x (e) = getInteger(this, j(e)) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func y (e) = getInteger(this, k(e)) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func z (e) = getStringValue(this, l(e)) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func A (n) = getStringValue(this, m(n)) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func B (p) = getStringValue(this, o(p)) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func C () = { | |
76 | 76 | let D = getString(this, a) | |
77 | 77 | if ($isInstanceOf(D, "String")) | |
78 | 78 | then { | |
79 | 79 | let E = D | |
80 | 80 | if ((E == "")) | |
81 | 81 | then unit | |
82 | 82 | else fromBase58String(E) | |
83 | 83 | } | |
84 | 84 | else unit | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | @Callable(F) | |
89 | 89 | func initGame () = [IntegerEntry(b, 0), IntegerEntry(c, 0), IntegerEntry(g, 0)] | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Callable(F) | |
94 | 94 | func startGame () = { | |
95 | 95 | let D = u() | |
96 | 96 | if ($isInstanceOf(D, "Int")) | |
97 | 97 | then { | |
98 | 98 | let G = D | |
99 | 99 | let H = (G + 1) | |
100 | - | [IntegerEntry(g, H), IntegerEntry(d(H), | |
100 | + | [IntegerEntry(g, H), IntegerEntry(d(H), 100000000), IntegerEntry(f(H), 0), IntegerEntry(h(H), 0), IntegerEntry(i(H), 0), IntegerEntry(j(H), 0), IntegerEntry(k(H), 0)] | |
101 | 101 | } | |
102 | 102 | else throw("Game has not been initialized, total games not found") | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | ||
107 | 107 | @Callable(F) | |
108 | 108 | func placeBet () = { | |
109 | 109 | let D = u() | |
110 | 110 | if ($isInstanceOf(D, "Int")) | |
111 | 111 | then { | |
112 | 112 | let G = D | |
113 | 113 | let I = v(G) | |
114 | 114 | if ($isInstanceOf(I, "Int")) | |
115 | 115 | then { | |
116 | 116 | let J = I | |
117 | 117 | let K = (J + 1) | |
118 | 118 | let L = "1,2,3" | |
119 | 119 | [IntegerEntry(h(G), K), StringEntry(m(K), ((("G" + toString(G)) + "-") + L))] | |
120 | 120 | } | |
121 | 121 | else throw("Game has not been initialized, total bets not found") | |
122 | 122 | } | |
123 | 123 | else throw("Game has not been initialized, total games not found") | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | ||
128 | 128 | @Callable(F) | |
129 | 129 | func endGame () = { | |
130 | 130 | let D = u() | |
131 | 131 | if ($isInstanceOf(D, "Int")) | |
132 | 132 | then { | |
133 | 133 | let G = D | |
134 | 134 | [StringEntry(l(G), ((("G" + toString(G)) + "-") + "1,2,3"))] | |
135 | 135 | } | |
136 | 136 | else throw("Game has not been initialized, total games not found") | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | ||
141 | 141 | @Callable(F) | |
142 | 142 | func processNextBet () = { | |
143 | 143 | let D = u() | |
144 | 144 | if ($isInstanceOf(D, "Int")) | |
145 | 145 | then { | |
146 | 146 | let G = D | |
147 | 147 | let I = v(G) | |
148 | 148 | if ($isInstanceOf(I, "Int")) | |
149 | 149 | then { | |
150 | 150 | let J = I | |
151 | 151 | let M = w(G) | |
152 | 152 | if ($isInstanceOf(M, "Int")) | |
153 | 153 | then { | |
154 | 154 | let N = M | |
155 | 155 | let O = (N + 1) | |
156 | 156 | if ((O > J)) | |
157 | 157 | then throw("Next bet has not been placed.") | |
158 | 158 | else { | |
159 | 159 | let P = u() | |
160 | 160 | if ($isInstanceOf(P, "Int")) | |
161 | 161 | then { | |
162 | 162 | let e = P | |
163 | 163 | let Q = x(G) | |
164 | 164 | if ($isInstanceOf(Q, "Int")) | |
165 | 165 | then { | |
166 | 166 | let R = Q | |
167 | 167 | let S = z(e) | |
168 | 168 | let T = A(O) | |
169 | 169 | if ((T == S)) | |
170 | 170 | then { | |
171 | 171 | let U = (R + 1) | |
172 | 172 | [IntegerEntry(i(G), O), IntegerEntry(j(G), (R + 1)), StringEntry(o(U), toBase58String(F.caller.bytes))] | |
173 | 173 | } | |
174 | 174 | else [IntegerEntry(i(G), O)] | |
175 | 175 | } | |
176 | 176 | else throw("Game has not been initialized, total winners not found") | |
177 | 177 | } | |
178 | 178 | else throw("Game has not been initialized, total games not found") | |
179 | 179 | } | |
180 | 180 | } | |
181 | 181 | else throw("Game has not been initialized, total processed bets not found") | |
182 | 182 | } | |
183 | 183 | else throw("Game has not been initialized, total bets not found") | |
184 | 184 | } | |
185 | 185 | else throw("Game has not been initialized, total games not found") | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | ||
190 | 190 | @Callable(F) | |
191 | 191 | func calculatePrize () = { | |
192 | 192 | let D = u() | |
193 | 193 | if ($isInstanceOf(D, "Int")) | |
194 | 194 | then { | |
195 | 195 | let G = D | |
196 | 196 | let I = x(G) | |
197 | 197 | if ($isInstanceOf(I, "Int")) | |
198 | 198 | then { | |
199 | 199 | let R = I | |
200 | 200 | if ((R == 0)) | |
201 | 201 | then throw("There are no winners this round.") | |
202 | 202 | else { | |
203 | 203 | let M = s(G) | |
204 | 204 | if ($isInstanceOf(M, "Int")) | |
205 | 205 | then { | |
206 | 206 | let V = M | |
207 | 207 | let W = (V / R) | |
208 | 208 | [IntegerEntry(f(G), W)] | |
209 | 209 | } | |
210 | 210 | else throw("Game has not been initialized, total games not found") | |
211 | 211 | } | |
212 | 212 | } | |
213 | 213 | else throw("Game has not been initialized, total winners not found") | |
214 | 214 | } | |
215 | 215 | else throw("Game has not been initialized, total games not found") | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | ||
220 | 220 | @Callable(F) | |
221 | 221 | func processNextWinner () = { | |
222 | 222 | let D = u() | |
223 | 223 | if ($isInstanceOf(D, "Int")) | |
224 | 224 | then { | |
225 | 225 | let G = D | |
226 | 226 | let I = x(G) | |
227 | 227 | if ($isInstanceOf(I, "Int")) | |
228 | 228 | then { | |
229 | 229 | let X = I | |
230 | 230 | if ((X == 0)) | |
231 | 231 | then throw("There are no winners this round.") | |
232 | 232 | else { | |
233 | 233 | let M = y(G) | |
234 | 234 | if ($isInstanceOf(M, "Int")) | |
235 | 235 | then { | |
236 | 236 | let Y = M | |
237 | 237 | let Z = (Y + 1) | |
238 | 238 | if ((Z > X)) | |
239 | 239 | then throw("No more winners to be processed.") | |
240 | 240 | else { | |
241 | 241 | let P = t(G) | |
242 | 242 | if ($isInstanceOf(P, "Int")) | |
243 | 243 | then { | |
244 | 244 | let W = P | |
245 | 245 | let aa = B(Z) | |
246 | 246 | let ab = value(addressFromString(aa)) | |
247 | 247 | [ScriptTransfer(ab, W, C())] | |
248 | 248 | } | |
249 | 249 | else throw("Game has not been initialized, prize share amount not found") | |
250 | 250 | } | |
251 | 251 | } | |
252 | 252 | else throw("Game has not been initialized, total processed winners not found") | |
253 | 253 | } | |
254 | 254 | } | |
255 | 255 | else throw("Game has not been initialized, total winners not found") | |
256 | 256 | } | |
257 | 257 | else throw("Game has not been initialized, total games not found") | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 |
github/deemru/w8io/169f3d6 35.80 ms ◑