tx · 5rkpQ9fLugpMjzj4rUeJFiHbzFHRZ3h8B2EtnRYtLvXa

3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb:  -0.01400000 Waves

2019.01.30 11:26 [472746] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves

{ "type": 13, "id": "5rkpQ9fLugpMjzj4rUeJFiHbzFHRZ3h8B2EtnRYtLvXa", "fee": 1400000, "feeAssetId": null, "timestamp": 1548836759571, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "2DjRhjg4nnGEATJf2meyNqDTkVQAYfYt2cavVpxqzCeC8VA5XrKyiHQAzjkK6EM3CXbzEyEgKp2n1b1XoLv1aNGn" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWQAAAAEZGF0YQAAAAAAAAAAAwQAAAAOYXNzZXRUcmFuc2VySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAEEAAAADWZlZVRyYW5zZmVySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAAEAAAAByRtYXRjaDEFAAAADmFzc2V0VHJhbnNlcklkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5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0dGFjaG1lbnQCAAAABl9hc3NldAcJAAAAAAAAAggFAAAAAXQAAAAGYW1vdW50AAAAAAAAAAABBwkAAAAAAAACCAUAAAABdAAAAANmZWUAAAAAAAAHoSAHCQAAZgAAAAIJAQAAAAx3YXZlc0JhbGFuY2UAAAABCAUAAAABdAAAAAZzZW5kZXIAAAAAAAX14QAHCQAB9AAAAAMIBQAAAAF0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABdAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5B0loZTY=", "chainId": 84, "height": 472746, "spentComplexity": 0 } View: original | compacted Prev: QYJMxSLYuAufrYMBvDnxxnSr49gaUsSYSE3VDCHz9Hs Next: DWr5KUiz5uuB9ZbY8pXTc2LhQtaKFGJnkGWCEYSarGJx Diff:
OldNewDifferences
1313 let attach = toBase58String(sha256(aT.attachment))
1414 match feeTransferId {
1515 case fT: TransferTransaction =>
16- if (if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
16+ if (if (if (if (if (if (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"))
3131 then (d.data[1].key == (toBase58String(sha256(fT.attachment)) + "_height"))
3232 else false)
3333 then (d.data[2].key == (toBase58String(sha256(fT.attachment)) + "_asset"))
34- else false)
35- then (extract(getBinary(aT.sender, d.data[2].key)) == aT.assetId)
3634 else false
3735 case _ =>
3836 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 (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
16+ if (if (if (if (if (if (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"))
2020 else false)
2121 then (aT.recipient == voteBank)
2222 else false)
2323 then (fT.recipient == voteBank)
2424 else false)
2525 then (fT.amount >= (aT.amount * 500000))
2626 else false)
2727 then (d.data[0].key == toBase58String(sha256(aT.attachment)))
2828 else false)
2929 then (d.data[0].key == toBase58String(sha256(fT.attachment)))
3030 else false)
3131 then (d.data[1].key == (toBase58String(sha256(fT.attachment)) + "_height"))
3232 else false)
3333 then (d.data[2].key == (toBase58String(sha256(fT.attachment)) + "_asset"))
34- else false)
35- then (extract(getBinary(aT.sender, d.data[2].key)) == aT.assetId)
3634 else false
3735 case _ =>
3836 false
3937 }
4038 case _ =>
4139 false
4240 }
4341 }
4442 else false
4543 case t: TransferTransaction =>
4644 if (isDefined(getString(voteBank, toBase58String(t.attachment))))
4745 then {
4846 let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment))))))
4947 if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height))
5048 then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES")))))
5149 then true
5250 else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO"))))
5351 else false)
5452 then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset"))))
5553 else false)
5654 then (t.amount == 1)
5755 else false)
5856 then (t.fee == 500000)
5957 else false)
6058 then (wavesBalance(t.sender) > 100000000)
6159 else false)
6260 then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey)
6361 else false
6462 }
6563 else false
6664 case s: SetScriptTransaction =>
6765 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6866 case _ =>
6967 false
7068 }

github/deemru/w8io/026f985 
28.37 ms