tx · 59pAUTAXhHGoTvkSJCWrRWBHbWcfBUyoUbn84kR1cMPG

3Mt6NEJ6ZK6TFZs14tvnR5iAgemnomy2m1V:  -0.00700000 Waves

2022.08.31 22:13 [2209032] smart account 3Mt6NEJ6ZK6TFZs14tvnR5iAgemnomy2m1V > SELF 0.00000000 Waves

{ "type": 13, "id": "59pAUTAXhHGoTvkSJCWrRWBHbWcfBUyoUbn84kR1cMPG", "fee": 700000, "feeAssetId": null, "timestamp": 1661973248435, "version": 2, "chainId": 84, "sender": "3Mt6NEJ6ZK6TFZs14tvnR5iAgemnomy2m1V", "senderPublicKey": "5f9EawB8nxaLg7KKhyqV2RDBMwRBG6o69D8zc9myAzrY", "proofs": [ "4x7gJR1VYbTcY34ZNEqmowGVcXJyHz8Rd9tmZDxaaPSqVP1wWJAP1ammJPjGtBthtFfYYdUpqouDRKLaurfjrpKQ" ], "script": "base64:AAIFAAAAAAAAABAIAhIAEgASABIAEgASABIAAAAAGgAAAAAOZ2FtZVRva2VuTGFiZWwCAAAACUdfVE9LRU5JRAAAAAAQZ2FtZUJhbGFuY2VMYWJlbAIAAAAJR19CQUxBTkNFAAAAABVnYW1lQ29tbXVuaXR5UG90TGFiZWwCAAAADkdfQ09NTVVOSVRZUE9UAAAAABFnYW1lUHJpemVQb3RMYWJlbAIAAAAKR19QUklaRVBPVAAAAAAZZ2FtZVByaXplU2hhcmVBbW91bnRMYWJlbAIAAAASR19QUklaRVNIQVJFQU1PVU5UAAAAABBnYW1lQ291bnRlckxhYmVsAgAAAA5HX0dBTUVTQ09VTlRFUgAAAAASZ2FtZVRvdGFsQmV0c0xhYmVsAgAAAAtHX1RPVEFMQkVUUwAAAAAWZ2FtZVByb2Nlc3NlZEJldHNMYWJlbAIAAAAPR19QUk9DRVNTRURCRVRTAAAAABdnYW1lV2lubmVyc0NvdW50ZXJMYWJlbAIAAAAOR19XSU5ORVJTQ09VTlQAAAAAGWdhbWVQcm9jZXNzZWRXaW5uZXJzTGFiZWwCAAAAE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h0V2lubmVyBQAAAAx0b3RhbFdpbm5lcnMJAAACAAAAAQIAAAAgTm8gbW9yZSB3aW5uZXJzIHRvIGJlIHByb2Nlc3NlZC4EAAAAByRtYXRjaDIJAQAAABRnYW1lUHJpemVTaGFyZUFtb3VudAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDICAAAAA0ludAQAAAAQcHJpemVTaGFyZUFtb3VudAUAAAAHJG1hdGNoMgQAAAAJYmV0UGxhY2VyCQEAAAANd2lubmVyRGV0YWlscwAAAAEFAAAACm5leHRXaW5uZXIEAAAAB2FkZHJlc3MJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQUAAAAJYmV0UGxhY2VyBAAAAAh3aW5uaW5ncwkBAAAAFGdhbWVQcml6ZVNoYXJlQW1vdW50AAAAAAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAdhZGRyZXNzBQAAABBwcml6ZVNoYXJlQW1vdW50CQEAAAAJZ2FtZVRva2VuAAAAAAUAAAADbmlsCQAAAgAAAAECAAAAO0dhbWUgaGFzIG5vdCBiZWVuIGluaXRpYWxpemVkLCBwcml6ZSBzaGFyZSBhbW91bnQgbm90IGZvdW5kCQAAAgAAAAECAAAAQEdhbWUgaGFzIG5vdCBiZWVuIGluaXRpYWxpemVkLCB0b3RhbCBwcm9jZXNzZWQgd2lubmVycyBub3QgZm91bmQJAAACAAAAAQIAAAA2R2FtZSBoYXMgbm90IGJlZW4gaW5pdGlhbGl6ZWQsIHRvdGFsIHdpbm5lcnMgbm90IGZvdW5kAAAAABtFtiI=", "height": 2209032, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4Xgs92tEEYbCYmRww2REc3iY4fEDSPiHobZ1g8R6WUBS Next: FCk9jqnhrbfpy4RAE5C7kahBzZGftQw7rKWw6f78ZH27 Diff:
OldNewDifferences
8080
8181
8282 @Callable(F)
83-func initGame () = [IntegerEntry(b, 0), IntegerEntry(c, 0), IntegerEntry(d, 10000000), IntegerEntry(e, 0), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(h, 0), IntegerEntry(i, 0)]
83+func initGame () = [IntegerEntry(b, 0), IntegerEntry(c, 0), IntegerEntry(d, 10000000), IntegerEntry(e, 0), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(h, 0), IntegerEntry(i, 0), IntegerEntry(j, 0)]
8484
8585
8686
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "G_TOKENID"
55
66 let b = "G_BALANCE"
77
88 let c = "G_COMMUNITYPOT"
99
1010 let d = "G_PRIZEPOT"
1111
1212 let e = "G_PRIZESHAREAMOUNT"
1313
1414 let f = "G_GAMESCOUNTER"
1515
1616 let g = "G_TOTALBETS"
1717
1818 let h = "G_PROCESSEDBETS"
1919
2020 let i = "G_WINNERSCOUNT"
2121
2222 let j = "G_PROCESSEDWINNERS"
2323
2424 func k (l) = (("G_" + toString(l)) + "_RESULT")
2525
2626
2727 func m (n) = (("B_" + toString(n)) + "_BETDETAILS")
2828
2929
3030 func o (p) = (("W_" + toString(p)) + "_WINNERDETAILS")
3131
3232
3333 func q () = getInteger(this, b)
3434
3535
3636 func r () = getInteger(this, c)
3737
3838
3939 func s () = getInteger(this, d)
4040
4141
4242 func t () = getInteger(this, e)
4343
4444
4545 func u () = getInteger(this, f)
4646
4747
4848 func v () = getInteger(this, g)
4949
5050
5151 func w () = getInteger(this, h)
5252
5353
5454 func x () = getInteger(this, i)
5555
5656
5757 func y () = getInteger(this, j)
5858
5959
6060 func z (l) = getStringValue(this, k(l))
6161
6262
6363 func A (n) = getStringValue(this, m(n))
6464
6565
6666 func B (p) = getStringValue(this, o(p))
6767
6868
6969 func C () = {
7070 let D = getString(this, a)
7171 if ($isInstanceOf(D, "String"))
7272 then {
7373 let E = D
7474 if ((E == ""))
7575 then unit
7676 else fromBase58String(E)
7777 }
7878 else unit
7979 }
8080
8181
8282 @Callable(F)
83-func initGame () = [IntegerEntry(b, 0), IntegerEntry(c, 0), IntegerEntry(d, 10000000), IntegerEntry(e, 0), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(h, 0), IntegerEntry(i, 0)]
83+func initGame () = [IntegerEntry(b, 0), IntegerEntry(c, 0), IntegerEntry(d, 10000000), IntegerEntry(e, 0), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(h, 0), IntegerEntry(i, 0), IntegerEntry(j, 0)]
8484
8585
8686
8787 @Callable(F)
8888 func startGame () = {
8989 let D = u()
9090 if ($isInstanceOf(D, "Int"))
9191 then {
9292 let G = D
9393 let H = (G + 1)
9494 [IntegerEntry(f, H)]
9595 }
9696 else throw("Game has not been initialized, total games not found")
9797 }
9898
9999
100100
101101 @Callable(F)
102102 func placeBet () = {
103103 let D = u()
104104 if ($isInstanceOf(D, "Int"))
105105 then {
106106 let G = D
107107 let I = v()
108108 if ($isInstanceOf(I, "Int"))
109109 then {
110110 let J = I
111111 let K = (J + 1)
112112 let L = "1,2,3"
113113 [IntegerEntry(g, K), StringEntry(m(K), ((("G" + toString(G)) + "-") + L))]
114114 }
115115 else throw("Game has not been initialized, total bets not found")
116116 }
117117 else throw("Game has not been initialized, total games not found")
118118 }
119119
120120
121121
122122 @Callable(F)
123123 func endGame () = {
124124 let D = u()
125125 if ($isInstanceOf(D, "Int"))
126126 then {
127127 let G = D
128128 [StringEntry(k(G), ((("G" + toString(G)) + "-") + "1,2,3"))]
129129 }
130130 else throw("Game has not been initialized, total games not found")
131131 }
132132
133133
134134
135135 @Callable(F)
136136 func processNextBet () = {
137137 let D = v()
138138 if ($isInstanceOf(D, "Int"))
139139 then {
140140 let J = D
141141 let I = w()
142142 if ($isInstanceOf(I, "Int"))
143143 then {
144144 let M = I
145145 let N = (M + 1)
146146 if ((N > J))
147147 then throw("Next bet has not been placed.")
148148 else {
149149 let O = u()
150150 if ($isInstanceOf(O, "Int"))
151151 then {
152152 let l = O
153153 let P = x()
154154 if ($isInstanceOf(P, "Int"))
155155 then {
156156 let Q = P
157157 let R = z(l)
158158 let S = A(N)
159159 if ((S == R))
160160 then {
161161 let T = (Q + 1)
162162 [IntegerEntry(h, N), IntegerEntry(i, (Q + 1)), StringEntry(o(T), toBase58String(F.caller.bytes))]
163163 }
164164 else [IntegerEntry(h, N)]
165165 }
166166 else throw("Game has not been initialized, total winners not found")
167167 }
168168 else throw("Game has not been initialized, total games not found")
169169 }
170170 }
171171 else throw("Game has not been initialized, total processed bets not found")
172172 }
173173 else throw("Game has not been initialized, total bets not found")
174174 }
175175
176176
177177
178178 @Callable(F)
179179 func calculatePrize () = {
180180 let D = x()
181181 if ($isInstanceOf(D, "Int"))
182182 then {
183183 let Q = D
184184 if ((Q == 0))
185185 then throw("There are no winners this round.")
186186 else {
187187 let I = s()
188188 if ($isInstanceOf(I, "Int"))
189189 then {
190190 let U = I
191191 let V = s()
192192 let W = (U / Q)
193193 [IntegerEntry(e, W)]
194194 }
195195 else throw("Game has not been initialized, total games not found")
196196 }
197197 }
198198 else throw("Game has not been initialized, total winners not found")
199199 }
200200
201201
202202
203203 @Callable(F)
204204 func processNextWinner () = {
205205 let D = x()
206206 if ($isInstanceOf(D, "Int"))
207207 then {
208208 let X = D
209209 if ((X == 0))
210210 then throw("There are no winners this round.")
211211 else {
212212 let I = y()
213213 if ($isInstanceOf(I, "Int"))
214214 then {
215215 let Y = I
216216 let Z = (Y + 1)
217217 if ((Z > X))
218218 then throw("No more winners to be processed.")
219219 else {
220220 let O = t()
221221 if ($isInstanceOf(O, "Int"))
222222 then {
223223 let W = O
224224 let aa = B(Z)
225225 let ab = value(addressFromString(aa))
226226 let ac = t()
227227 [ScriptTransfer(ab, W, C())]
228228 }
229229 else throw("Game has not been initialized, prize share amount not found")
230230 }
231231 }
232232 else throw("Game has not been initialized, total processed winners not found")
233233 }
234234 }
235235 else throw("Game has not been initialized, total winners not found")
236236 }
237237
238238

github/deemru/w8io/169f3d6 
30.47 ms