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