tx · 3EkXU1Qg5E3CC3QjuLBSWfo7xgaGTBshEayHyQL4vCNe

3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb:  -0.01400000 Waves

2019.01.30 10:30 [472697] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves

{ "type": 13, "id": "3EkXU1Qg5E3CC3QjuLBSWfo7xgaGTBshEayHyQL4vCNe", "fee": 1400000, "feeAssetId": null, "timestamp": 1548833480525, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "VHurNhQ6xoBRRUdNQYUtikWkDJdppXSoqU9u5PZdF2bPUmisiZiK2nDDKPbpeTy5z6e6Ka4ioYDPM9NG4WGJiDK" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADAwkAAAAAAAACCQABkAAAAAEIBQAAAAFkAAAABGRhdGEAAAAAAAAAAAMJAAAAAAAAAgkAAZAAAAABCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAQHBAAAAA5hc3NldFRyYW5zZXJJZAkAA+gAAAABCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAQQAAAANZmVlVHJhbnNmZXJJZAkAA+gAAAABCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAAQAAAAHJG1hdGNoMQUAAAAOYXNzZXRUcmFuc2VySWQDC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TBgkAAAAAAAACCQAEJAAAAAEIBQAAAAF0AAAACXJlY2lwaWVudAkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQkBAAAAB2V4dHJhY3QAAAABCQAEHQAAAAIFAAAAC3ZvdGVTdGFydGVyAgAAAAJOTwcJAAAAAAAAAggFAAAAAXQAAAAHYXNzZXRJZAkBAAAAB2V4dHJhY3QAAAABCQAEHAAAAAIFAAAAC3ZvdGVTdGFydGVyCQABLAAAAAIJAAJYAAAAAQgFAAAAAXQAAAAKYXR0YWNobWVudAIAAAAGX2Fzc2V0BwkAAAAAAAACCAUAAAABdAAAAAZhbW91bnQAAAAAAAAAAAEHCQAAAAAAAAIIBQAAAAF0AAAAA2ZlZQAAAAAAAAehIAcJAABmAAAAAgkBAAAADHdhdmVzQmFsYW5jZQAAAAEIBQAAAAF0AAAABnNlbmRlcgAAAAAABfXhAAcJAAH0AAAAAwgFAAAAAXQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAF0AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQcHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABcwUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkH++rBtQ==", "chainId": 84, "height": 472697, "spentComplexity": 0 } View: original | compacted Prev: Ax85CEdgYmRjXHNy67kspuwdhZqtyvEexzptSw1BWp2D Next: Huv6KhPYv1YcGi5vP4L22Fck1MunEu6Z1npM3eU1swn5 Diff:
OldNewDifferences
1515 let attach = toBase58String(sha256(aT.attachment))
1616 match feeTransferId {
1717 case fT: TransferTransaction =>
18- if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
19- then isDefined(getString(aT.sender, "YES"))
20- else false)
21- then isDefined(getString(aT.sender, "NO"))
22- else false)
23- then (aT.recipient == voteBank)
24- else false)
25- then (fT.recipient == voteBank)
26- else false)
27- then (fT.amount >= (aT.amount * 500000))
28- else false
18+ !(isDefined(getString(voteBank, d.data[0].key)))
2919 case _ =>
3020 false
3121 }
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 let attach = toBase58String(sha256(aT.attachment))
1616 match feeTransferId {
1717 case fT: TransferTransaction =>
18- if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
19- then isDefined(getString(aT.sender, "YES"))
20- else false)
21- then isDefined(getString(aT.sender, "NO"))
22- else false)
23- then (aT.recipient == voteBank)
24- else false)
25- then (fT.recipient == voteBank)
26- else false)
27- then (fT.amount >= (aT.amount * 500000))
28- else false
18+ !(isDefined(getString(voteBank, d.data[0].key)))
2919 case _ =>
3020 false
3121 }
3222 case _ =>
3323 false
3424 }
3525 }
3626 else false
3727 case t: TransferTransaction =>
3828 if (isDefined(getString(voteBank, toBase58String(t.attachment))))
3929 then {
4030 let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment))))))
4131 if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height))
4232 then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES")))))
4333 then true
4434 else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO"))))
4535 else false)
4636 then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset"))))
4737 else false)
4838 then (t.amount == 1)
4939 else false)
5040 then (t.fee == 500000)
5141 else false)
5242 then (wavesBalance(t.sender) > 100000000)
5343 else false)
5444 then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey)
5545 else false
5646 }
5747 else false
5848 case s: SetScriptTransaction =>
5949 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6050 case _ =>
6151 false
6252 }

github/deemru/w8io/026f985 
27.77 ms