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/LguFUOLKHWspvAQAAABFnZXRLZXlDZXJ0aWZpY2F0bwAAAAIAAAAIc3VwcGxpZXIAAAAHb3JkZXJJRAkAASwAAAACCQEAAAAFZ2VLZXkAAAABBQAAAAdvcmRlcklECQACWAAAAAEJAAH3AAAAAQkAAZsAAAABBQAAAAhzdXBwbGllcgAAAAIAAAABaQEAAAAOYWRkQ2VydGlmaWNhdG8AAAACAAAAB29yZGVySUQAAAAEZGF0YQQAAAAPc3VwcGxpZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABGl0ZW0JAQAAABFnZXRLZXlDZXJ0aWZpY2F0bwAAAAIFAAAAD3N1cHBsaWVyQWRkcmVzcwUA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HJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAFW93bmVyQWNjb3VudFB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAFW93bmVyQWNjb3VudFB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAW0FAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABVvd25lckFjY291bnRQdWJsaWNLZXkHm3OQcQ==", "height": 1207496, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4F9Tk7uWwaf9Uj5Qftd9FDukG6sDxKrVcfiLu78DkcoJ Next: 6AAaFsFnZREapArsnfRqsceTrAkdnUuuNu7bE1p1rW4w Diff:
Old | New | Differences | |
---|---|---|---|
44 | 44 | sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey) | |
45 | 45 | case e: TransferTransaction => | |
46 | 46 | sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey) | |
47 | + | case m: MassTransferTransaction => | |
48 | + | sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey) | |
47 | 49 | case _ => | |
48 | 50 | false | |
49 | 51 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func geKey (orderID) = (("INARTE_cert_" + orderID) + "_") | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let ownerAccountPublicKey = base58'AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc' | |
8 | 8 | ||
9 | 9 | func getKeyCertificato (supplier,orderID) = (geKey(orderID) + toBase58String(sha256(toBytes(supplier)))) | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | @Callable(i) | |
13 | 13 | func addCertificato (orderID,data) = { | |
14 | 14 | let supplierAddress = toBase58String(i.caller.bytes) | |
15 | 15 | let item = getKeyCertificato(supplierAddress, orderID) | |
16 | 16 | WriteSet([DataEntry(item, data)]) | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | ||
21 | 21 | @Callable(i) | |
22 | 22 | func votaCertificato (orderID,stelle) = { | |
23 | 23 | let chiaveVoti = (("INARTE_voti_" + orderID) + "_") | |
24 | 24 | let chiaveVotanti = (("INARTE_votanti_" + orderID) + "_") | |
25 | 25 | let votiAttuali = match getInteger(this, chiaveVoti) { | |
26 | 26 | case a: Int => | |
27 | 27 | a | |
28 | 28 | case _ => | |
29 | 29 | 0 | |
30 | 30 | } | |
31 | 31 | let votantiAttuali = match getInteger(this, chiaveVotanti) { | |
32 | 32 | case a: Int => | |
33 | 33 | a | |
34 | 34 | case _ => | |
35 | 35 | 0 | |
36 | 36 | } | |
37 | 37 | WriteSet([DataEntry(chiaveVoti, (votiAttuali + stelle)), DataEntry(chiaveVotanti, (votantiAttuali + 1))]) | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | @Verifier(tx) | |
42 | 42 | func verify () = match tx { | |
43 | 43 | case d: SetScriptTransaction => | |
44 | 44 | sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey) | |
45 | 45 | case e: TransferTransaction => | |
46 | 46 | sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey) | |
47 | + | case m: MassTransferTransaction => | |
48 | + | sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey) | |
47 | 49 | case _ => | |
48 | 50 | false | |
49 | 51 | } | |
50 | 52 |
github/deemru/w8io/169f3d6 26.11 ms ◑