tx · 5rkpQ9fLugpMjzj4rUeJFiHbzFHRZ3h8B2EtnRYtLvXa 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb: -0.01400000 Waves 2019.01.30 11:26 [472746] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves
{ "type": 13, "id": "5rkpQ9fLugpMjzj4rUeJFiHbzFHRZ3h8B2EtnRYtLvXa", "fee": 1400000, "feeAssetId": null, "timestamp": 1548836759571, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "2DjRhjg4nnGEATJf2meyNqDTkVQAYfYt2cavVpxqzCeC8VA5XrKyiHQAzjkK6EM3CXbzEyEgKp2n1b1XoLv1aNGn" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWQAAAAEZGF0YQAAAAAAAAAAAwQAAAAOYXNzZXRUcmFuc2VySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAEEAAAADWZlZVRyYW5zZmVySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAAEAAAAByRtYXRjaDEFAAAADmFzc2V0VHJhbnNlcklkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5z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dGFjaG1lbnQCAAAABl9hc3NldAcJAAAAAAAAAggFAAAAAXQAAAAGYW1vdW50AAAAAAAAAAABBwkAAAAAAAACCAUAAAABdAAAAANmZWUAAAAAAAAHoSAHCQAAZgAAAAIJAQAAAAx3YXZlc0JhbGFuY2UAAAABCAUAAAABdAAAAAZzZW5kZXIAAAAAAAX14QAHCQAB9AAAAAMIBQAAAAF0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABdAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5B0loZTY=", "chainId": 84, "height": 472746, "spentComplexity": 0 } View: original | compacted Prev: QYJMxSLYuAufrYMBvDnxxnSr49gaUsSYSE3VDCHz9Hs Next: DWr5KUiz5uuB9ZbY8pXTc2LhQtaKFGJnkGWCEYSarGJx Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | let attach = toBase58String(sha256(aT.attachment)) | |
14 | 14 | match feeTransferId { | |
15 | 15 | case fT: TransferTransaction => | |
16 | - | if (if (if (if (if (if (if (if (if ( | |
16 | + | if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key)))) | |
17 | 17 | then isDefined(getString(aT.sender, "YES")) | |
18 | 18 | else false) | |
19 | 19 | then isDefined(getString(aT.sender, "NO")) | |
31 | 31 | then (d.data[1].key == (toBase58String(sha256(fT.attachment)) + "_height")) | |
32 | 32 | else false) | |
33 | 33 | then (d.data[2].key == (toBase58String(sha256(fT.attachment)) + "_asset")) | |
34 | - | else false) | |
35 | - | then (extract(getBinary(aT.sender, d.data[2].key)) == aT.assetId) | |
36 | 34 | else false | |
37 | 35 | case _ => | |
38 | 36 | false |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let voteBank = addressFromPublicKey(fromBase58String("BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe")) | |
4 | 4 | let minimalVotingHeight = 10 | |
5 | 5 | match tx { | |
6 | 6 | case d: DataTransaction => | |
7 | 7 | if ((size(d.data) == 3)) | |
8 | 8 | then { | |
9 | 9 | let assetTranserId = transactionById(d.proofs[1]) | |
10 | 10 | let feeTransferId = transactionById(d.proofs[0]) | |
11 | 11 | match assetTranserId { | |
12 | 12 | case aT: TransferTransaction => | |
13 | 13 | let attach = toBase58String(sha256(aT.attachment)) | |
14 | 14 | match feeTransferId { | |
15 | 15 | case fT: TransferTransaction => | |
16 | - | if (if (if (if (if (if (if (if (if ( | |
16 | + | if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key)))) | |
17 | 17 | then isDefined(getString(aT.sender, "YES")) | |
18 | 18 | else false) | |
19 | 19 | then isDefined(getString(aT.sender, "NO")) | |
20 | 20 | else false) | |
21 | 21 | then (aT.recipient == voteBank) | |
22 | 22 | else false) | |
23 | 23 | then (fT.recipient == voteBank) | |
24 | 24 | else false) | |
25 | 25 | then (fT.amount >= (aT.amount * 500000)) | |
26 | 26 | else false) | |
27 | 27 | then (d.data[0].key == toBase58String(sha256(aT.attachment))) | |
28 | 28 | else false) | |
29 | 29 | then (d.data[0].key == toBase58String(sha256(fT.attachment))) | |
30 | 30 | else false) | |
31 | 31 | then (d.data[1].key == (toBase58String(sha256(fT.attachment)) + "_height")) | |
32 | 32 | else false) | |
33 | 33 | then (d.data[2].key == (toBase58String(sha256(fT.attachment)) + "_asset")) | |
34 | - | else false) | |
35 | - | then (extract(getBinary(aT.sender, d.data[2].key)) == aT.assetId) | |
36 | 34 | else false | |
37 | 35 | case _ => | |
38 | 36 | false | |
39 | 37 | } | |
40 | 38 | case _ => | |
41 | 39 | false | |
42 | 40 | } | |
43 | 41 | } | |
44 | 42 | else false | |
45 | 43 | case t: TransferTransaction => | |
46 | 44 | if (isDefined(getString(voteBank, toBase58String(t.attachment)))) | |
47 | 45 | then { | |
48 | 46 | let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment)))))) | |
49 | 47 | if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height)) | |
50 | 48 | then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES"))))) | |
51 | 49 | then true | |
52 | 50 | else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO")))) | |
53 | 51 | else false) | |
54 | 52 | then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset")))) | |
55 | 53 | else false) | |
56 | 54 | then (t.amount == 1) | |
57 | 55 | else false) | |
58 | 56 | then (t.fee == 500000) | |
59 | 57 | else false) | |
60 | 58 | then (wavesBalance(t.sender) > 100000000) | |
61 | 59 | else false) | |
62 | 60 | then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey) | |
63 | 61 | else false | |
64 | 62 | } | |
65 | 63 | else false | |
66 | 64 | case s: SetScriptTransaction => | |
67 | 65 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
68 | 66 | case _ => | |
69 | 67 | false | |
70 | 68 | } |
github/deemru/w8io/026f985 28.37 ms ◑