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+3YYO1j3A4OGTVcfiwr67RzAQAAABFnZXRLZXlDZXJ0aWZpY2F0bwAAAAIAAAAIc3VwcGxpZXIAAAAHb3JkZXJJRAkAASwAAAACCQEAAAAFZ2VLZXkAAAABBQAAAAdvcmRlcklECQACWAAAAAEJAAH3AAAAAQkAAZsAAAABBQAAAAhzdXBwbGllcgAAAAIAAAABaQEAAAAOYWRkQ2VydGlmaWNhdG8AAAACAAAAB29yZGVySUQAAAAEZGF0YQQAAAAPc3VwcGxpZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABGl0ZW0JAQAAABFnZXRLZXlDZXJ0aWZpY2F0bwAAAAIFAAAAD3N1cHBsaWVyQWRkcmVzcwU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AHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAFW93bmVyQWNjb3VudFB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAFW93bmVyQWNjb3VudFB1YmxpY0tleQbZ7s0h", "height": 1207515, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FWCaaqppBhMarTSJFsnYxQvxeiMoSs88hu36vcSLrHT7 Next: none Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | func geKey (orderID) = (("INARTE_cert_" + orderID) + "_") | |
5 | 5 | ||
6 | 6 | ||
7 | - | let ownerAccountPublicKey = base58' | |
7 | + | let ownerAccountPublicKey = base58'6R2XtEbbfhMTJ5sKErL1hc7qvns3NHUz9ZtHh1T1dTz2' | |
8 | 8 | ||
9 | 9 | func getKeyCertificato (supplier,orderID) = (geKey(orderID) + toBase58String(sha256(toBytes(supplier)))) | |
10 | 10 | ||
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) | |
49 | 47 | case _ => | |
50 | - | | |
48 | + | true | |
51 | 49 | } | |
52 | 50 |
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 | - | let ownerAccountPublicKey = base58' | |
7 | + | let ownerAccountPublicKey = base58'6R2XtEbbfhMTJ5sKErL1hc7qvns3NHUz9ZtHh1T1dTz2' | |
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) | |
49 | 47 | case _ => | |
50 | - | | |
48 | + | true | |
51 | 49 | } | |
52 | 50 |
github/deemru/w8io/169f3d6 24.52 ms ◑