tx · 6dKfvDL1KCiwZtqv9AjUb27SSVpGcfqFn5U1mhk1rFWY

3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd:  -0.10010000 Waves

2022.01.16 03:27 [1880785] smart account 3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd > SELF 0.00000000 Waves

{ "type": 13, "id": "6dKfvDL1KCiwZtqv9AjUb27SSVpGcfqFn5U1mhk1rFWY", "fee": 10010000, "feeAssetId": null, "timestamp": 1642292849798, "version": 2, "chainId": 84, "sender": "3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd", "senderPublicKey": "7Hi4o6vBstRs79NMVMjEove52dmP87RAcvNDAXN8C4Wi", "proofs": [ "4chtwviN6w4RRMdUhtPc7Y9aqdwmdDbZTzPcLMbBgkTgZB8GeD4PJxxx6DLZ8zAtH4bnwbpw216vWB2cGHfQ8X1A" ], "script": "base64:AAIEAAAAAAAAACkIAhIFCgMBCAgSABIAEgUKAwEICBIECgIBARIHCgUBCAgICBIECgIBAQAAACMAAAAAE2dhbWVNYXN0ZXJQdWJsaWNLZXkBAAAAIIdjXkgFFtrkHsQ9EVCCVH0dcNZ4QrNMHlHueDDmJyUCAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGTYmFzZTY0Ok1JSUJJekFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUkFBTUlJQkN3S0NBUUlBK0NwYnpNQktwcSs3VmFyU0RITFcwd1FTb2gyTFRiZ2wxckFoZnJ1WkdDanQ2TU80bzF2MWlMcUt5TkgzRkpzdndsTFVxbXFFN0UyV2w3TGJJUEEyNlB4TzJYQ0RmdmowT1dwN2NFSmtVQkVpeVBZQ24raXVQWFVQd3Vkb0ZnTTRXSGYwSVBiREoyTzZPZ3pRbEJCbU51Nk93cjduYUlUaUpyUEF2YWtQZ0FkbVVQdjRyT3pjdTZCUjBUOEd3c3p3cHJ2d1dabEtGNkFkMDBvbUxGRG14NjZIdkJFNTFzUkJpWElSYkpu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XhCZXQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAD2dhbWVNaW5CZXRMYWJlbAUAAAAGbWluQmV0CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAEGRlYWxlclF1ZXVlTGFiZWwCAAAAAAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnLBIMV", "height": 1880785, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5HSiYfmJom1bANuwDZ1BGkqtBAF5mQEF4XiCXtjpbBCJ Next: 7YVwMfunDHowDfTnv1oio38Sb2aYgnahqxcJDhdwDJwb Diff:
OldNewDifferences
147147 let P = value(C(aa))
148148 let ah = V(W)
149149 if (((ah + W.fee) != P))
150- then throw((("Payment must me same as the original bet (" + toString(P)) + ")"))
150+ then throw((("Payment must me same as the original bet (" + toString((P - W.fee))) + ")"))
151151 else [IntegerEntry(v(aa), 3), StringEntry(g, ((value(n()) + ",") + toString(aa)))]
152152 }
153153 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'A7VvRHtZro8bvGa9KAahiP9xovdKJ5hGsTjHLMa6nRPo'
55
66 let b = fromBase64String("base64:MIIBIzANBgkqhkiG9w0BAQEFAAOCARAAMIIBCwKCAQIA+CpbzMBKpq+7VarSDHLW0wQSoh2LTbgl1rAhfruZGCjt6MO4o1v1iLqKyNH3FJsvwlLUqmqE7E2Wl7LbIPA26PxO2XCDfvj0OWp7cEJkUBEiyPYCn+iuPXUPwudoFgM4WHf0IPbDJ2O6OgzQlBBmNu6Owr7naITiJrPAvakPgAdmUPv4rOzcu6BR0T8GwszwprvwWZlKF6Ad00omLFDmx66HvBE51sRBiXIRbJnjDhlopize4LoR1FIrQaAu1sfs5bEHLA33jvKybne+IDawCsiINZYdPZV1WWcURC+XAFfBiYCw4PYyguxaBRHotzLc2dOsBV1HDNIjLKVoRknyt50CAwEAAQ==")
77
88 let c = base58'AJRyxpsv9Z4v46eg9b5TpnVXn3DteJYPHRJSbMckYPWw'
99
1010 let d = 3
1111
1212 let e = "G_SETUPGAMESCOUNTER"
1313
1414 let f = "G_USEDGAMESCOUNTER"
1515
1616 let g = "G_DEALERQUEUE"
1717
1818 let h = "G_MAXBET"
1919
2020 let i = "G_MINBET"
2121
2222 func j () = getInteger(this, h)
2323
2424
2525 func k () = getInteger(this, i)
2626
2727
2828 func l () = getInteger(this, e)
2929
3030
3131 func m () = getInteger(this, f)
3232
3333
3434 func n () = getString(this, g)
3535
3636
3737 func o (p) = (p != a)
3838
3939
4040 func q (r) = (("G_" + toString(r)) + "_BETAMOUNT")
4141
4242
4343 func s (r) = (("G_" + toString(r)) + "_TIEAMOUNT")
4444
4545
4646 func t (r) = (("G_" + toString(r)) + "_PLAYER")
4747
4848
4949 func u (r) = (("G_" + toString(r)) + "_PAYOUT")
5050
5151
5252 func v (r) = (("G_" + toString(r)) + "_STATE")
5353
5454
5555 func w (r) = (("G_" + toString(r)) + "_OFFSET")
5656
5757
5858 func x (r,y) = ((("G_" + toString(r)) + "_CARDSIGNATURE_") + toString(y))
5959
6060
6161 func z (A) = (("P_" + A) + "_CURRENTGAME")
6262
6363
6464 func B (A) = getInteger(this, z(A))
6565
6666
6767 func C (r) = getInteger(this, q(r))
6868
6969
7070 func D (r) = getInteger(this, s(r))
7171
7272
7373 func E (r) = getInteger(this, v(r))
7474
7575
7676 func F (r) = getString(this, t(r))
7777
7878
7979 func G (r,y) = getString(this, x(r, y))
8080
8181
8282 func H (r,y) = ((("G_" + toString(r)) + "_CARD_") + toString(y))
8383
8484
8585 func I (r,J,K,L,M,N) = [IntegerEntry(e, r), IntegerEntry(v(r), 0), IntegerEntry(w(r), J), StringEntry(x(r, 0), K), StringEntry(x(r, 1), L), StringEntry(x(r, 2), M), StringEntry(x(r, 3), N)]
8686
8787
8888 func O (A,P,Q) = {
8989 let R = (value(m()) + 1)
9090 let S = value(n())
9191 [IntegerEntry(f, R), IntegerEntry(z(A), R), IntegerEntry(v(R), 1), IntegerEntry(q(R), P), IntegerEntry(s(R), Q), StringEntry(g, ((value(n()) + ",") + toString(R))), StringEntry(t(R), A)]
9292 }
9393
9494
9595 func T (U) = parseIntValue(split(U, "/")[0])
9696
9797
9898 func V (W) = if ((size(W.payments) == 0))
9999 then throw("Payment must be attached")
100100 else if ((size(W.payments) == 1))
101101 then {
102102 let X = W.payments[0]
103103 X.amount
104104 }
105105 else throw("There should be only one payment")
106106
107107
108108 func Y (y,r,Z) = rsaVerify_16Kb(SHA256, toBytes(y), fromBase64String(split(value(G(r, Z)), " ")[0]), b)
109109
110110
111111 @Callable(W)
112112 func revealRound2 (aa,ab,ac) = if (o(W.callerPublicKey))
113113 then throw("revealRound2_FORBBIDEN")
114114 else {
115115 let S = value(n())
116116 let ad = split(S, ",")[1]
117117 if ((ad == toString(aa)))
118118 then if (if (if ((value(E(aa)) == 3))
119119 then Y(ab, aa, 2)
120120 else false)
121121 then Y(ac, aa, 3)
122122 else false)
123123 then {
124124 let ae = T(split(ab, "+")[d])
125125 let af = T(split(ac, "+")[d])
126126 if ((ae >= af))
127127 then {
128128 let ag = value(C(aa))
129129 let A = value(addressFromString(value(F(aa))))
130130 [StringEntry(H(aa, 2), ab), StringEntry(H(aa, 3), ac), IntegerEntry(v(aa), 6), StringEntry(g, takeRight(S, (size(S) - (1 + size(toString(aa)))))), ScriptTransfer(A, ((ag * 2) + (ag - W.fee)), unit)]
131131 }
132132 else [StringEntry(H(aa, 2), ab), StringEntry(H(aa, 3), ac), IntegerEntry(v(aa), 6), StringEntry(g, takeRight(S, (size(S) - (1 + size(toString(aa))))))]
133133 }
134134 else throw("One of the cards failed to be verified or game is not in state 1.")
135135 else throw(("The next game to process is " + ad))
136136 }
137137
138138
139139
140140 @Callable(W)
141141 func war () = {
142142 let A = toBase58String(W.caller.bytes)
143143 let aa = value(B(A))
144144 if ((value(E(aa)) != 2))
145145 then throw("Game is not in correct state.")
146146 else {
147147 let P = value(C(aa))
148148 let ah = V(W)
149149 if (((ah + W.fee) != P))
150- then throw((("Payment must me same as the original bet (" + toString(P)) + ")"))
150+ then throw((("Payment must me same as the original bet (" + toString((P - W.fee))) + ")"))
151151 else [IntegerEntry(v(aa), 3), StringEntry(g, ((value(n()) + ",") + toString(aa)))]
152152 }
153153 }
154154
155155
156156
157157 @Callable(W)
158158 func surrender () = {
159159 let A = toBase58String(W.caller.bytes)
160160 let aa = value(B(A))
161161 if ((value(E(aa)) != 2))
162162 then throw("Game is not in correct state.")
163163 else {
164164 let P = value(C(aa))
165165 let S = value(n())
166166 [IntegerEntry(v(aa), 5), ScriptTransfer(W.caller, (P / 2), unit)]
167167 }
168168 }
169169
170170
171171
172172 @Callable(W)
173173 func revealRound1 (aa,ai,aj) = if (o(W.callerPublicKey))
174174 then throw("revealRound1_FORBBIDEN")
175175 else {
176176 let S = value(n())
177177 let ad = split(S, ",")[1]
178178 if ((ad == toString(aa)))
179179 then if (if (if ((value(E(aa)) == 1))
180180 then Y(ai, aa, 0)
181181 else false)
182182 then Y(aj, aa, 1)
183183 else false)
184184 then {
185185 let ae = T(split(ai, "+")[d])
186186 let af = T(split(aj, "+")[d])
187187 if ((ae == af))
188188 then {
189189 let ak = value(D(aa))
190190 let A = value(addressFromString(value(F(aa))))
191191 if ((ak != 0))
192192 then [StringEntry(H(aa, 0), ai), StringEntry(H(aa, 1), aj), IntegerEntry(v(aa), 2), StringEntry(g, takeRight(S, (size(S) - (1 + size(toString(aa)))))), ScriptTransfer(A, ((ak * 10) + ak), unit)]
193193 else [StringEntry(H(aa, 0), ai), StringEntry(H(aa, 1), aj), IntegerEntry(v(aa), 2), StringEntry(g, takeRight(S, (size(S) - (1 + size(toString(aa))))))]
194194 }
195195 else if ((ae > af))
196196 then {
197197 let ag = value(C(aa))
198198 let A = value(addressFromString(value(F(aa))))
199199 [StringEntry(H(aa, 0), ai), StringEntry(H(aa, 1), aj), IntegerEntry(v(aa), 4), StringEntry(g, takeRight(S, (size(S) - (1 + size(toString(aa)))))), ScriptTransfer(A, ag, unit)]
200200 }
201201 else [StringEntry(H(aa, 0), ai), StringEntry(H(aa, 1), aj), IntegerEntry(v(aa), 4), StringEntry(g, takeRight(S, (size(S) - (1 + size(toString(aa))))))]
202202 }
203203 else throw("One of the cards failed to be verified or game is not in state 1.")
204204 else throw(("The next game to process is " + ad))
205205 }
206206
207207
208208
209209 @Callable(W)
210210 func bet (ag,ak) = {
211211 let al = toBase58String(W.caller.bytes)
212212 let ah = V(W)
213213 let P = (ag + W.fee)
214214 let Q = ak
215215 let A = toBase58String(W.caller.bytes)
216216 if ((ah != (ag + ak)))
217217 then throw("normal bet + tie bet should be equal to the payment")
218218 else if (if ((value(k()) > ah))
219219 then true
220220 else (ah > value(j())))
221221 then throw((((("Payment needs to be in the following interval [" + toString(value(k()))) + " ") + toString(value(j()))) + "]"))
222222 else if ((value(m()) >= value(l())))
223223 then throw("No available set up games to use.")
224224 else {
225225 let am = B(A)
226226 if ($isInstanceOf(am, "Int"))
227227 then {
228228 let an = am
229229 if ((4 > value(E(an))))
230230 then throw((("Game " + toString(an)) + " is still in progress."))
231231 else O(A, P, Q)
232232 }
233233 else if ($isInstanceOf(am, "Unit"))
234234 then O(A, P, Q)
235235 else throw("Match error")
236236 }
237237 }
238238
239239
240240
241241 @Callable(W)
242242 func setupGame (r,ai,aj,ab,ac) = if (o(W.callerPublicKey))
243243 then throw("setupGame_FORBBIDEN")
244244 else {
245245 let am = l()
246246 if ($isInstanceOf(am, "Int"))
247247 then {
248248 let ao = am
249249 let J = (toInt(sha256((take(lastBlock.generationSignature, 16) + take(W.transactionId, 16)))) % 2)
250250 let aa = (ao + 1)
251251 if ((r != aa))
252252 then throw("Wrong game number.")
253253 else if (((J % 2) == 1))
254254 then I(aa, J, ac, ab, aj, ai)
255255 else I(aa, J, ai, aj, ab, ac)
256256 }
257257 else throw("InitGame Required")
258258 }
259259
260260
261261
262262 @Callable(W)
263263 func initGame (ap,aq) = if (o(W.callerPublicKey))
264264 then throw("initGame_FORBBIDEN")
265265 else {
266266 let am = l()
267267 if ($isInstanceOf(am, "Int"))
268268 then {
269269 let ar = am
270270 throw("INIT_ALREADY_DONE")
271271 }
272272 else [IntegerEntry(e, 0), IntegerEntry(f, 0), IntegerEntry(h, ap), IntegerEntry(i, aq), StringEntry(g, "")]
273273 }
274274
275275
276276 @Verifier(as)
277277 func at () = sigVerify(as.bodyBytes, as.proofs[0], as.senderPublicKey)
278278

github/deemru/w8io/026f985 
69.05 ms