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:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWQAAAAEZGF0YQAAAAAAAAAAAwQAAAAOYXNzZXRUcmFuc2VySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAEEAAAADWZlZVRyYW5zZmVySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAAEAAAAByRtYXRjaDEFAAAADmFzc2V0VHJhbnNlcklkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9u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1DteekH7LjZxFhhpcjNfa6pC31qdKirM15b Next: 3DDhoRpj5SPYa3m3WLZ2hKB4QUi6HVFpKXpivrCskYNp Diff:
OldNewDifferences
1313 let attach = toBase58String(sha256(aT.attachment))
1414 match feeTransferId {
1515 case fT: TransferTransaction =>
16- if (if (!(isDefined(getString(voteBank, d.data[0].key))))
16+ if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
1717 then isDefined(getString(aT.sender, "YES"))
1818 else false)
1919 then isDefined(getString(aT.sender, "NO"))
20+ else false)
21+ then (d.data[0].key == toBase58String(sha256(aT.attachment)))
2022 else false
2123 case _ =>
2224 false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let voteBank = addressFromPublicKey(fromBase58String("BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe"))
44 let minimalVotingHeight = 10
55 match tx {
66 case d: DataTransaction =>
77 if ((size(d.data) == 3))
88 then {
99 let assetTranserId = transactionById(d.proofs[1])
1010 let feeTransferId = transactionById(d.proofs[0])
1111 match assetTranserId {
1212 case aT: TransferTransaction =>
1313 let attach = toBase58String(sha256(aT.attachment))
1414 match feeTransferId {
1515 case fT: TransferTransaction =>
16- if (if (!(isDefined(getString(voteBank, d.data[0].key))))
16+ if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
1717 then isDefined(getString(aT.sender, "YES"))
1818 else false)
1919 then isDefined(getString(aT.sender, "NO"))
20+ else false)
21+ then (d.data[0].key == toBase58String(sha256(aT.attachment)))
2022 else false
2123 case _ =>
2224 false
2325 }
2426 case _ =>
2527 false
2628 }
2729 }
2830 else false
2931 case t: TransferTransaction =>
3032 if (isDefined(getString(voteBank, toBase58String(t.attachment))))
3133 then {
3234 let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment))))))
3335 if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height))
3436 then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES")))))
3537 then true
3638 else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO"))))
3739 else false)
3840 then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset"))))
3941 else false)
4042 then (t.amount == 1)
4143 else false)
4244 then (t.fee == 500000)
4345 else false)
4446 then (wavesBalance(t.sender) > 100000000)
4547 else false)
4648 then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey)
4749 else false
4850 }
4951 else false
5052 case s: SetScriptTransaction =>
5153 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5254 case _ =>
5355 false
5456 }

github/deemru/w8io/026f985 
28.07 ms