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