tx · kRbmHTdPFuHCvva71GA7RqKPBExGdxaocZsaR9ue2Dd

3MxwS9SVbzkGjLhjwHzwU2Y5woR9GefLiyd:  -1.04000000 Waves

2019.02.03 02:56 [478064] smart asset 3MxwS9SVbzkGjLhjwHzwU2Y5woR9GefLiyd > SELF 0 xxxx

{ "type": 15, "id": "kRbmHTdPFuHCvva71GA7RqKPBExGdxaocZsaR9ue2Dd", "fee": 104000000, "feeAssetId": null, "timestamp": 1549151776289, "version": 1, "sender": "3MxwS9SVbzkGjLhjwHzwU2Y5woR9GefLiyd", "senderPublicKey": "CPzTyJ5SnPvs5ksmtZGfNhEUYgGKZD9iAuG6LEieENjE", "proofs": [ "4t4cq187XVtAMTTktxhvjtyxwa4ucMiz1Dx8TfZkaZAMe31bFMZbWmK4aNqgnAzrAGq5sVoBieWHV9qdqBE9L87K" ], "assetId": "7qQJ3Pwt41BaQNJ9sVSnGGCgm36i2jLBE6aVPJ4mwuQw", "script": "base64:AQQAAAARdm90ZUJhbmtQdWJsaWNLZXkJAAJZAAAAAQIAAAArYXpXaHlOTVFqRVk5QVF0MmV5U1hYcVIyOE5Kd0ViSlRLeTEzMnprVm9UZQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAEXZvdGVCYW5rUHVibGljS2V5BAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAAHaXNzdWVUeAkAA+gAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAAF0AAAAB2Fzc2V0SWQEAAAAByRtYXRjaDEFAAAAB2lzc3VlVHgDCQAAAQAAAAIFAAAAByRtYXRjaDECAAAAEElzc3VlVHJhbnNhY3Rpb24EAAAAB2lzc3VlVHgFAAAAByRtYXRjaDEEAAAAEXJlZ0Fzc2V0Rm9yVm90aW5nCQAEGgAAAAIFAAA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AQAMJAAAAAAAAAggFAAAAAXQAAAACaWQFAAAACXZvdGVyVHhJZAMDAwMJAAAAAAAAAggFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5BQAAABF2b3RlQmFua1B1YmxpY0tleQkAAAAAAAACCAUAAAABdAAAAAZhbW91bnQAAAAAAAAAAAEHCQAAZgAAAAIAAAAAAACYloAIBQAAAAF0AAAAA2ZlZQcJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAAPoAAAAAQUAAAAJdm90ZXJUeElkBwkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMFAAAADnZvdGVyU2lnbmF0dXJlBQAAAA52b3RlclB1YmxpY0tleQcJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAVd3JvbmcgdHggaWQgcmVnaXN0cmVkCQACWAAAAAEFAAAADnZvdGVyU2lnbmF0dXJlAgAAAAEgCQACWAAAAAEFAAAACXZvdGVyVHhJZAkAAAIAAAABAgAAABN2b3RlciBub3QgcmVnaXN0cmVkBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAZU2V0QXNzZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABeAUAAAAHJG1hdGNoMAYH7m1bZg==", "chainId": 84, "height": 478064, "spentComplexity": 0 } View: original | compacted Prev: 6RiijBwdLP53zSJGHdShkAAAGTokrq3Ag2HubvucvpML Next: none Diff:
OldNewDifferences
4141 else false)
4242 then sigVerify(t.bodyBytes, voterSignature, voterPublicKey)
4343 else false
44- else throw("wrong tx id registred")
44+ else throw(((("wrong tx id registred" + toBase58String(voterSignature)) + " ") + toBase58String(voterTxId)))
4545 }
4646 else throw("voter not registred")
4747 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let voteBankPublicKey = fromBase58String("azWhyNMQjEY9AQt2eySXXqR28NJwEbJTKy132zkVoTe")
44 let voteBank = addressFromPublicKey(voteBankPublicKey)
55 match tx {
66 case t: TransferTransaction =>
77 let issueTx = transactionById(extract(t.assetId))
88 match issueTx {
99 case issueTx: IssueTransaction =>
1010 let regAssetForVoting = getInteger(voteBank, toBase58String(issueTx.id))
1111 if ((t.sender == issueTx.sender))
1212 then {
1313 let votingAssetConditionsMet = if (if (if (if (isDefined(regAssetForVoting))
1414 then (t.recipient == voteBank)
1515 else false)
1616 then !(issueTx.reissuable)
1717 else false)
1818 then (issueTx.quantity == t.amount)
1919 else false)
2020 then (issueTx.decimals == 0)
2121 else false
2222 if (votingAssetConditionsMet)
2323 then true
2424 else throw("start voting conditions not met. Voting not registred or wrong asset")
2525 }
2626 else {
2727 let voterPublicKey = t.attachment
2828 let voterAddress = addressFromPublicKey(voterPublicKey)
2929 let voterRegId = getBinary(issueTx.sender, toBase58String(voterAddress.bytes))
3030 if (isDefined(voterRegId))
3131 then {
3232 let voterSignature = take(extract(voterRegId), 64)
3333 let voterTxId = drop(extract(voterRegId), 64)
3434 if ((t.id == voterTxId))
3535 then if (if (if (if ((t.senderPublicKey == voteBankPublicKey))
3636 then (t.amount == 1)
3737 else false)
3838 then (10000000 > t.fee)
3939 else false)
4040 then !(isDefined(transactionById(voterTxId)))
4141 else false)
4242 then sigVerify(t.bodyBytes, voterSignature, voterPublicKey)
4343 else false
44- else throw("wrong tx id registred")
44+ else throw(((("wrong tx id registred" + toBase58String(voterSignature)) + " ") + toBase58String(voterTxId)))
4545 }
4646 else throw("voter not registred")
4747 }
4848 case _ =>
4949 false
5050 }
5151 case x: SetAssetScriptTransaction =>
5252 true
5353 case _ =>
5454 false
5555 }

github/deemru/w8io/026f985 
55.09 ms