tx · Hg38ZvQVRWw6A3H8ZEt311vKLtjRr87Z761ChtZpeBqW
3MvKHZaw68MMNfaBakAvJqhMCbiwup5Ytqq: -0.01400000 Waves
2019.10.08 15:28 [710827] smart account 3MvKHZaw68MMNfaBakAvJqhMCbiwup5Ytqq > SELF 0.00000000 Waves
{
"type": 13,
"id": "Hg38ZvQVRWw6A3H8ZEt311vKLtjRr87Z761ChtZpeBqW",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1570537684650,
"version": 1,
"sender": "3MvKHZaw68MMNfaBakAvJqhMCbiwup5Ytqq",
"senderPublicKey": "DVurAHVNxvueWRUSmTevhhCD34tpNStCcpCWGFZwVEoN",
"proofs": [
"26t7gq4dJEJmWxiCRMnUmqNfBFgqN6c5oSwQ9iagpk2a6Gz1rBTRH32Wijr2x52NMPirTdeUWMErr2PMtpceSXTG"
],
"script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAQAAAAAFW93bmVyQWNjb3VudFB1YmxpY0tleQEAAAAg5kSSV6KjzKpfv66bMf3UvZpWdtLUTpx3LKom9Z+OU2IBAAAACmdldEtleUl0ZW0AAAACAAAACHN1cHBsaWVyAAAAB29yZGVySUQJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADElOQVJURV9jZXJ0XwUAAAAHb3JkZXJJRAIAAAABXwkAAlgAAAABCQAB9wAAAAEJAAGbAAAAAQUAAAAIc3VwcGxpZXIBAAAADmdldEtleUl0ZW1EYXRhAAAAAQAAAARpdGVtCQABLAAAAAIFAAAABGl0ZW0CAAAABV9kYXRhAQAAABJnZXRLZXlJdGVtU3VwcGxpZXIAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAGX293bmVyAAAAAQAAAAFpAQAAAA5hZGRDZXJ0aWZpY2F0bwAAAAIAAAAHb3JkZXJJRAAAAARkYXRhBAAAAA9zdXBwbGllckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEaXRlbQkBAAAACmdldEtleUl0ZW0AAAACBQAAAA9zdXBwbGllckFkZHJlc3MFAAAAB29yZGVySUQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABGl0ZW0FAAAABGRhdGEFAAAAA25pbAAAAACOVuZh",
"chainId": 84,
"height": 710827,
"spentComplexity": 0
}
View: original | compacted
Prev: 2Y69RaccmWHzPaTFQegJvq2bLEecPNZFGXhxdDVBGTyA
Next: ACzQzrxZLN1pbjvvJ2ZW27CTYa4HJksudkuaPaKTofVW
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let ownerAccountPublicKey = base58'GVsR75VQKH14tJzX66X9CAbJ535kUtBchPVEJTtRhXeh' |
---|
5 | 5 | | |
---|
6 | 6 | | func getKeyItem (supplier,orderID) = ((("INARTE_cert_" + orderID) + "_") + toBase58String(sha256(toBytes(supplier)))) |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | func getKeyItemData (item) = (item + "_data") |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | func getKeyItemSupplier (item) = (item + "_owner") |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func addCertificato (orderID,data) = { |
---|
17 | 17 | | let supplierAddress = toBase58String(i.caller.bytes) |
---|
18 | 18 | | let item = getKeyItem(supplierAddress, orderID) |
---|
19 | 19 | | WriteSet([DataEntry(item, data)]) |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|