tx · HczoGrK8wjS1uk6q85u6n3eNTD2AK7VEiHw7cjEcChhA

3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm:  -0.01400000 Waves

2019.08.12 17:37 [627972] smart account 3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm > SELF 0.00000000 Waves

{ "type": 13, "id": "HczoGrK8wjS1uk6q85u6n3eNTD2AK7VEiHw7cjEcChhA", "fee": 1400000, "feeAssetId": null, "timestamp": 1565620619289, "version": 1, "sender": "3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm", "senderPublicKey": "AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc", "proofs": [ "5PAXZsSH8yiskzmzkMM6NKwQFDScgbjLLKx3WeZBfLhq3NdrNZJyRvGb61nVpU32PEtKgw7qksBzmXsgp3k2N7Dy" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAAAAABVvd25lckFjY291bnRQdWJsaWNLZXkBAAAAIJNI3fVW+TejCob9DyZDLn5+jSuvds/LguFUOLKHWspvAQAAAApnZXRLZXlJdGVtAAAAAgAAAAhzdXBwbGllcgAAAAV0aXRsZQkAASwAAAACAgAAAAdpbmFydGVfCQACWAAAAAEJAAH3AAAAAQkAAZsAAAABCQABLAAAAAIFAAAACHN1cHBsaWVyBQAAAAV0aXRsZQEAAAAOZ2V0S2V5SXRlbURhdGEAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAFX2RhdGEBAAAAEmdldEtleUl0ZW1TdXBwbGllcgAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAAAZfb3duZXIAAAABAAAAAWkBAAAAB2FkZEl0ZW0AAAACAAAABXRpdGxlAAAABGRhdGEEAAAAD3N1cHBsaWVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAARpdGVtCQEAAAAKZ2V0S2V5SXRlbQAAAAIFAAAAD3N1cHBsaWVyQWRkcmVzcwUAAAAFdGl0bGUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAABJnZXRLZXlJdGVtU3VwcGxpZXIAAAABBQAAAARpdGVtBQAAAA9zdXBwbGllckFkZHJlc3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAA5nZXRLZXlJdGVtRGF0YQAAAAEFAAAABGl0ZW0FAAAABGRhdGEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAFW93bmVyQWNjb3VudFB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgeOWAsr", "chainId": 84, "height": 627972, "spentComplexity": 0 } View: original | compacted Prev: none Next: 6bMjoMYF9TjfZdjLrekYWiw7CEPdDyNEMQN2x2AmfojD Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let ownerAccountPublicKey = base58'AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc'
5+
6+func getKeyItem (supplier,title) = ("inarte_" + toBase58String(sha256(toBytes((supplier + title)))))
7+
8+
9+func getKeyItemData (item) = (item + "_data")
10+
11+
12+func getKeyItemSupplier (item) = (item + "_owner")
13+
14+
15+@Callable(i)
16+func addItem (title,data) = {
17+ let supplierAddress = toBase58String(i.caller.bytes)
18+ let item = getKeyItem(supplierAddress, title)
19+ WriteSet([DataEntry(getKeyItemSupplier(item), supplierAddress), DataEntry(getKeyItemData(item), data)])
20+ }
21+
22+
23+@Verifier(tx)
24+func verify () = match tx {
25+ case d: SetScriptTransaction =>
26+ sigVerify(tx.bodyBytes, tx.proofs[0], ownerAccountPublicKey)
27+ case d: DataTransaction =>
28+ true
29+ case _ =>
30+ false
31+}
32+

github/deemru/w8io/169f3d6 
25.62 ms