tx · 9zgD8NoTc6ZJ1zbBFLpqNarUF5BXD7PenxGTucHDMARM

3NCCNgEjGtWKLt78jWc9DiA3Jd2jmfg7BZX:  -0.10000000 Waves

2022.01.13 18:56 [1877394] smart account 3NCCNgEjGtWKLt78jWc9DiA3Jd2jmfg7BZX > SELF 0.00000000 Waves

{ "type": 13, "id": "9zgD8NoTc6ZJ1zbBFLpqNarUF5BXD7PenxGTucHDMARM", "fee": 10000000, "feeAssetId": null, "timestamp": 1642089378419, "version": 2, "chainId": 84, "sender": "3NCCNgEjGtWKLt78jWc9DiA3Jd2jmfg7BZX", "senderPublicKey": "AcdhXSF5aWK6Lmdtv3cyCZ7vehbxsNNGagWCd2FpZo1M", "proofs": [ "5yFh8UpzaSHxbZUXg61AXLjwLErQeaoVaFe1b9kv38JezwgNSbqhJchrM8ACXFTwq6VAvP14utd2W9gEwg2q7JSe" ], "script": "base64:AAIFAAAAAAAAABQIAhIFCgMIAQESABIHCgUBCAgICAAAAA8AAAAAE2dhbWVNYXN0ZXJQdWJsaWNLZXkBAAAAIF1t2Oq4Jp6DRGnJV2x+n66xACBB37xnTL7cQnLLqBNvAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGTYmFzZTY0Ok1JSUJJekFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUkFBTUlJQkN3S0NBUUlBK0NwYnpNQktwcSs3VmFyU0RITFcwd1FTb2gyTFRiZ2wxckFoZnJ1WkdDanQ2TU80bzF2MWlMcUt5TkgzRkpzdndsTFVxbXFFN0UyV2w3TGJJUEEyNlB4TzJYQ0RmdmowT1dwN2NFSmtVQkVpeVBZQ24raXVQWFVQd3Vkb0ZnTTRXSGYwSVBiREoyTzZPZ3pRbEJCbU51Nk93cjduYUlUaUpyUEF2YWtQZ0FkbVVQdjRyT3pjdTZCUjBUOEd3c3p3cHJ2d1dabEtGNkFkMDBvbUxGRG14NjZIdkJFNTFzUkJpWElSYkpuakRobG9waXplNExvUjFGSXJRYUF1MXNmczViRUhM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mNhcmRzMgUAAAAGY2FyZHMzCQAAAgAAAAECAAAAEUluaXRHYW1lIFJlcXVpcmVkAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnI2iCP", "height": 1877394, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9tTeEjZKwdLMcf5MqFQ4ypKk6pAo1jcxvxoMP1EAAUiZ Next: Bx6s2W9sv91RCp19DALgsMeR5t43NJQC1ZZzZ68Ju6aE Diff:
OldNewDifferences
3737 func q (l) = (("G_" + toString(l)) + "_OFFSET")
3838
3939
40-func r (l,s,t) = [IntegerEntry(c, l), IntegerEntry(p(l), 0), IntegerEntry(q(l), s), StringEntry(k(l, 0), t)]
40+func r (l,s,t,u,v,w) = [IntegerEntry(c, l), IntegerEntry(p(l), 0), IntegerEntry(q(l), s), StringEntry(k(l, 0), t), StringEntry(k(l, 1), u), StringEntry(k(l, 2), v), StringEntry(k(l, 3), w)]
4141
4242
43-@Callable(u)
44-func verifyCard (m,l,v) = {
45- let w = rsaVerify_16Kb(SHA256, toBytes(m), fromBase64String(split(value(n(l, v)), " ")[0]), b)
46- throw(toString(w))
43+@Callable(x)
44+func verifyCard (m,l,y) = {
45+ let z = rsaVerify_16Kb(SHA256, toBytes(m), fromBase64String(split(value(n(l, y)), " ")[0]), b)
46+ throw(toString(z))
4747 }
4848
4949
5050
51-@Callable(u)
52-func initGame () = if (i(u.callerPublicKey))
51+@Callable(x)
52+func initGame () = if (i(x.callerPublicKey))
5353 then throw("initGame_FORBBIDEN")
5454 else {
55- let x = g()
56- if ($isInstanceOf(x, "Int"))
55+ let A = g()
56+ if ($isInstanceOf(A, "Int"))
5757 then {
58- let y = x
58+ let B = A
5959 throw("INIT_ALREADY_DONE")
6060 }
6161 else [IntegerEntry(c, 0), IntegerEntry(d, 0), IntegerEntry(f, 100000000), StringEntry(e, "")]
6363
6464
6565
66-@Callable(u)
67-func setupGame (l,t,z,A,B) = if (i(u.callerPublicKey))
66+@Callable(x)
67+func setupGame (l,t,u,v,w) = if (i(x.callerPublicKey))
6868 then throw("setupGame_FORBIDEN")
6969 else {
70- let x = g()
71- if ($isInstanceOf(x, "Int"))
70+ let A = g()
71+ if ($isInstanceOf(A, "Int"))
7272 then {
73- let C = x
74- let s = (toInt(sha256((take(lastBlock.generationSignature, 16) + take(u.transactionId, 16)))) % 2)
73+ let C = A
74+ let s = (toInt(sha256((take(lastBlock.generationSignature, 16) + take(x.transactionId, 16)))) % 2)
7575 let D = (C + 1)
7676 if ((l != D))
7777 then throw("Wrong game number.")
78- else r(D, s, t)
78+ else r(D, s, t, u, v, w)
7979 }
8080 else throw("InitGame Required")
8181 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'7Hi4o6vBstRs79NMVMjEove52dmP87RAcvNDAXN8C4Wi'
55
66 let b = fromBase64String("base64:MIIBIzANBgkqhkiG9w0BAQEFAAOCARAAMIIBCwKCAQIA+CpbzMBKpq+7VarSDHLW0wQSoh2LTbgl1rAhfruZGCjt6MO4o1v1iLqKyNH3FJsvwlLUqmqE7E2Wl7LbIPA26PxO2XCDfvj0OWp7cEJkUBEiyPYCn+iuPXUPwudoFgM4WHf0IPbDJ2O6OgzQlBBmNu6Owr7naITiJrPAvakPgAdmUPv4rOzcu6BR0T8GwszwprvwWZlKF6Ad00omLFDmx66HvBE51sRBiXIRbJnjDhlopize4LoR1FIrQaAu1sfs5bEHLA33jvKybne+IDawCsiINZYdPZV1WWcURC+XAFfBiYCw4PYyguxaBRHotzLc2dOsBV1HDNIjLKVoRknyt50CAwEAAQ==")
77
88 let c = "G_SETUPGAMESCOUNTER"
99
1010 let d = "G_USEDGAMESCOUNTER"
1111
1212 let e = "G_DEALERQUEUE"
1313
1414 let f = "G_MAXBET"
1515
1616 func g () = getInteger(this, c)
1717
1818
1919 func h () = getInteger(this, d)
2020
2121
2222 func i (j) = (j != a)
2323
2424
2525 func k (l,m) = ((("G_" + toString(l)) + "_CARDSIGNATURE_") + toString(m))
2626
2727
2828 func n (l,m) = getString(this, k(l, m))
2929
3030
3131 func o (l,m) = ((("G_" + toString(l)) + "_CARD_") + toString(m))
3232
3333
3434 func p (l) = (("G_" + toString(l)) + "_STATE")
3535
3636
3737 func q (l) = (("G_" + toString(l)) + "_OFFSET")
3838
3939
40-func r (l,s,t) = [IntegerEntry(c, l), IntegerEntry(p(l), 0), IntegerEntry(q(l), s), StringEntry(k(l, 0), t)]
40+func r (l,s,t,u,v,w) = [IntegerEntry(c, l), IntegerEntry(p(l), 0), IntegerEntry(q(l), s), StringEntry(k(l, 0), t), StringEntry(k(l, 1), u), StringEntry(k(l, 2), v), StringEntry(k(l, 3), w)]
4141
4242
43-@Callable(u)
44-func verifyCard (m,l,v) = {
45- let w = rsaVerify_16Kb(SHA256, toBytes(m), fromBase64String(split(value(n(l, v)), " ")[0]), b)
46- throw(toString(w))
43+@Callable(x)
44+func verifyCard (m,l,y) = {
45+ let z = rsaVerify_16Kb(SHA256, toBytes(m), fromBase64String(split(value(n(l, y)), " ")[0]), b)
46+ throw(toString(z))
4747 }
4848
4949
5050
51-@Callable(u)
52-func initGame () = if (i(u.callerPublicKey))
51+@Callable(x)
52+func initGame () = if (i(x.callerPublicKey))
5353 then throw("initGame_FORBBIDEN")
5454 else {
55- let x = g()
56- if ($isInstanceOf(x, "Int"))
55+ let A = g()
56+ if ($isInstanceOf(A, "Int"))
5757 then {
58- let y = x
58+ let B = A
5959 throw("INIT_ALREADY_DONE")
6060 }
6161 else [IntegerEntry(c, 0), IntegerEntry(d, 0), IntegerEntry(f, 100000000), StringEntry(e, "")]
6262 }
6363
6464
6565
66-@Callable(u)
67-func setupGame (l,t,z,A,B) = if (i(u.callerPublicKey))
66+@Callable(x)
67+func setupGame (l,t,u,v,w) = if (i(x.callerPublicKey))
6868 then throw("setupGame_FORBIDEN")
6969 else {
70- let x = g()
71- if ($isInstanceOf(x, "Int"))
70+ let A = g()
71+ if ($isInstanceOf(A, "Int"))
7272 then {
73- let C = x
74- let s = (toInt(sha256((take(lastBlock.generationSignature, 16) + take(u.transactionId, 16)))) % 2)
73+ let C = A
74+ let s = (toInt(sha256((take(lastBlock.generationSignature, 16) + take(x.transactionId, 16)))) % 2)
7575 let D = (C + 1)
7676 if ((l != D))
7777 then throw("Wrong game number.")
78- else r(D, s, t)
78+ else r(D, s, t, u, v, w)
7979 }
8080 else throw("InitGame Required")
8181 }
8282
8383
8484 @Verifier(E)
8585 func F () = sigVerify(E.bodyBytes, E.proofs[0], E.senderPublicKey)
8686

github/deemru/w8io/169f3d6 
41.34 ms