tx · BSkGmKZ5MfUWRPDt5TTS3JXi4p8zEbqe2WJnuQaGqeaB
3N35oZeVQmBRZ3xV1tfATFW3tfg1QVSXd43: -0.01000000 Waves
2019.10.10 21:00 [714090] smart account 3N35oZeVQmBRZ3xV1tfATFW3tfg1QVSXd43 > SELF 0.00000000 Waves
{
"type": 13,
"id": "BSkGmKZ5MfUWRPDt5TTS3JXi4p8zEbqe2WJnuQaGqeaB",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1570730237571,
"version": 1,
"sender": "3N35oZeVQmBRZ3xV1tfATFW3tfg1QVSXd43",
"senderPublicKey": "2VtegEGura4mUaNz4VZcnoJQr9XBPkzSGQTTD5hgkBy9",
"proofs": [
"4AiihZz2iZfCdGRbvne73JTqBFJaTXSjH4S4pmWgFsXNStv4Ns59gmuythrsFuiQW1pDZxLUgZMGiF4ejKq17ojV"
],
"script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAMBAAAACmdldEtleUl0ZW0AAAACAAAACHN1cHBsaWVyAAAAB29yZGVySUQJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADElOQVJURV9jZXJ0XwUAAAAHb3JkZXJJRAIAAAABXwkAAlgAAAABCQAB9wAAAAEJAAGbAAAAAQUAAAAIc3VwcGxpZXIBAAAADmdldEtleUl0ZW1EYXRhAAAAAQAAAARpdGVtCQABLAAAAAIFAAAABGl0ZW0CAAAABV9kYXRhAQAAABJnZXRLZXlJdGVtU3VwcGxpZXIAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAGX293bmVyAAAAAQAAAAFpAQAAAA5hZGRDZXJ0aWZpY2F0bwAAAAIAAAAHb3JkZXJJRAAAAARkYXRhBAAAAA9zdXBwbGllckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEaXRlbQkBAAAACmdldEtleUl0ZW0AAAACBQAAAA9zdXBwbGllckFkZHJlc3MFAAAAB29yZGVySUQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABGl0ZW0FAAAABGRhdGEFAAAAA25pbAAAAAABTgKc",
"chainId": 84,
"height": 714090,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func getKeyItem (supplier,orderID) = ((("INARTE_cert_" + orderID) + "_") + toBase58String(sha256(toBytes(supplier)))) |
---|
| 5 | + | |
---|
| 6 | + | |
---|
| 7 | + | func getKeyItemData (item) = (item + "_data") |
---|
| 8 | + | |
---|
| 9 | + | |
---|
| 10 | + | func getKeyItemSupplier (item) = (item + "_owner") |
---|
| 11 | + | |
---|
| 12 | + | |
---|
| 13 | + | @Callable(i) |
---|
| 14 | + | func addCertificato (orderID,data) = { |
---|
| 15 | + | let supplierAddress = toBase58String(i.caller.bytes) |
---|
| 16 | + | let item = getKeyItem(supplierAddress, orderID) |
---|
| 17 | + | WriteSet([DataEntry(item, data)]) |
---|
| 18 | + | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|