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