tx · GR38mCZnJWC6BZZRdN1oV3kGLdzjwfL5wvNqyKmzMFhH

3MvGvir7jfLKY8ypmm7jELQnc7Js8b9PgfB:  -0.04000000 Waves

2019.03.22 10:13 [547184] smart account 3MvGvir7jfLKY8ypmm7jELQnc7Js8b9PgfB > SELF 0.00000000 Waves

{ "type": 13, "id": "GR38mCZnJWC6BZZRdN1oV3kGLdzjwfL5wvNqyKmzMFhH", "fee": 4000000, "feeAssetId": null, "timestamp": 1553238881508, "version": 1, "sender": "3MvGvir7jfLKY8ypmm7jELQnc7Js8b9PgfB", "senderPublicKey": "BjkuQBZbTaVZ4M9uZiSp7UjdTo6jQVmUpE1awoMFuBpU", "proofs": [ "4ze8q9o6vPB9K6AMyx2WjESmvJy6mUQzkiPcQuB2Uyg8k6c5NhJ5QcbwpSMDyFXuGzLv1mtG5rvsBfmzjpxdhBsk" ], "script": "base64:AgQAAAAIY29udHJhY3QIBQAAAAJ0eAAAAAZzZW5kZXIEAAAABmZpZWxkcwkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAACGNvbnRyYWN0AgAAAAVmaWVsZAQAAAAFY2VsbDEJAABqAAAAAgUAAAAGZmllbGRzAAAAAAAAAAAKBAAAAAVjZWxsMgkAAGoAAAACCQAAaQAAAAIFAAAABmZpZWxkcwAAAAAAAAAACgAAAAAAAAAACgQAAAAFY2VsbDMJAABqAAAAAgkAAGkAAAACBQAAAAZmaWVsZHMAAAAAAAAAAGQAAAAAAAAAAAoEAAAABWNlbGw0CQAAagAAAAIJAABpAAAAAgUAAAAGZmllbGRzAAAAAAAAAAPoAAAAAAAAAAAKBAAAAAVjZWxsNQkAAGoAAAACCQAAaQAAAAIFAAAABmZpZWxkcwAAAAAAAAAnEAAAAAAAAAAACgQAAAAFY2VsbDYJAABqAAAAAgkAAGkAAAACBQAAAAZmaWVsZHMAAAAAAAABhqAAAAAAAAAAAAoEAAAABWNlbGw3CQAAagAAAAIJAABpAAAAAgUAAAAGZmllbGRzAAAAAAA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TIAAAAAAAAAAAMGCQAAAAAAAAIFAAAABWxpbmUzAAAAAAAAAAADBgkAAAAAAAACBQAAAAdjb2x1bW4xAAAAAAAAAAADBgkAAAAAAAACBQAAAAdjb2x1bW4yAAAAAAAAAAADBgkAAAAAAAACBQAAAAdjb2x1bW4zAAAAAAAAAAADBgkAAAAAAAACBQAAAAlkaWFnb25hbDEAAAAAAAAAAAMGCQAAAAAAAAIFAAAACWRpYWdvbmFsMgAAAAAAAAAAAwQAAAAHemVyb1dpbgMDAwMDAwMJAAAAAAAAAgUAAAAFbGluZTEAAAAAAAAAABsGCQAAAAAAAAIFAAAABWxpbmUyAAAAAAAAAAAbBgkAAAAAAAACBQAAAAVsaW5lMwAAAAAAAAAAGwYJAAAAAAAAAgUAAAAHY29sdW1uMQAAAAAAAAAAGwYJAAAAAAAAAgUAAAAHY29sdW1uMgAAAAAAAAAAGwYJAAAAAAAAAgUAAAAHY29sdW1uMwAAAAAAAAAAGwYJAAAAAAAAAgUAAAAJZGlhZ29uYWwxAAAAAAAAAAAbBgkAAAAAAAACBQAAAAlkaWFnb25hbDIAAAAAAAAAABsEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQEAAAABIQAAAAEFAAAACGNyb3NzV2luCQEAAAABIQAAAAEFAAAAB3plcm9XaW4HAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAZwYXlvdXQFAAAAByRtYXRjaDADBQAAAAhjcm9zc1dpbgYFAAAAB3plcm9XaW4Gu1GxPg==", "chainId": 84, "height": 547184, "spentComplexity": 0 } View: original | compacted Prev: 9yESWeWnBTX4mxqzPscaTBuSm4B5mmBVn1EDaEU5Hod2 Next: HfREUikFiNhLofBTJZG598NcDZzGb3F1ZgZwYukyyL5h Diff:
OldNewDifferences
5858 then !(zeroWin)
5959 else false
6060 case payout: TransferTransaction =>
61- false
61+ if (crossWin)
62+ then true
63+ else zeroWin
6264 case _ =>
6365 true
6466 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let contract = tx.sender
44 let fields = extract(getInteger(contract, "field"))
55 let cell1 = (fields % 10)
66 let cell2 = ((fields / 10) % 10)
77 let cell3 = ((fields / 100) % 10)
88 let cell4 = ((fields / 1000) % 10)
99 let cell5 = ((fields / 10000) % 10)
1010 let cell6 = ((fields / 100000) % 10)
1111 let cell7 = ((fields / 1000000) % 10)
1212 let cell8 = ((fields / 10000000) % 10)
1313 let cell9 = ((fields / 100000000) % 10)
1414 let line1 = ((cell1 + cell2) + cell3)
1515 let line2 = ((cell4 + cell5) + cell6)
1616 let line3 = ((cell7 + cell8) + cell9)
1717 let column1 = ((cell1 + cell4) + cell7)
1818 let column2 = ((cell2 + cell5) + cell8)
1919 let column3 = ((cell3 + cell6) + cell9)
2020 let diagonal1 = ((cell1 + cell5) + cell9)
2121 let diagonal2 = ((cell3 + cell5) + cell7)
2222 let all = ((line1 + line2) + line3)
2323 let crossNum = (all % 10)
2424 let zeroNum = ((all - crossNum) / 10)
2525 let crossWin = if (if (if (if (if (if (if ((line1 == 3))
2626 then true
2727 else (line2 == 3))
2828 then true
2929 else (line3 == 3))
3030 then true
3131 else (column1 == 3))
3232 then true
3333 else (column2 == 3))
3434 then true
3535 else (column3 == 3))
3636 then true
3737 else (diagonal1 == 3))
3838 then true
3939 else (diagonal2 == 3)
4040 let zeroWin = if (if (if (if (if (if (if ((line1 == 27))
4141 then true
4242 else (line2 == 27))
4343 then true
4444 else (line3 == 27))
4545 then true
4646 else (column1 == 27))
4747 then true
4848 else (column2 == 27))
4949 then true
5050 else (column3 == 27))
5151 then true
5252 else (diagonal1 == 27))
5353 then true
5454 else (diagonal2 == 27)
5555 match tx {
5656 case t: DataTransaction =>
5757 if (!(crossWin))
5858 then !(zeroWin)
5959 else false
6060 case payout: TransferTransaction =>
61- false
61+ if (crossWin)
62+ then true
63+ else zeroWin
6264 case _ =>
6365 true
6466 }

github/deemru/w8io/026f985 
25.55 ms