tx · FWCaaqppBhMarTSJFsnYxQvxeiMoSs88hu36vcSLrHT7

3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm:  -0.01400000 Waves

2020.10.05 19:30 [1207496] smart account 3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm > SELF 0.00000000 Waves

{ "type": 13, "id": "FWCaaqppBhMarTSJFsnYxQvxeiMoSs88hu36vcSLrHT7", "fee": 1400000, "feeAssetId": null, "timestamp": 1601915438976, "version": 2, "chainId": 84, "sender": "3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm", "senderPublicKey": "AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc", "proofs": [ "5W5rPwi99te1vbrvWGXXvtXGXFJFg4ES8Dnh8mwVw9SgxGrdtmgaZtJhhHdJuP2LNKxieQQzvYwW55WHr7sbUenH" ], "script": "base64:AAIDAAAAAAAAAA4IARIECgIICBIECgIIAQAAAAMBAAAABWdlS2V5AAAAAQAAAAdvcmRlcklECQABLAAAAAIJAAEsAAAAAgIAAAAMSU5BUlRFX2NlcnRfBQAAAAdvcmRlcklEAgAAAAFfAAAAABVvd25lckFjY291bnRQdWJsaWNLZXkBAAAAIJNI3fVW+TejCob9DyZDLn5+jSuvds/LguFUOLKHWspvAQAAABFnZXRLZXlDZXJ0aWZpY2F0bwAAAAIAAAAIc3VwcGxpZXIAAAAHb3JkZXJJRAkAASwAAAACCQEAAAAFZ2VLZXkAAAABBQAAAAdvcmRlcklECQACWAAAAAEJAAH3AAAAAQkAAZsAAAABBQAAAAhzdXBwbGllcgAAAAIAAAABaQEAAAAOYWRkQ2VydGlmaWNhdG8AAAACAAAAB29yZGVySUQAAAAEZGF0YQQAAAAPc3VwcGxpZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABGl0ZW0JAQAAABFnZXRLZXlDZXJ0aWZpY2F0bwAAAAIFAAAAD3N1cHBsaWVyQWRkcmVzcwU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AHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAFW93bmVyQWNjb3VudFB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAFW93bmVyQWNjb3VudFB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAW0FAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABVvd25lckFjY291bnRQdWJsaWNLZXkHm3OQcQ==", "height": 1207496, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4F9Tk7uWwaf9Uj5Qftd9FDukG6sDxKrVcfiLu78DkcoJ Next: 6AAaFsFnZREapArsnfRqsceTrAkdnUuuNu7bE1p1rW4w Diff:
OldNewDifferences
4444 sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey)
4545 case e: TransferTransaction =>
4646 sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey)
47+ case m: MassTransferTransaction =>
48+ sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey)
4749 case _ =>
4850 false
4951 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func geKey (orderID) = (("INARTE_cert_" + orderID) + "_")
55
66
77 let ownerAccountPublicKey = base58'AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc'
88
99 func getKeyCertificato (supplier,orderID) = (geKey(orderID) + toBase58String(sha256(toBytes(supplier))))
1010
1111
1212 @Callable(i)
1313 func addCertificato (orderID,data) = {
1414 let supplierAddress = toBase58String(i.caller.bytes)
1515 let item = getKeyCertificato(supplierAddress, orderID)
1616 WriteSet([DataEntry(item, data)])
1717 }
1818
1919
2020
2121 @Callable(i)
2222 func votaCertificato (orderID,stelle) = {
2323 let chiaveVoti = (("INARTE_voti_" + orderID) + "_")
2424 let chiaveVotanti = (("INARTE_votanti_" + orderID) + "_")
2525 let votiAttuali = match getInteger(this, chiaveVoti) {
2626 case a: Int =>
2727 a
2828 case _ =>
2929 0
3030 }
3131 let votantiAttuali = match getInteger(this, chiaveVotanti) {
3232 case a: Int =>
3333 a
3434 case _ =>
3535 0
3636 }
3737 WriteSet([DataEntry(chiaveVoti, (votiAttuali + stelle)), DataEntry(chiaveVotanti, (votantiAttuali + 1))])
3838 }
3939
4040
4141 @Verifier(tx)
4242 func verify () = match tx {
4343 case d: SetScriptTransaction =>
4444 sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey)
4545 case e: TransferTransaction =>
4646 sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey)
47+ case m: MassTransferTransaction =>
48+ sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey)
4749 case _ =>
4850 false
4951 }
5052

github/deemru/w8io/169f3d6 
26.11 ms