tx · AxDjnmSDybdfFy5ywVwJQH3tvhvtcxzRo6dCcrK3pCZF

3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb:  -0.01400000 Waves

2019.01.30 11:36 [472760] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves

{ "type": 13, "id": "AxDjnmSDybdfFy5ywVwJQH3tvhvtcxzRo6dCcrK3pCZF", "fee": 1400000, "feeAssetId": null, "timestamp": 1548837428858, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "5J1ELMbddTYn8cZ6nuLJqB8AcQ2VAz7s1NjTUtippgA6kfh4YCa7uvXSRYXFuKSZzvktjhi4zjq7gwoqDFPhJzct" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWQAAAAEZGF0YQAAAAAAAAAAAwQAAAAOYXNzZXRUcmFuc2VySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAEEAAAADWZlZVRyYW5zZmVySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAAEAAAAByRtYXRjaDEFAAAADmFzc2V0VHJhbnNlcklkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN0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ABB0AAAACBQAAAAt2b3RlU3RhcnRlcgIAAAACTk8HCQAAAAAAAAIIBQAAAAF0AAAAB2Fzc2V0SWQJAQAAAAdleHRyYWN0AAAAAQkABBwAAAACBQAAAAt2b3RlU3RhcnRlcgkAASwAAAACCQACWAAAAAEIBQAAAAF0AAAACmF0dGFjaG1lbnQCAAAABl9hc3NldAcJAAAAAAAAAggFAAAAAXQAAAAGYW1vdW50AAAAAAAAAAABBwkAAAAAAAACCAUAAAABdAAAAANmZWUAAAAAAAAHoSAHCQAAZgAAAAIJAQAAAAx3YXZlc0JhbGFuY2UAAAABCAUAAAABdAAAAAZzZW5kZXIAAAAAAAX14QAHCQAB9AAAAAMIBQAAAAF0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABdAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5B2Qj2Yo=", "chainId": 84, "height": 472760, "spentComplexity": 0 } View: original | compacted Prev: 7aN4BDTuyJaDvVgbo1HzVUuzCEYoD3af8wHKY9TXQpZJ Next: DSiYFWNYvR7RsNkooWDNKC6KnAqVnPa8Q2iQncX1RZH2 Diff:
OldNewDifferences
1010 let feeTransferId = transactionById(d.proofs[0])
1111 match assetTranserId {
1212 case aT: TransferTransaction =>
13- let attach = toBase58String(sha256(aT.attachment))
1413 match feeTransferId {
1514 case fT: TransferTransaction =>
15+ let votingHeight = d.data[1].value
1616 if (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)
3232 else false)
3333 then (d.data[2].key == (toBase58String(sha256(fT.attachment)) + "_asset"))
3434 else false)
35- then (extract(getInteger(tx.sender, d.data[1].key)) > height)
35+ then match votingHeight {
36+ case h: Int =>
37+ (h > height)
38+ case _ =>
39+ false
40+ }
3641 else false
3742 case _ =>
3843 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 =>
13- let attach = toBase58String(sha256(aT.attachment))
1413 match feeTransferId {
1514 case fT: TransferTransaction =>
15+ let votingHeight = d.data[1].value
1616 if (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"))
3434 else false)
35- then (extract(getInteger(tx.sender, d.data[1].key)) > height)
35+ then match votingHeight {
36+ case h: Int =>
37+ (h > height)
38+ case _ =>
39+ false
40+ }
3641 else false
3742 case _ =>
3843 false
3944 }
4045 case _ =>
4146 false
4247 }
4348 }
4449 else false
4550 case t: TransferTransaction =>
4651 if (isDefined(getString(voteBank, toBase58String(t.attachment))))
4752 then {
4853 let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment))))))
4954 if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height))
5055 then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES")))))
5156 then true
5257 else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO"))))
5358 else false)
5459 then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset"))))
5560 else false)
5661 then (t.amount == 1)
5762 else false)
5863 then (t.fee == 500000)
5964 else false)
6065 then (wavesBalance(t.sender) > 100000000)
6166 else false)
6267 then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey)
6368 else false
6469 }
6570 else false
6671 case s: SetScriptTransaction =>
6772 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6873 case _ =>
6974 false
7075 }

github/deemru/w8io/026f985 
24.40 ms