tx · EXyn6suE8EnqdZvuL6KTYMA16U3MxpLGYNs3pWRH9TcT

3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb:  -0.01400000 Waves

2019.01.30 11:47 [472772] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves

{ "type": 13, "id": "EXyn6suE8EnqdZvuL6KTYMA16U3MxpLGYNs3pWRH9TcT", "fee": 1400000, "feeAssetId": null, "timestamp": 1548838064355, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "3NN21uWkJS4riSXLJQtyiqk9sT4bnxwgCCd7xrSQm1jjADrcWiNefMYr99PeAkxqStFAzvkX3TfxqwtjyRUCF6PJ" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWQAAAAEZGF0YQAAAAAAAAAAAwQAAAANZmVlVHJhbnNmZXJJZAkAA+gAAAABCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAAQAAAAOYXNzZXRUcmFuc2VySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAEEAAAAByRtYXRjaDEFAAAADmFzc2V0VHJhbnNlcklkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBA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GVyAgAAAANZRVMGCQAAAAAAAAIJAAQkAAAAAQgFAAAAAXQAAAAJcmVjaXBpZW50CQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABCQEAAAAHZXh0cmFjdAAAAAEJAAQdAAAAAgUAAAALdm90ZVN0YXJ0ZXICAAAAAk5PBwkAAAAAAAACCAUAAAABdAAAAAdhc3NldElkCQEAAAAHZXh0cmFjdAAAAAEJAAQcAAAAAgUAAAALdm90ZVN0YXJ0ZXIJAAEsAAAAAgkAAlgAAAABCAUAAAABdAAAAAphdHRhY2htZW50AgAAAAZfYXNzZXQHCQAAAAAAAAIIBQAAAAF0AAAABmFtb3VudAAAAAAAAAAAAQcJAAAAAAAAAggFAAAAAXQAAAADZmVlAAAAAAAAB6EgBwkAAGYAAAACCQEAAAAMd2F2ZXNCYWxhbmNlAAAAAQgFAAAAAXQAAAAGc2VuZGVyAAAAAAAF9eEABwkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BwcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQfUYJ41", "chainId": 84, "height": 472772, "spentComplexity": 0 } View: original | compacted Prev: 3Wz9twbUgzCvfuoXcf3vK996R1cWYN4yyuMFsv5JNMUd Next: 8m22ijE61eyUXU5U48SYvdvyVaPTY5gQnJWrPDsDLQ7R Diff:
OldNewDifferences
1414 case fT: TransferTransaction =>
1515 let votingHeight = d.data[1].value
1616 let xxx = d.data[2].value
17- let yyy = toBase58String(extract(aT.assetId))
17+ let yyy = aT.assetId
1818 if (if (if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
1919 then isDefined(getString(aT.sender, "YES"))
2020 else 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 feeTransferId = transactionById(d.proofs[0])
1010 let assetTranserId = transactionById(d.proofs[1])
1111 match assetTranserId {
1212 case aT: TransferTransaction =>
1313 match feeTransferId {
1414 case fT: TransferTransaction =>
1515 let votingHeight = d.data[1].value
1616 let xxx = d.data[2].value
17- let yyy = toBase58String(extract(aT.assetId))
17+ let yyy = aT.assetId
1818 if (if (if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
1919 then isDefined(getString(aT.sender, "YES"))
2020 else false)
2121 then isDefined(getString(aT.sender, "NO"))
2222 else false)
2323 then (aT.recipient == voteBank)
2424 else false)
2525 then (fT.recipient == voteBank)
2626 else false)
2727 then (fT.amount >= (aT.amount * 500000))
2828 else false)
2929 then (d.data[0].key == toBase58String(sha256(aT.attachment)))
3030 else false)
3131 then (d.data[0].key == toBase58String(sha256(fT.attachment)))
3232 else false)
3333 then (d.data[1].key == (toBase58String(sha256(fT.attachment)) + "_height"))
3434 else false)
3535 then (d.data[2].key == (toBase58String(sha256(fT.attachment)) + "_asset"))
3636 else false)
3737 then match votingHeight {
3838 case h: Int =>
3939 (h > height)
4040 case _ =>
4141 false
4242 }
4343 else false)
4444 then (xxx == yyy)
4545 else false
4646 case _ =>
4747 false
4848 }
4949 case _ =>
5050 false
5151 }
5252 }
5353 else false
5454 case t: TransferTransaction =>
5555 if (isDefined(getString(voteBank, toBase58String(t.attachment))))
5656 then {
5757 let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment))))))
5858 if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height))
5959 then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES")))))
6060 then true
6161 else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO"))))
6262 else false)
6363 then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset"))))
6464 else false)
6565 then (t.amount == 1)
6666 else false)
6767 then (t.fee == 500000)
6868 else false)
6969 then (wavesBalance(t.sender) > 100000000)
7070 else false)
7171 then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey)
7272 else false
7373 }
7474 else false
7575 case s: SetScriptTransaction =>
7676 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7777 case _ =>
7878 false
7979 }

github/deemru/w8io/026f985 
33.31 ms