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