tx · Ch64UtB4LRNj49oSvWUNZqXbDdtGNmNsVUTBp6V3pv3G

3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb:  -0.01400000 Waves

2019.01.30 10:11 [472681] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves

{ "type": 13, "id": "Ch64UtB4LRNj49oSvWUNZqXbDdtGNmNsVUTBp6V3pv3G", "fee": 1400000, "feeAssetId": null, "timestamp": 1548832332288, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "4sXJyTji6D6KHcrcuTk74cms8AcEJzfxJ2CH1D9rzkrw8hF6DYKCYQV7RGsMtEGdDujZJxAMcVE45T2GrVXWHdgD" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADAwkAAAAAAAACCQABkAAAAAEIBQAAAAFkAAAABGRhdGEAAAAAAAAAAAMJAAAAAAAAAgkAAZAAAAABCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAQHBAAAAA5hc3NldFRyYW5zZXJJZAkAA+gAAAABCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAQQAAAANZmVlVHJhbnNmZXJJZAkAA+gAAAABCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAAQAAAAHJG1hdGNoMQUAAAAOYXNzZXRUcmFuc2VySWQDCQA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W50AgAAAAZfYXNzZXQHCQAAAAAAAAIIBQAAAAF0AAAABmFtb3VudAAAAAAAAAAAAQcJAAAAAAAAAggFAAAAAXQAAAADZmVlAAAAAAAAB6EgBwkAAGYAAAACCQEAAAAMd2F2ZXNCYWxhbmNlAAAAAQgFAAAAAXQAAAAGc2VuZGVyAAAAAAAF9eEABwkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BwcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQey+Lnl", "chainId": 84, "height": 472681, "spentComplexity": 0 } View: original | compacted Prev: DjNV7op6wjvjjxfcuMaAhpmWvXsBNwwZmefKrYtdp4pL Next: CUFgJxqH9KNMoL3GmT5sFmK4a8jND6ee8qsPX8S6Pbsj Diff:
OldNewDifferences
1414 case aT: TransferTransaction =>
1515 match feeTransferId {
1616 case fT: TransferTransaction =>
17- if (if (if (if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
17+ if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
1818 then isDefined(getString(aT.sender, "YES"))
1919 else false)
2020 then isDefined(getString(aT.sender, "NO"))
3232 then (d.data[1].key == (toBase58String(sha256(fT.attachment)) + "_height"))
3333 else false)
3434 then (d.data[2].key == (toBase58String(sha256(fT.attachment)) + "_asset"))
35- else false)
36- then (extract(getInteger(aT.sender, d.data[1].key)) > height)
37- else false)
38- then (extract(getBinary(aT.sender, d.data[2].key)) == aT.assetId)
39- else false)
40- then sigVerify(d.bodyBytes, d.proofs[3], d.proofs[2])
4135 else false
4236 case _ =>
4337 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 (if ((size(d.data) == 3))
88 then (size(d.proofs) == 4)
99 else false)
1010 then {
1111 let assetTranserId = transactionById(d.proofs[1])
1212 let feeTransferId = transactionById(d.proofs[0])
1313 match assetTranserId {
1414 case aT: TransferTransaction =>
1515 match feeTransferId {
1616 case fT: TransferTransaction =>
17- if (if (if (if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
17+ if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
1818 then isDefined(getString(aT.sender, "YES"))
1919 else false)
2020 then isDefined(getString(aT.sender, "NO"))
2121 else false)
2222 then (aT.recipient == voteBank)
2323 else false)
2424 then (fT.recipient == voteBank)
2525 else false)
2626 then (fT.amount >= (aT.amount * 500000))
2727 else false)
2828 then (d.data[0].key == toBase58String(sha256(aT.attachment)))
2929 else false)
3030 then (d.data[0].key == toBase58String(sha256(fT.attachment)))
3131 else false)
3232 then (d.data[1].key == (toBase58String(sha256(fT.attachment)) + "_height"))
3333 else false)
3434 then (d.data[2].key == (toBase58String(sha256(fT.attachment)) + "_asset"))
35- else false)
36- then (extract(getInteger(aT.sender, d.data[1].key)) > height)
37- else false)
38- then (extract(getBinary(aT.sender, d.data[2].key)) == aT.assetId)
39- else false)
40- then sigVerify(d.bodyBytes, d.proofs[3], d.proofs[2])
4135 else false
4236 case _ =>
4337 false
4438 }
4539 case _ =>
4640 false
4741 }
4842 }
4943 else false
5044 case t: TransferTransaction =>
5145 if (isDefined(getString(voteBank, toBase58String(t.attachment))))
5246 then {
5347 let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment))))))
5448 if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height))
5549 then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES")))))
5650 then true
5751 else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO"))))
5852 else false)
5953 then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset"))))
6054 else false)
6155 then (t.amount == 1)
6256 else false)
6357 then (t.fee == 500000)
6458 else false)
6559 then (wavesBalance(t.sender) > 100000000)
6660 else false)
6761 then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey)
6862 else false
6963 }
7064 else false
7165 case s: SetScriptTransaction =>
7266 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7367 case _ =>
7468 false
7569 }

github/deemru/w8io/026f985 
24.21 ms