tx · ECWsxfMY43GWfCrm9as9LnnTxijCt9Lq8bVuPoPkSfn 3Mq3iMAFr85yRabdpAzKESryC6thJbJiPD7: -0.01400000 Waves 2018.12.16 05:09 [406744] smart account 3Mq3iMAFr85yRabdpAzKESryC6thJbJiPD7 > SELF 0.00000000 Waves
{ "type": 13, "id": "ECWsxfMY43GWfCrm9as9LnnTxijCt9Lq8bVuPoPkSfn", "fee": 1400000, "feeAssetId": null, "timestamp": 1544926328799, "version": 1, "sender": "3Mq3iMAFr85yRabdpAzKESryC6thJbJiPD7", "senderPublicKey": "2v9HSm5v8MSh3Zvt2GRSqhuxNVoxNwpgoYwFDRx6Rdsq", "proofs": [ "gjoti3qDuon1RQM6Fw1mJfwdVJFRVydHG7BV5cBZ5kXTUGi396jDsLMMbm81nbunfQeJfzzakqxThcPGaewtAj4" ], "script": "base64:AQQAAAACbWUIBQAAAAJ0eAAAAAZzZW5kZXIEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAABG1vZGUJAAEvAAAAAggJAAGRAAAAAggFAAAAAXQAAAAEZGF0YQAAAAAAAAAAAAAAAANrZXkAAAAAAAAAAAMEAAAABW1vZGUyCQABLwAAAAIICQABkQAAAAIIBQAAAAF0AAAABGRhdGEAAAAAAAAAAAEAAAADa2V5AAAAAAAAAAADBAAAAANudW0JAAEvAAAAAgkAATAAAAACCAkAAZEAAAACCAUAAAABdAAAAARkYXRhAAAAAAAAAAAAAAAAA2tleQAAAAAAAAAAAwAAAAAAAAAAAQQAAAAJc2Vzc2lvbklkCQABMAAAAAIICQABkQAAAAIIBQAAAAF0AAAABGRhdGEAAAAAAAAAAAAAAAADa2V5AAAAAAAAAAAEBAAAAAVpc0RlZgkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAACbWUICQABkQAAAAIIBQAAAAF0AAAABGRhdGEAAAAAAAA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AANrZXkAAAAAAAAAAAMEAAAACGxhc3RBcHBPCQAEGgAAAAIFAAAAAm1lCAkAAZEAAAACCAUAAAABdAAAAARkYXRhAAAAAAAAAAAAAAAAA2tleQQAAAAHbGFzdEFwcAMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAhsYXN0QXBwTwkBAAAAB2V4dHJhY3QAAAABBQAAAAhsYXN0QXBwTwAAAAAAAAAAAAQAAAAIaXNTdWIzMDAJAAAAAAAAAgkAAGUAAAACBQAAAAdsYXN0QXBwAAAAAAAAAAEsCQAEEAAAAAIIBQAAAAF0AAAABGRhdGEICQABkQAAAAIIBQAAAAF0AAAABGRhdGEAAAAAAAAAAAAAAAADa2V5AwMJAQAAAAEhAAAAAQUAAAAGaXNEZWYyCQAAZwAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBAAAAACCAUAAAABdAAAAARkYXRhCAkAAZEAAAACCAUAAAABdAAAAARkYXRhAAAAAAAAAAAAAAAAA2tleQAAAAAAAAAAAAcFAAAACGlzU3ViMzAwBwcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAAB2lzRGVmVHQJAQAAAAlpc0RlZmluZWQAAAABCQAEHQAAAAIFAAAAAm1lCQABLAAAAAICAAAAA3RyeAkAAlgAAAABCAUAAAABdAAAAAJpZAMJAAAAAAAAAggFAAAAAXQAAAAGYW1vdW50AAAAAAAAAAEsBQAAAAdpc0RlZlR0BwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGB+vHbFU=", "chainId": 84, "height": 406744, "spentComplexity": 0 } View: original | compacted Prev: BGKHVnCJGVheZTnkaUvV2JodBiuZkgQ6LSBk36vqTs5n Next: AcjDKQavWomzvjXVyA6zLukc77pYuZMoc6smtTGST8kV Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | let num = take(drop(t.data[0].key, 3), 1) | |
9 | 9 | let sessionId = drop(t.data[0].key, 4) | |
10 | 10 | let isDef = isDefined(getString(me, t.data[0].key)) | |
11 | - | if (if (if ((size(t.data) == 1)) | |
11 | + | let isDef2 = isDefined(getString(me, t.data[1].key)) | |
12 | + | if (if (if (if (if ((size(t.data) == 2)) | |
12 | 13 | then !(isDef) | |
13 | 14 | else false) | |
14 | 15 | then (mode == "pay") | |
15 | 16 | else false) | |
17 | + | then (mode2 == "ptx") | |
18 | + | else false) | |
19 | + | then !(isDef2) | |
20 | + | else false) | |
16 | 21 | then { | |
17 | - | let payT1 = transactionById(fromBase58String(extract(getString(t.data, t.data[0].key)))) | |
22 | + | let ptx = drop(t.data[1].key, 3) | |
23 | + | let ptxT1 = extract(getString(t.data, t.data[0].key)) | |
24 | + | let payT1 = transactionById(fromBase58String(ptxT1)) | |
18 | 25 | match payT1 { | |
19 | 26 | case tt1: TransferTransaction => | |
20 | - | if ((tt1.amount == 100)) | |
27 | + | if (if ((ptxT1 == ptx)) | |
28 | + | then (tt1.amount == 100) | |
29 | + | else false) | |
21 | 30 | then (tt1.recipient == me) | |
22 | 31 | else false | |
23 | 32 | case _ => | |
31 | 40 | else false) | |
32 | 41 | then { | |
33 | 42 | let sessionIdK = drop(t.data[1].key, 3) | |
34 | - | let isDefS = isDefined(getString(me, t.data[1].key)) | |
35 | 43 | let addr = drop(t.data[0].key, 3) | |
36 | 44 | let pay1Key = ("pay1" + sessionIdK) | |
37 | 45 | let pay2Key = ("pay2" + sessionIdK) | |
68 | 76 | then extract(lastAppO) | |
69 | 77 | else 0 | |
70 | 78 | let isAdd300 = ((lastApp + 300) == getInteger(t.data, t.data[0].key)) | |
71 | - | if (if (!( | |
79 | + | if (if (!(isDef2)) | |
72 | 80 | then isAdd300 | |
73 | 81 | else false) | |
74 | 82 | then (((app1 + app2) + app3) >= 2) | |
81 | 89 | else false) | |
82 | 90 | then { | |
83 | 91 | let addr = drop(t.data[0].key, 3) | |
84 | - | let isDefT = isDefined(getString(me, t.data[1].key)) | |
85 | 92 | let lastAppO = getInteger(me, t.data[0].key) | |
86 | 93 | let lastApp = if (isDefined(lastAppO)) | |
87 | 94 | then extract(lastAppO) | |
88 | 95 | else 0 | |
89 | 96 | let isSub300 = ((lastApp - 300) == getInteger(t.data, t.data[0].key)) | |
90 | - | if (if (!( | |
97 | + | if (if (!(isDef2)) | |
91 | 98 | then (extract(getInteger(t.data, t.data[0].key)) >= 0) | |
92 | 99 | else false) | |
93 | 100 | then isSub300 | |
95 | 102 | } | |
96 | 103 | else false | |
97 | 104 | case t: TransferTransaction => | |
98 | - | let appO = getInteger(me, ("app" + toBase58String(addressFromRecipient(t.recipient).bytes))) | |
99 | - | let app = if (isDefined(appO)) | |
100 | - | then extract(appO) | |
101 | - | else 0 | |
102 | 105 | let isDefTt = isDefined(getString(me, ("trx" + toBase58String(t.id)))) | |
103 | - | if (if ((app >= 300)) | |
104 | - | then (t.amount == 300) | |
105 | - | else false) | |
106 | + | if ((t.amount == 300)) | |
106 | 107 | then isDefTt | |
107 | 108 | else false | |
108 | 109 | case t: SetScriptTransaction => |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let me = tx.sender | |
4 | 4 | match tx { | |
5 | 5 | case t: DataTransaction => | |
6 | 6 | let mode = take(t.data[0].key, 3) | |
7 | 7 | let mode2 = take(t.data[1].key, 3) | |
8 | 8 | let num = take(drop(t.data[0].key, 3), 1) | |
9 | 9 | let sessionId = drop(t.data[0].key, 4) | |
10 | 10 | let isDef = isDefined(getString(me, t.data[0].key)) | |
11 | - | if (if (if ((size(t.data) == 1)) | |
11 | + | let isDef2 = isDefined(getString(me, t.data[1].key)) | |
12 | + | if (if (if (if (if ((size(t.data) == 2)) | |
12 | 13 | then !(isDef) | |
13 | 14 | else false) | |
14 | 15 | then (mode == "pay") | |
15 | 16 | else false) | |
17 | + | then (mode2 == "ptx") | |
18 | + | else false) | |
19 | + | then !(isDef2) | |
20 | + | else false) | |
16 | 21 | then { | |
17 | - | let payT1 = transactionById(fromBase58String(extract(getString(t.data, t.data[0].key)))) | |
22 | + | let ptx = drop(t.data[1].key, 3) | |
23 | + | let ptxT1 = extract(getString(t.data, t.data[0].key)) | |
24 | + | let payT1 = transactionById(fromBase58String(ptxT1)) | |
18 | 25 | match payT1 { | |
19 | 26 | case tt1: TransferTransaction => | |
20 | - | if ((tt1.amount == 100)) | |
27 | + | if (if ((ptxT1 == ptx)) | |
28 | + | then (tt1.amount == 100) | |
29 | + | else false) | |
21 | 30 | then (tt1.recipient == me) | |
22 | 31 | else false | |
23 | 32 | case _ => | |
24 | 33 | false | |
25 | 34 | } | |
26 | 35 | } | |
27 | 36 | else if (if (if ((size(t.data) == 2)) | |
28 | 37 | then (mode == "app") | |
29 | 38 | else false) | |
30 | 39 | then (mode2 == "ses") | |
31 | 40 | else false) | |
32 | 41 | then { | |
33 | 42 | let sessionIdK = drop(t.data[1].key, 3) | |
34 | - | let isDefS = isDefined(getString(me, t.data[1].key)) | |
35 | 43 | let addr = drop(t.data[0].key, 3) | |
36 | 44 | let pay1Key = ("pay1" + sessionIdK) | |
37 | 45 | let pay2Key = ("pay2" + sessionIdK) | |
38 | 46 | let pay3Key = ("pay3" + sessionIdK) | |
39 | 47 | let sender1 = match transactionById(fromBase58String(extract(getString(me, pay1Key)))) { | |
40 | 48 | case ttt: TransferTransaction => | |
41 | 49 | ttt.sender | |
42 | 50 | case _ => | |
43 | 51 | me | |
44 | 52 | } | |
45 | 53 | let sender2 = match transactionById(fromBase58String(extract(getString(me, pay2Key)))) { | |
46 | 54 | case ttt: TransferTransaction => | |
47 | 55 | ttt.sender | |
48 | 56 | case _ => | |
49 | 57 | me | |
50 | 58 | } | |
51 | 59 | let sender3 = match transactionById(fromBase58String(extract(getString(me, pay3Key)))) { | |
52 | 60 | case ttt: TransferTransaction => | |
53 | 61 | ttt.sender | |
54 | 62 | case _ => | |
55 | 63 | me | |
56 | 64 | } | |
57 | 65 | let app1 = if ((toBase58String(fromBase58String(extract(getString(sender1, ("win1" + sessionIdK))))) == addr)) | |
58 | 66 | then 1 | |
59 | 67 | else 0 | |
60 | 68 | let app2 = if ((toBase58String(fromBase58String(extract(getString(sender2, ("win2" + sessionIdK))))) == addr)) | |
61 | 69 | then 1 | |
62 | 70 | else 0 | |
63 | 71 | let app3 = if ((toBase58String(fromBase58String(extract(getString(sender3, ("win3" + sessionIdK))))) == addr)) | |
64 | 72 | then 1 | |
65 | 73 | else 0 | |
66 | 74 | let lastAppO = getInteger(me, t.data[0].key) | |
67 | 75 | let lastApp = if (isDefined(lastAppO)) | |
68 | 76 | then extract(lastAppO) | |
69 | 77 | else 0 | |
70 | 78 | let isAdd300 = ((lastApp + 300) == getInteger(t.data, t.data[0].key)) | |
71 | - | if (if (!( | |
79 | + | if (if (!(isDef2)) | |
72 | 80 | then isAdd300 | |
73 | 81 | else false) | |
74 | 82 | then (((app1 + app2) + app3) >= 2) | |
75 | 83 | else false | |
76 | 84 | } | |
77 | 85 | else if (if (if ((size(t.data) == 2)) | |
78 | 86 | then (mode == "app") | |
79 | 87 | else false) | |
80 | 88 | then (mode2 == "trx") | |
81 | 89 | else false) | |
82 | 90 | then { | |
83 | 91 | let addr = drop(t.data[0].key, 3) | |
84 | - | let isDefT = isDefined(getString(me, t.data[1].key)) | |
85 | 92 | let lastAppO = getInteger(me, t.data[0].key) | |
86 | 93 | let lastApp = if (isDefined(lastAppO)) | |
87 | 94 | then extract(lastAppO) | |
88 | 95 | else 0 | |
89 | 96 | let isSub300 = ((lastApp - 300) == getInteger(t.data, t.data[0].key)) | |
90 | - | if (if (!( | |
97 | + | if (if (!(isDef2)) | |
91 | 98 | then (extract(getInteger(t.data, t.data[0].key)) >= 0) | |
92 | 99 | else false) | |
93 | 100 | then isSub300 | |
94 | 101 | else false | |
95 | 102 | } | |
96 | 103 | else false | |
97 | 104 | case t: TransferTransaction => | |
98 | - | let appO = getInteger(me, ("app" + toBase58String(addressFromRecipient(t.recipient).bytes))) | |
99 | - | let app = if (isDefined(appO)) | |
100 | - | then extract(appO) | |
101 | - | else 0 | |
102 | 105 | let isDefTt = isDefined(getString(me, ("trx" + toBase58String(t.id)))) | |
103 | - | if (if ((app >= 300)) | |
104 | - | then (t.amount == 300) | |
105 | - | else false) | |
106 | + | if ((t.amount == 300)) | |
106 | 107 | then isDefTt | |
107 | 108 | else false | |
108 | 109 | case t: SetScriptTransaction => | |
109 | 110 | true | |
110 | 111 | case _ => | |
111 | 112 | false | |
112 | 113 | } |
github/deemru/w8io/026f985 42.31 ms ◑