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:AgQAAAAIY29udHJhY3QIBQAAAAJ0eAAAAAZzZW5kZXIEAAAABmZpZWxkcwkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAACGNvbnRyYWN0AgAAAAVmaWVsZAQAAAAFY2VsbDEJAABqAAAAAgUAAAAGZmllbGRzAAAAAAAAAAAKBAAAAAVjZWxsMgkAAGoAAAACCQAAaQAAAAIFAAAABmZpZWxkcwAAAAAAAAAACgAAAAAAAAAACgQAAAAFY2VsbDMJAABqAAAAAgkAAGkAAAACBQAAAAZmaWVsZHMAAAAAAAAAAGQAAAAAAAAAAAoEAAAABWNlbGw0CQAAagAAAAIJAABpAAAAAgUAAAAGZmllbGRzAAAAAAAAAAPoAAAAAAAAAAAKBAAAAAVjZWxsNQkAAGoAAAACCQAAaQAAAAIFAAAABmZpZWxkcwAAAAAAAAAnEAAAAAAAAAAACgQAAAAFY2VsbDYJAABqAAAAAgkAAGkAAAACBQAAAAZmaWVsZHMAAAAAAAABhqAAAAAAAAAAAAoEAAAABWNlbGw3CQAAagAAAAIJAABpAAAAAgUAAAAGZmllbGRzAAAAAAAA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IAAAAAAAAAAAMGCQAAAAAAAAIFAAAABWxpbmUzAAAAAAAAAAADBgkAAAAAAAACBQAAAAdjb2x1bW4xAAAAAAAAAAADBgkAAAAAAAACBQAAAAdjb2x1bW4yAAAAAAAAAAADBgkAAAAAAAACBQAAAAdjb2x1bW4zAAAAAAAAAAADBgkAAAAAAAACBQAAAAlkaWFnb25hbDEAAAAAAAAAAAMGCQAAAAAAAAIFAAAACWRpYWdvbmFsMgAAAAAAAAAAAwQAAAAHemVyb1dpbgMDAwMDAwMJAAAAAAAAAgUAAAAFbGluZTEAAAAAAAAAABsGCQAAAAAAAAIFAAAABWxpbmUyAAAAAAAAAAAbBgkAAAAAAAACBQAAAAVsaW5lMwAAAAAAAAAAGwYJAAAAAAAAAgUAAAAHY29sdW1uMQAAAAAAAAAAGwYJAAAAAAAAAgUAAAAHY29sdW1uMgAAAAAAAAAAGwYJAAAAAAAAAgUAAAAHY29sdW1uMwAAAAAAAAAAGwYJAAAAAAAAAgUAAAAJZGlhZ29uYWwxAAAAAAAAAAAbBgkAAAAAAAACBQAAAAlkaWFnb25hbDIAAAAAAAAAABsEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQEAAAABIQAAAAEFAAAACGNyb3NzV2luCQEAAAABIQAAAAEFAAAAB3plcm9XaW4HAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAZwYXlvdXQFAAAAByRtYXRjaDADBQAAAAhjcm9zc1dpbgYFAAAAB3plcm9XaW4Gu1GxPg==", "chainId": 84, "height": 547184, "spentComplexity": 0 } View: original | compacted Prev: 9yESWeWnBTX4mxqzPscaTBuSm4B5mmBVn1EDaEU5Hod2 Next: HfREUikFiNhLofBTJZG598NcDZzGb3F1ZgZwYukyyL5h Diff:
Old | New | Differences | |
---|---|---|---|
58 | 58 | then !(zeroWin) | |
59 | 59 | else false | |
60 | 60 | case payout: TransferTransaction => | |
61 | - | false | |
61 | + | if (crossWin) | |
62 | + | then true | |
63 | + | else zeroWin | |
62 | 64 | case _ => | |
63 | 65 | true | |
64 | 66 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 2 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let contract = tx.sender | |
4 | 4 | let fields = extract(getInteger(contract, "field")) | |
5 | 5 | let cell1 = (fields % 10) | |
6 | 6 | let cell2 = ((fields / 10) % 10) | |
7 | 7 | let cell3 = ((fields / 100) % 10) | |
8 | 8 | let cell4 = ((fields / 1000) % 10) | |
9 | 9 | let cell5 = ((fields / 10000) % 10) | |
10 | 10 | let cell6 = ((fields / 100000) % 10) | |
11 | 11 | let cell7 = ((fields / 1000000) % 10) | |
12 | 12 | let cell8 = ((fields / 10000000) % 10) | |
13 | 13 | let cell9 = ((fields / 100000000) % 10) | |
14 | 14 | let line1 = ((cell1 + cell2) + cell3) | |
15 | 15 | let line2 = ((cell4 + cell5) + cell6) | |
16 | 16 | let line3 = ((cell7 + cell8) + cell9) | |
17 | 17 | let column1 = ((cell1 + cell4) + cell7) | |
18 | 18 | let column2 = ((cell2 + cell5) + cell8) | |
19 | 19 | let column3 = ((cell3 + cell6) + cell9) | |
20 | 20 | let diagonal1 = ((cell1 + cell5) + cell9) | |
21 | 21 | let diagonal2 = ((cell3 + cell5) + cell7) | |
22 | 22 | let all = ((line1 + line2) + line3) | |
23 | 23 | let crossNum = (all % 10) | |
24 | 24 | let zeroNum = ((all - crossNum) / 10) | |
25 | 25 | let crossWin = if (if (if (if (if (if (if ((line1 == 3)) | |
26 | 26 | then true | |
27 | 27 | else (line2 == 3)) | |
28 | 28 | then true | |
29 | 29 | else (line3 == 3)) | |
30 | 30 | then true | |
31 | 31 | else (column1 == 3)) | |
32 | 32 | then true | |
33 | 33 | else (column2 == 3)) | |
34 | 34 | then true | |
35 | 35 | else (column3 == 3)) | |
36 | 36 | then true | |
37 | 37 | else (diagonal1 == 3)) | |
38 | 38 | then true | |
39 | 39 | else (diagonal2 == 3) | |
40 | 40 | let zeroWin = if (if (if (if (if (if (if ((line1 == 27)) | |
41 | 41 | then true | |
42 | 42 | else (line2 == 27)) | |
43 | 43 | then true | |
44 | 44 | else (line3 == 27)) | |
45 | 45 | then true | |
46 | 46 | else (column1 == 27)) | |
47 | 47 | then true | |
48 | 48 | else (column2 == 27)) | |
49 | 49 | then true | |
50 | 50 | else (column3 == 27)) | |
51 | 51 | then true | |
52 | 52 | else (diagonal1 == 27)) | |
53 | 53 | then true | |
54 | 54 | else (diagonal2 == 27) | |
55 | 55 | match tx { | |
56 | 56 | case t: DataTransaction => | |
57 | 57 | if (!(crossWin)) | |
58 | 58 | then !(zeroWin) | |
59 | 59 | else false | |
60 | 60 | case payout: TransferTransaction => | |
61 | - | false | |
61 | + | if (crossWin) | |
62 | + | then true | |
63 | + | else zeroWin | |
62 | 64 | case _ => | |
63 | 65 | true | |
64 | 66 | } |
github/deemru/w8io/026f985 25.55 ms ◑