tx · D1BqMXUTQdGjze6iUBaSpuoaRbgRUgFHoANSoBTeRvCb 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb: -0.01400000 Waves 2019.01.30 10:41 [472706] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves
{ "type": 13, "id": "D1BqMXUTQdGjze6iUBaSpuoaRbgRUgFHoANSoBTeRvCb", "fee": 1400000, "feeAssetId": null, "timestamp": 1548834102149, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "4Y4uGJ3vdAvBC7qe61zdCHTt6PJuVfMWBShwvaPTaGS6LC7EcPoPygdAdYAwaALjbjV2K4973uCQKuFe52GjQoYy" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWQAAAAEZGF0YQAAAAAAAAAAAwQAAAAOYXNzZXRUcmFuc2VySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAEEAAAADWZlZVRyYW5zZmVySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAAEAAAAByRtYXRjaDEFAAAADmFzc2V0VHJhbnNlcklkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uB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DteekH7LjZxFhhpcjNfa6pC31qdKirM15b Next: 3DDhoRpj5SPYa3m3WLZ2hKB4QUi6HVFpKXpivrCskYNp Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | let attach = toBase58String(sha256(aT.attachment)) | |
14 | 14 | match feeTransferId { | |
15 | 15 | case fT: TransferTransaction => | |
16 | - | if (if (!(isDefined(getString(voteBank, d.data[0].key)))) | |
16 | + | 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 | + | else false) | |
21 | + | then (d.data[0].key == toBase58String(sha256(aT.attachment))) | |
20 | 22 | else false | |
21 | 23 | case _ => | |
22 | 24 | 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 (!(isDefined(getString(voteBank, d.data[0].key)))) | |
16 | + | 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 | + | else false) | |
21 | + | then (d.data[0].key == toBase58String(sha256(aT.attachment))) | |
20 | 22 | else false | |
21 | 23 | case _ => | |
22 | 24 | false | |
23 | 25 | } | |
24 | 26 | case _ => | |
25 | 27 | false | |
26 | 28 | } | |
27 | 29 | } | |
28 | 30 | else false | |
29 | 31 | case t: TransferTransaction => | |
30 | 32 | if (isDefined(getString(voteBank, toBase58String(t.attachment)))) | |
31 | 33 | then { | |
32 | 34 | let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment)))))) | |
33 | 35 | if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height)) | |
34 | 36 | then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES"))))) | |
35 | 37 | then true | |
36 | 38 | else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO")))) | |
37 | 39 | else false) | |
38 | 40 | then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset")))) | |
39 | 41 | else false) | |
40 | 42 | then (t.amount == 1) | |
41 | 43 | else false) | |
42 | 44 | then (t.fee == 500000) | |
43 | 45 | else false) | |
44 | 46 | then (wavesBalance(t.sender) > 100000000) | |
45 | 47 | else false) | |
46 | 48 | then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey) | |
47 | 49 | else false | |
48 | 50 | } | |
49 | 51 | else false | |
50 | 52 | case s: SetScriptTransaction => | |
51 | 53 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
52 | 54 | case _ => | |
53 | 55 | false | |
54 | 56 | } |
github/deemru/w8io/026f985 28.07 ms ◑