tx · C3ZnRi8xem8b1TWeohZQdFo7kHJWmGiKSepLAGcZDD2e

3NAjwfxvJp9VShPRRyyqxM7DBur7oCPn79L:  -0.00800000 Waves

2022.08.31 22:32 [2209050] smart account 3NAjwfxvJp9VShPRRyyqxM7DBur7oCPn79L > SELF 0.00000000 Waves

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

github/deemru/w8io/169f3d6 
85.20 ms