tx · EDqrMca5rAySMJjE8azrGFXS73Gx7VyjR6L7ExoccpBq

3Mth4mJpNbm6N6PQsgnP5KzcHBfC2Luiyfs:  -0.01000000 Waves

2019.07.31 14:50 [610229] smart account 3Mth4mJpNbm6N6PQsgnP5KzcHBfC2Luiyfs > SELF 0.00000000 Waves

{ "type": 13, "id": "EDqrMca5rAySMJjE8azrGFXS73Gx7VyjR6L7ExoccpBq", "fee": 1000000, "feeAssetId": null, "timestamp": 1564573842635, "version": 1, "sender": "3Mth4mJpNbm6N6PQsgnP5KzcHBfC2Luiyfs", "senderPublicKey": "GL5QvqgydTUCg1sj1s7juR6hVfxLHjZ37Kr5sAX4D4an", "proofs": [ "yWqqPW9rpV2yz6GDkpFSDcuXtuAapvBUX5LXtgiWcfKxVToZEkTsYX9fwKSaNBtuVwuFHND5NodNTqAGWkHFyQY" ], "script": "base64:AAIDAAAAAAAAAAAAAAAIAQAAAAlmaXZlQ2hhcnMAAAABAAAAAWMJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAABYwUAAAABYwUAAAABYwUAAAABYwUAAAABYwEAAAAEY2VsbAAAAAMAAAAFY2VsbHMAAAADcm93AAAAA2NvbAkBAAAACXRha2VSaWdodAAAAAIJAAEvAAAAAgUAAAAFY2VsbHMJAABkAAAAAgkAAGQAAAACCQAAaAAAAAIFAAAAA3JvdwAAAAAAAAAADwUAAAADY29sAAAAAAAAAAABAAAAAAAAAAABAQAAAAdzZXRDZWxsAAAABAAAAAVjZWxscwAAAANyb3cAAAADY29sAAAAA3ZhbAkAASwAAAACCQABLAAAAAIJAAEvAAAAAgUAAAAFY2VsbHMJAABkAAAAAgkAAGgAAAACBQAAAANyb3cAAAAAAAAAAA8FAAAAA2NvbAUAAAADdmFsCQABLwAAAAIFAAAABWNlbGxzCQAAZQAAAAIJAAExAAAAAQUAAAAFY2VsbHMJAABkAAAAAgkAAGQAAAACCQAAaAAAAAIFAAAAA3JvdwAAAAAAAAAADwUAAAADY29s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AAFpAQAAAAt0ZXN0U2V0Q2VsbAAAAAQAAAAEZ2FtZQAAAANyb3cAAAADY29sAAAAA3ZhbAQAAAAFY2VsbHMJAQAAAAdleHRyYWN0AAAAAQkABB0AAAACBQAAAAR0aGlzCQABLAAAAAIJAAEsAAAAAgIAAAAFZ2FtZToJAAGkAAAAAQUAAAAEZ2FtZQIAAAAGX2NlbGxzBAAAAAhuZXdDZWxscwkBAAAAB3NldENlbGwAAAAEBQAAAAVjZWxscwUAAAADcm93BQAAAANjb2wFAAAAA3ZhbAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAABWdhbWU6CQABpAAAAAEFAAAABGdhbWUCAAAABl9jZWxscwUAAAAIbmV3Q2VsbHMFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAGXXHoGg==", "chainId": 84, "height": 610229, "spentComplexity": 0 } View: original | compacted Prev: none Next: 5kKpi5KFb2ywKL2ajeWhRUbrGABP875UznwWfPJGif5b Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func a (b) = ((((b + b) + b) + b) + b)
5+
6+
7+func c (d,e,f) = takeRight(take(d, (((e * 15) + f) + 1)), 1)
8+
9+
10+func g (d,e,f,h) = ((take(d, ((e * 15) + f)) + h) + take(d, (size(d) - (((e * 15) + f) + 1))))
11+
12+
13+func e (d,e) = ((((((((((((((c(d, e, 0) + c(d, e, 1)) + c(d, e, 2)) + c(d, e, 3)) + c(d, e, 4)) + c(d, e, 5)) + c(d, e, 6)) + c(d, e, 7)) + c(d, e, 8)) + c(d, e, 9)) + c(d, e, 10)) + c(d, e, 11)) + c(d, e, 12)) + c(d, e, 13)) + c(d, e, 14))
14+
15+
16+func i (d,f) = ((((((((((((((c(d, 0, f) + c(d, 1, f)) + c(d, 2, f)) + c(d, 3, f)) + c(d, 4, f)) + c(d, 5, f)) + c(d, 6, f)) + c(d, 7, f)) + c(d, 8, f)) + c(d, 9, f)) + c(d, 10, f)) + c(d, 11, f)) + c(d, 12, f)) + c(d, 13, f)) + c(d, 14, f))
17+
18+
19+func j (d,k,l,m) = if ((l == "R"))
20+ then if (if ((k >= m))
21+ then ((14 + m) >= k)
22+ else false)
23+ then c(d, m, (k - m))
24+ else ""
25+ else if ((l == "L"))
26+ then if (if ((k >= m))
27+ then ((14 + m) >= k)
28+ else false)
29+ then c(d, (k - m), (14 - m))
30+ else ""
31+ else throw("invalid dir in diagHelper function")
32+
33+
34+func n (d,k,l) = ((((((((((((((j(d, k, l, 14) + j(d, k, l, 13)) + j(d, k, l, 12)) + j(d, k, l, 11)) + j(d, k, l, 10)) + j(d, k, l, 9)) + j(d, k, l, 8)) + j(d, k, l, 7)) + j(d, k, l, 6)) + j(d, k, l, 5)) + j(d, k, l, 4)) + j(d, k, l, 3)) + j(d, k, l, 2)) + j(d, k, l, 1)) + j(d, k, l, 0))
35+
36+
37+func o (p,b) = if (if ((b != "b"))
38+ then (b != "w")
39+ else false)
40+ then throw("invalid color in check function")
41+ else {
42+ let q = indexOf(p, a(b))
43+ if ($isInstanceOf(q, "Int"))
44+ then true
45+ else false
46+ }
47+
48+
49+@Callable(m)
50+func test (r,k,l) = {
51+ let d = extract(getString(this, (("game:" + toString(r)) + "_cells")))
52+ throw(n(d, k, l))
53+ }
54+
55+
56+
57+@Callable(m)
58+func testSetCell (r,e,f,h) = {
59+ let d = extract(getString(this, (("game:" + toString(r)) + "_cells")))
60+ let s = g(d, e, f, h)
61+ WriteSet([DataEntry((("game:" + toString(r)) + "_cells"), s)])
62+ }
63+
64+
65+@Verifier(t)
66+func u () = true
67+

github/deemru/w8io/169f3d6 
30.88 ms