tx · 6AAaFsFnZREapArsnfRqsceTrAkdnUuuNu7bE1p1rW4w

3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm:  -0.01400000 Waves

2020.10.05 19:48 [1207515] smart account 3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm > SELF 0.00000000 Waves

{ "type": 13, "id": "6AAaFsFnZREapArsnfRqsceTrAkdnUuuNu7bE1p1rW4w", "fee": 1400000, "feeAssetId": null, "timestamp": 1601916571159, "version": 2, "chainId": 84, "sender": "3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm", "senderPublicKey": "AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc", "proofs": [ "4AfxDBwjSLQZKrJAg2izyu2AG1Xaf5ZvRSMYo8YKR9yerysYABni5f1XtwYmjGc912WvsbzbSocifF95dzJS2hbN" ], "script": "base64:AAIDAAAAAAAAAA4IARIECgIICBIECgIIAQAAAAMBAAAABWdlS2V5AAAAAQAAAAdvcmRlcklECQABLAAAAAIJAAEsAAAAAgIAAAAMSU5BUlRFX2NlcnRfBQAAAAdvcmRlcklEAgAAAAFfAAAAABVvd25lckFjY291bnRQdWJsaWNLZXkBAAAAIFByG1iaJ5/F8j+2tcaFG+3YYO1j3A4OGTVcfiwr67RzAQAAABFnZXRLZXlDZXJ0aWZpY2F0bwAAAAIAAAAIc3VwcGxpZXIAAAAHb3JkZXJJRAkAASwAAAACCQEAAAAFZ2VLZXkAAAABBQAAAAdvcmRlcklECQACWAAAAAEJAAH3AAAAAQkAAZsAAAABBQAAAAhzdXBwbGllcgAAAAIAAAABaQEAAAAOYWRkQ2VydGlmaWNhdG8AAAACAAAAB29yZGVySUQAAAAEZGF0YQQAAAAPc3VwcGxpZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABGl0ZW0JAQAAABFnZXRLZXlDZXJ0aWZpY2F0bwAAAAIFAAAAD3N1cHBsaWVyQWRkcmVzcw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AAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAFW93bmVyQWNjb3VudFB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAFW93bmVyQWNjb3VudFB1YmxpY0tleQbZ7s0h", "height": 1207515, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FWCaaqppBhMarTSJFsnYxQvxeiMoSs88hu36vcSLrHT7 Next: none Diff:
OldNewDifferences
44 func geKey (orderID) = (("INARTE_cert_" + orderID) + "_")
55
66
7-let ownerAccountPublicKey = base58'AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc'
7+let ownerAccountPublicKey = base58'6R2XtEbbfhMTJ5sKErL1hc7qvns3NHUz9ZtHh1T1dTz2'
88
99 func getKeyCertificato (supplier,orderID) = (geKey(orderID) + toBase58String(sha256(toBytes(supplier))))
1010
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)
4947 case _ =>
50- false
48+ true
5149 }
5250
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func geKey (orderID) = (("INARTE_cert_" + orderID) + "_")
55
66
7-let ownerAccountPublicKey = base58'AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc'
7+let ownerAccountPublicKey = base58'6R2XtEbbfhMTJ5sKErL1hc7qvns3NHUz9ZtHh1T1dTz2'
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)
4947 case _ =>
50- false
48+ true
5149 }
5250

github/deemru/w8io/169f3d6 
24.52 ms