tx · B64Ug9p1iHNzp5VnRmiFkLRcquxM4aegUGQtRLy2Qacg

3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb:  -0.01400000 Waves

2019.01.30 10:36 [472701] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves

{ "type": 13, "id": "B64Ug9p1iHNzp5VnRmiFkLRcquxM4aegUGQtRLy2Qacg", "fee": 1400000, "feeAssetId": null, "timestamp": 1548833764618, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "5hH8p3e8s19k2bSJEmhWzGXnsiVhhZ4CXj1Ug1XMfPLeEYS1QMMnBiDa8nJSDUMFxVofDemHn8hcokFXjAvfTJ6m" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWQAAAAEZGF0YQAAAAAAAAAAAwQAAAAOYXNzZXRUcmFuc2VySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAEEAAAADWZlZVRyYW5zZmVySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAAEAAAAByRtYXRjaDEFAAAADmFzc2V0VHJhbnNlcklkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN0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AACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BwcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQeTKxm0", "chainId": 84, "height": 472701, "spentComplexity": 0 } View: original | compacted Prev: Huv6KhPYv1YcGi5vP4L22Fck1MunEu6Z1npM3eU1swn5 Next: AwC1C6Kxa1DteekH7LjZxFhhpcjNfa6pC31qdKirM15b Diff:
OldNewDifferences
1313 let attach = toBase58String(sha256(aT.attachment))
1414 match feeTransferId {
1515 case fT: TransferTransaction =>
16- !(isDefined(getString(voteBank, d.data[0].key)))
16+ if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
17+ then isDefined(getString(aT.sender, "YES"))
18+ else false)
19+ then isDefined(getString(aT.sender, "NO"))
20+ else false)
21+ then (aT.recipient == voteBank)
22+ else false)
23+ then (fT.recipient == voteBank)
24+ else false)
25+ then (fT.amount >= (aT.amount * 500000))
26+ else false)
27+ then (d.data[0].key == toBase58String(sha256(aT.attachment)))
28+ else false)
29+ then (d.data[0].key == toBase58String(sha256(fT.attachment)))
30+ else false
1731 case _ =>
1832 false
1933 }
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 =>
1313 let attach = toBase58String(sha256(aT.attachment))
1414 match feeTransferId {
1515 case fT: TransferTransaction =>
16- !(isDefined(getString(voteBank, d.data[0].key)))
16+ if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
17+ then isDefined(getString(aT.sender, "YES"))
18+ else false)
19+ then isDefined(getString(aT.sender, "NO"))
20+ else false)
21+ then (aT.recipient == voteBank)
22+ else false)
23+ then (fT.recipient == voteBank)
24+ else false)
25+ then (fT.amount >= (aT.amount * 500000))
26+ else false)
27+ then (d.data[0].key == toBase58String(sha256(aT.attachment)))
28+ else false)
29+ then (d.data[0].key == toBase58String(sha256(fT.attachment)))
30+ else false
1731 case _ =>
1832 false
1933 }
2034 case _ =>
2135 false
2236 }
2337 }
2438 else false
2539 case t: TransferTransaction =>
2640 if (isDefined(getString(voteBank, toBase58String(t.attachment))))
2741 then {
2842 let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment))))))
2943 if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height))
3044 then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES")))))
3145 then true
3246 else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO"))))
3347 else false)
3448 then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset"))))
3549 else false)
3650 then (t.amount == 1)
3751 else false)
3852 then (t.fee == 500000)
3953 else false)
4054 then (wavesBalance(t.sender) > 100000000)
4155 else false)
4256 then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey)
4357 else false
4458 }
4559 else false
4660 case s: SetScriptTransaction =>
4761 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4862 case _ =>
4963 false
5064 }

github/deemru/w8io/026f985 
37.37 ms