tx · 2NQAuZhNx89zVYTZtbQFazUTBptMxsjn1mo4aLnsaicd

3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb:  -0.01400000 Waves

2019.01.30 02:09 [472196] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves

{ "type": 13, "id": "2NQAuZhNx89zVYTZtbQFazUTBptMxsjn1mo4aLnsaicd", "fee": 1400000, "feeAssetId": null, "timestamp": 1548803421396, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "3hzUsPemw3kHUD9zQcrHyGGMnc8xpP8TAbM8Hj6hYW3fgPdqKWXXfZ2SKCBXZaCWqXpncChyquH8og1W3XBSjmoD" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWQAAAAEZGF0YQAAAAAAAAAAAwQAAAAOYXNzZXRUcmFuc2VySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAEEAAAADWZlZVRyYW5zZmVySWQJAAPoAAAAAQkAAZEAAAACCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAAEAAAAByRtYXRjaDEFAAAADmFzc2V0VHJhbnNlcklkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uB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dHJpbmcAAAABCQEAAAAHZXh0cmFjdAAAAAEJAAQdAAAAAgUAAAALdm90ZVN0YXJ0ZXICAAAAA1lFUwYJAAAAAAAAAgkABCQAAAABCAUAAAABdAAAAAlyZWNpcGllbnQJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAEJAQAAAAdleHRyYWN0AAAAAQkABB0AAAACBQAAAAt2b3RlU3RhcnRlcgIAAAACTk8HCQAAAAAAAAIIBQAAAAF0AAAAB2Fzc2V0SWQJAQAAAAdleHRyYWN0AAAAAQkABBwAAAACBQAAAAt2b3RlU3RhcnRlcgkAASwAAAACCQACWAAAAAEIBQAAAAF0AAAACmF0dGFjaG1lbnQCAAAABl9hc3NldAcJAAAAAAAAAggFAAAAAXQAAAAGYW1vdW50AAAAAAAAAAABBwkAAAAAAAACCAUAAAABdAAAAANmZWUAAAAAAAAHoSAHCQAAZgAAAAIJAQAAAAx3YXZlc0JhbGFuY2UAAAABCAUAAAABdAAAAAZzZW5kZXIAAAAAAAX14QAHCQAB9AAAAAMIBQAAAAF0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABdAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BzMZQ8M=", "chainId": 84, "height": 472196, "spentComplexity": 0 } View: original | compacted Prev: J3BugU7iC4NAtCtzNFzpkiz7KzQn9X5ZtoLy8hXiu6Vo Next: 57pvCi5zgHJG1SJ7XAYxpCYrW5cS7PaqCyAkme7sNd2Q Diff:
OldNewDifferences
2323 else false)
2424 then (fT.recipient == voteBank)
2525 else false)
26- then (fT.amount == (aT.amount * 300000))
26+ then (fT.amount == (aT.amount * 500000))
2727 else false)
2828 then (d.data[0].key == toBase58String(aT.attachment))
2929 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 assetTranserId = transactionById(d.proofs[1])
1010 let feeTransferId = transactionById(d.proofs[0])
1111 match assetTranserId {
1212 case aT: TransferTransaction =>
1313 match feeTransferId {
1414 case fT: TransferTransaction =>
1515 if (if (if (if (if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key))))
1616 then isDefined(getString(aT.sender, "YES"))
1717 else false)
1818 then isDefined(getString(aT.sender, "NO"))
1919 else false)
2020 then isDefined(getInteger(aT.sender, "height"))
2121 else false)
2222 then (aT.recipient == voteBank)
2323 else false)
2424 then (fT.recipient == voteBank)
2525 else false)
26- then (fT.amount == (aT.amount * 300000))
26+ then (fT.amount == (aT.amount * 500000))
2727 else false)
2828 then (d.data[0].key == toBase58String(aT.attachment))
2929 else false)
3030 then (d.data[0].key == toBase58String(fT.attachment))
3131 else false)
3232 then (d.data[1].key == (toBase58String(fT.attachment) + "_height"))
3333 else false)
3434 then (d.data[2].key == (toBase58String(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)
4040 then sigVerify(d.bodyBytes, d.proofs[2], d.senderPublicKey)
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(t.attachment)))))
5454 if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(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.44 ms