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