tx · GVw6cUKwdLsumiooAo9Mw1wpWB1G8dKTfymStxhKcNyP

3MpdJJV3WyZufiGHRtb7xbY2Vsc2pBFcJYZ:  -0.01400000 Waves

2021.05.12 16:54 [1522542] smart account 3MpdJJV3WyZufiGHRtb7xbY2Vsc2pBFcJYZ > SELF 0.00000000 Waves

{ "type": 13, "id": "GVw6cUKwdLsumiooAo9Mw1wpWB1G8dKTfymStxhKcNyP", "fee": 1400000, "feeAssetId": null, "timestamp": 1620827721297, "version": 1, "sender": "3MpdJJV3WyZufiGHRtb7xbY2Vsc2pBFcJYZ", "senderPublicKey": "ALG9JVGNn9aCL68dbg1AmW6yDQv1b8EDLq99pQS8L1k6", "proofs": [ "2WCG3TtWaMEBmX9dZzWDbcbejLZVkX4qL2wpmMpLpeLp4yWzCAF7HjkNasfKGk864afcH4DFiCtSZhfXFT2pTJgk" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQgAAAATAAAAABNnYW1lTWFzdGVyUHVibGljS2V5AQAAACCKqFcQ1VSNQa7ZONz4ZD59H7wLfuowVwcQ1qI/fK6ACwAAAAAKZGljZU51bWJlcgkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAIJAARMAAAAAgAAAAAAAAAAAwkABEwAAAACAAAAAAAAAAAECQAETAAAAAIAAAAAAAAAAAUJAARMAAAAAgAAAAAAAAAABgkABEwAAAACAAAAAAAAAAAHCQAETAAAAAIAAAAAAAAAAAgFAAAAA25pbAAAAAAJZ2FtZVRva2VuAQAAACCvQNOoGbkt3wVk9kpr+yD9dOUY7LBdGNCbLK5MVkSodQAAAAAJR0FNRVNUQVJUAAAAAAAAAAAAAAAAAA5HQU1FSU5QUk9HUkVTUwAAAAAAAAAAAQAAAAAMR0FNRUZJTklTSEVEAAAAAAAAAAACAAAAABBnYW1lQ291bnRlckxhYmVsAgAAAA1HX0dBTUVDT1VOVEVSAAAAABBnYW1lUGFzc0JldExhYmVsAgAAAAtCX1BBU1NCRVRTXwAAAA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bAAAAAEFAAAACW5ld051bWJlcgAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkBAAAAFGdhbWVTdGFydEhlaWdodExhYmVsAAAAAQUAAAAJbmV3TnVtYmVyCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAAPZ2FtZVN1bVNoYUxhYmVsAAAAAQUAAAAGbnVtYmVyCQACWAAAAAEJAAH3AAAAAQkAAlsAAAABBQAAAApyYW5kb21IYXNoBQAAAANuaWwJAAACAAAAAQIAAAAJSU5JVF9ORUVEAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5gre/Vg==", "chainId": 84, "height": 1522542, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E1xPWZMT62FyGdL5jkxPpgstYbqivbsLYmo9Ttpec3R1 Next: AYHJCtjrkDmKayipE3mpzwyVBJw6SWBu1hmVZx4jpJUH Diff:
OldNewDifferences
2727 func m (n) = (("G_" + toString(n)) + "_STATE")
2828
2929
30-func o (n) = ((("G_" + toString(n)) + "_") + "_SUMSHA")
30+func o (n) = (("G_" + toString(n)) + "_SUMSHA")
3131
3232
33-func p (n) = ((("G_" + toString(n)) + "_") + "_STARTHEIGHT")
33+func p (n) = (("G_" + toString(n)) + "_STARTHEIGHT")
3434
3535
3636 func q (n) = getInteger(this, m(n))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'ALG9JVGNn9aCL68dbg1AmW6yDQv1b8EDLq99pQS8L1k6'
55
66 let b = [1, 2, 3, 4, 5, 6, 7, 8]
77
88 let c = base58'Co7gTLr7ZJvVKwToLpuZJqmkVecy5uwupYH6qCkKuhc8'
99
1010 let d = 0
1111
1212 let e = 1
1313
1414 let f = 2
1515
1616 let g = "G_GAMECOUNTER"
1717
1818 let h = "B_PASSBETS_"
1919
2020 let i = "G_CurrentPoint_"
2121
2222 let j = 0
2323
2424 func k (l) = (l != a)
2525
2626
2727 func m (n) = (("G_" + toString(n)) + "_STATE")
2828
2929
30-func o (n) = ((("G_" + toString(n)) + "_") + "_SUMSHA")
30+func o (n) = (("G_" + toString(n)) + "_SUMSHA")
3131
3232
33-func p (n) = ((("G_" + toString(n)) + "_") + "_STARTHEIGHT")
33+func p (n) = (("G_" + toString(n)) + "_STARTHEIGHT")
3434
3535
3636 func q (n) = getInteger(this, m(n))
3737
3838
3939 func r (n) = getString(this, o(n))
4040
4141
4242 func s (n) = getInteger(this, p(n))
4343
4444
4545 func t () = getInteger(this, g)
4646
4747
4848 func u (v) = b[(toInt(v) % 8)]
4949
5050
5151 @Callable(w)
5252 func initGame () = if (k(w.callerPublicKey))
5353 then throw("initGame_FORBIDDEN")
5454 else {
5555 let x = t()
5656 if ($isInstanceOf(x, "Int"))
5757 then {
5858 let y = x
5959 throw("INIT_ALREADY_DONE")
6060 }
6161 else [IntegerEntry(g, 0)]
6262 }
6363
6464
6565
6666 @Callable(w)
6767 func startGame (v) = if (k(w.callerPublicKey))
6868 then throw("startGame_FORBIDDEN")
6969 else {
7070 let x = t()
7171 if ($isInstanceOf(x, "Int"))
7272 then {
7373 let z = x
7474 let A = (z + 1)
7575 [IntegerEntry(g, A), IntegerEntry(m(A), 0), IntegerEntry(p(A), lastBlock.height), StringEntry(o(z), toBase58String(sha256(fromBase64String(v))))]
7676 }
7777 else throw("INIT_NEED")
7878 }
7979
8080
8181 @Verifier(B)
8282 func C () = {
8383 let x = B
8484 sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey)
8585 }
8686

github/deemru/w8io/169f3d6 
26.41 ms