tx · DSiYFWNYvR7RsNkooWDNKC6KnAqVnPa8Q2iQncX1RZH2 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb: -0.01400000 Waves 2019.01.30 11:39 [472762] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves
{ "type": 13, "id": "DSiYFWNYvR7RsNkooWDNKC6KnAqVnPa8Q2iQncX1RZH2", "fee": 1400000, "feeAssetId": null, "timestamp": 1548837614218, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "5kUBJ9bvG3Lx7RFupfeYdVPo9oUS3wnPFAstihgFuuT6vUHAWcvmJ2QcMGWBwb6uRpxC9BCeAfwKRFJYkkSzAazT" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWQAAAAEZGF0YQAAAAAAAAAAAwQAAAAOYXNzZXRUcmFuc2VySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAEEAAAADWZlZVRyYW5zZmVySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAAEAAAAByRtYXRjaDEFAAAADmFzc2V0VHJhbnNlcklkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN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VTdGFydGVyAgAAAANZRVMGCQAAAAAAAAIJAAQkAAAAAQgFAAAAAXQAAAAJcmVjaXBpZW50CQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABCQEAAAAHZXh0cmFjdAAAAAEJAAQdAAAAAgUAAAALdm90ZVN0YXJ0ZXICAAAAAk5PBwkAAAAAAAACCAUAAAABdAAAAAdhc3NldElkCQEAAAAHZXh0cmFjdAAAAAEJAAQcAAAAAgUAAAALdm90ZVN0YXJ0ZXIJAAEsAAAAAgkAAlgAAAABCAUAAAABdAAAAAphdHRhY2htZW50AgAAAAZfYXNzZXQHCQAAAAAAAAIIBQAAAAF0AAAABmFtb3VudAAAAAAAAAAAAQcJAAAAAAAAAggFAAAAAXQAAAADZmVlAAAAAAAAB6EgBwkAAGYAAAACCQEAAAAMd2F2ZXNCYWxhbmNlAAAAAQgFAAAAAXQAAAAGc2VuZGVyAAAAAAAF9eEABwkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BwcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQc3D5Ho", "chainId": 84, "height": 472762, "spentComplexity": 0 } View: original | compacted Prev: AxDjnmSDybdfFy5ywVwJQH3tvhvtcxzRo6dCcrK3pCZF Next: FpD3K68LpQ7FjPNPA5LV1TyatgDjFkHs6ng2szH8B3bp Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | match feeTransferId { | |
14 | 14 | case fT: TransferTransaction => | |
15 | 15 | let votingHeight = d.data[1].value | |
16 | - | if (if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key)))) | |
16 | + | if (if (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")) | |
38 | 38 | case _ => | |
39 | 39 | false | |
40 | 40 | } | |
41 | + | else false) | |
42 | + | then (extract(getBinary(aT.sender, d.data[2].key)) == aT.assetId) | |
41 | 43 | else false | |
42 | 44 | case _ => | |
43 | 45 | 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 | match feeTransferId { | |
14 | 14 | case fT: TransferTransaction => | |
15 | 15 | let votingHeight = d.data[1].value | |
16 | - | if (if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key)))) | |
16 | + | if (if (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 | 34 | else false) | |
35 | 35 | then match votingHeight { | |
36 | 36 | case h: Int => | |
37 | 37 | (h > height) | |
38 | 38 | case _ => | |
39 | 39 | false | |
40 | 40 | } | |
41 | + | else false) | |
42 | + | then (extract(getBinary(aT.sender, d.data[2].key)) == aT.assetId) | |
41 | 43 | else false | |
42 | 44 | case _ => | |
43 | 45 | false | |
44 | 46 | } | |
45 | 47 | case _ => | |
46 | 48 | false | |
47 | 49 | } | |
48 | 50 | } | |
49 | 51 | else false | |
50 | 52 | case t: TransferTransaction => | |
51 | 53 | if (isDefined(getString(voteBank, toBase58String(t.attachment)))) | |
52 | 54 | then { | |
53 | 55 | let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment)))))) | |
54 | 56 | if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height)) | |
55 | 57 | then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES"))))) | |
56 | 58 | then true | |
57 | 59 | else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO")))) | |
58 | 60 | else false) | |
59 | 61 | then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset")))) | |
60 | 62 | else false) | |
61 | 63 | then (t.amount == 1) | |
62 | 64 | else false) | |
63 | 65 | then (t.fee == 500000) | |
64 | 66 | else false) | |
65 | 67 | then (wavesBalance(t.sender) > 100000000) | |
66 | 68 | else false) | |
67 | 69 | then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey) | |
68 | 70 | else false | |
69 | 71 | } | |
70 | 72 | else false | |
71 | 73 | case s: SetScriptTransaction => | |
72 | 74 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
73 | 75 | case _ => | |
74 | 76 | false | |
75 | 77 | } |
github/deemru/w8io/026f985 33.08 ms ◑