tx · Ed4yE311GpgKS8kpZnDZh2c8KNWpsbpcNbWdmxJ6knRF 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb: -0.01000000 Waves 2019.01.30 01:55 [472183] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves
{ "type": 13, "id": "Ed4yE311GpgKS8kpZnDZh2c8KNWpsbpcNbWdmxJ6knRF", "fee": 1000000, "feeAssetId": null, "timestamp": 1548802568278, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "uTmjMUeENp89VPQoqsCKaEGTZYZcchhknpWusqr2Egdo216NEASnaN2b3E5zwedZnTpxXXJRjakakrMCoVf1teL" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWQAAAAEZGF0YQAAAAAAAAAAAgQAAAAOYXNzZXRUcmFuc2VySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAEEAAAADWZlZVRyYW5zZmVySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAAEAAAAByRtYXRjaDEFAAAADmFzc2V0VHJhbnNlcklkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJ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AAABCQEAAAAHZXh0cmFjdAAAAAEJAAQdAAAAAgUAAAALdm90ZVN0YXJ0ZXICAAAAAk5PBwkAAAAAAAACCAUAAAABdAAAAAZhbW91bnQAAAAAAAAAAAEHCQAAAAAAAAIIBQAAAAF0AAAAA2ZlZQAAAAAAAAYagAcJAABmAAAAAgkBAAAADHdhdmVzQmFsYW5jZQAAAAEIBQAAAAF0AAAABnNlbmRlcgAAAAAABfXhAAcJAAH0AAAAAwgFAAAAAXQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAF0AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQcHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABcwUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHECRYUw==", "chainId": 84, "height": 472183, "spentComplexity": 0 } View: original | compacted Prev: none Next: 99UzVwfUhwPVpwA67PnxaE54BjLZEtLqp1jxPwRSU4rb Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 1 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let voteBank = addressFromPublicKey(fromBase58String("BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe")) | |
4 | + | let minimalVotingHeight = 10 | |
5 | + | match tx { | |
6 | + | case d: DataTransaction => | |
7 | + | if ((size(d.data) == 2)) | |
8 | + | then { | |
9 | + | let assetTranserId = transactionById(d.proofs[1]) | |
10 | + | let feeTransferId = transactionById(d.proofs[0]) | |
11 | + | match assetTranserId { | |
12 | + | case aT: TransferTransaction => | |
13 | + | match feeTransferId { | |
14 | + | case fT: TransferTransaction => | |
15 | + | if (if (if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key)))) | |
16 | + | then isDefined(getString(aT.sender, "YES")) | |
17 | + | else false) | |
18 | + | then isDefined(getString(aT.sender, "NO")) | |
19 | + | else false) | |
20 | + | then isDefined(getInteger(aT.sender, "height")) | |
21 | + | else false) | |
22 | + | then (aT.recipient == voteBank) | |
23 | + | else false) | |
24 | + | then (fT.recipient == voteBank) | |
25 | + | else false) | |
26 | + | then (fT.amount == (aT.amount * 300000)) | |
27 | + | else false) | |
28 | + | then (d.data[0].key == toBase58String(aT.attachment)) | |
29 | + | else false) | |
30 | + | then (d.data[0].key == toBase58String(fT.attachment)) | |
31 | + | else false) | |
32 | + | then (d.data[1].key == toBase58String(sha256(fT.attachment))) | |
33 | + | else false) | |
34 | + | then (extract(getInteger(aT.sender, d.data[1].key)) > height) | |
35 | + | else false) | |
36 | + | then sigVerify(d.bodyBytes, d.proofs[2], d.senderPublicKey) | |
37 | + | else false | |
38 | + | case _ => | |
39 | + | false | |
40 | + | } | |
41 | + | case _ => | |
42 | + | false | |
43 | + | } | |
44 | + | } | |
45 | + | else false | |
46 | + | case t: TransferTransaction => | |
47 | + | if (isDefined(getString(voteBank, toBase58String(t.attachment)))) | |
48 | + | then { | |
49 | + | let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(t.attachment))))) | |
50 | + | if (if (if (if (if (if (if ((extract(getInteger(voteBank, toBase58String(sha256(t.attachment)))) > height)) | |
51 | + | then isDefined(getString(voteStarter, "YES")) | |
52 | + | else false) | |
53 | + | then isDefined(getString(voteStarter, "NO")) | |
54 | + | else false) | |
55 | + | then if ((extract(t.recipient) == addressFromString(extract(getString(voteStarter, "YES"))))) | |
56 | + | then true | |
57 | + | else (extract(t.recipient) == addressFromString(extract(getString(voteStarter, "NO")))) | |
58 | + | else false) | |
59 | + | then (t.amount == 1) | |
60 | + | else false) | |
61 | + | then (t.fee == 400000) | |
62 | + | else false) | |
63 | + | then (wavesBalance(t.sender) > 100000000) | |
64 | + | else false) | |
65 | + | then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey) | |
66 | + | else false | |
67 | + | } | |
68 | + | else false | |
69 | + | case s: SetScriptTransaction => | |
70 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
71 | + | case _ => | |
72 | + | false | |
73 | + | } |
github/deemru/w8io/026f985 15.38 ms ◑