tx · DjNV7op6wjvjjxfcuMaAhpmWvXsBNwwZmefKrYtdp4pL

3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb:  -0.01400000 Waves

2019.01.30 10:05 [472674] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves

{ "type": 13, "id": "DjNV7op6wjvjjxfcuMaAhpmWvXsBNwwZmefKrYtdp4pL", "fee": 1400000, "feeAssetId": null, "timestamp": 1548831934667, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "4UzuJZixgCgEi39eKKoMrLYHPoVPU2BV1ZuH4r9HFfv84snBkT59XMnXE5ug3oKefWi8vuKhqxUVwWYUyHG8bJgm" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADAwkAAAAAAAACCQABkAAAAAEIBQAAAAFkAAAABGRhdGEAAAAAAAAAAAMJAAAAAAAAAgkAAZAAAAABCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAQHBAAAAA5hc3NldFRyYW5zZXJJZAkAA+gAAAABCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAQQAAAANZmVlVHJhbnNmZXJJZAkAA+gAAAABCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAAQAAAAHJG1hdGNoMQUAAAAOYXNzZXRUcmFuc2VySWQDCQAAAQ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3G Diff:
OldNewDifferences
55 match tx {
66 case d: DataTransaction =>
77 if (if ((size(d.data) == 3))
8- then (size(d.proofs) == 3)
8+ then (size(d.proofs) == 4)
99 else false)
1010 then {
1111 let assetTranserId = transactionById(d.proofs[1])
3737 else false)
3838 then (extract(getBinary(aT.sender, d.data[2].key)) == aT.assetId)
3939 else false)
40- then sigVerify(d.bodyBytes, d.proofs[2], d.proofs[3])
40+ then sigVerify(d.bodyBytes, d.proofs[3], d.proofs[2])
4141 else false
4242 case _ =>
4343 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))
8- then (size(d.proofs) == 3)
8+ 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 =>
1717 if (if (if (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"))
3535 else false)
3636 then (extract(getInteger(aT.sender, d.data[1].key)) > height)
3737 else false)
3838 then (extract(getBinary(aT.sender, d.data[2].key)) == aT.assetId)
3939 else false)
40- then sigVerify(d.bodyBytes, d.proofs[2], d.proofs[3])
40+ then sigVerify(d.bodyBytes, d.proofs[3], d.proofs[2])
4141 else false
4242 case _ =>
4343 false
4444 }
4545 case _ =>
4646 false
4747 }
4848 }
4949 else false
5050 case t: TransferTransaction =>
5151 if (isDefined(getString(voteBank, toBase58String(t.attachment))))
5252 then {
5353 let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment))))))
5454 if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height))
5555 then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES")))))
5656 then true
5757 else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO"))))
5858 else false)
5959 then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset"))))
6060 else false)
6161 then (t.amount == 1)
6262 else false)
6363 then (t.fee == 500000)
6464 else false)
6565 then (wavesBalance(t.sender) > 100000000)
6666 else false)
6767 then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey)
6868 else false
6969 }
7070 else false
7171 case s: SetScriptTransaction =>
7272 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7373 case _ =>
7474 false
7575 }

github/deemru/w8io/026f985 
24.87 ms