tx · EsCwNvgaoTuuEukmn2u7SCR6X5bp7hmgLkvxx8CqN6Xe
3MzrZiKenY9pri9uD2eGp5iCQNA9wTYZ51m: -0.01400000 Waves
2019.08.24 16:06 [645261] smart account 3MzrZiKenY9pri9uD2eGp5iCQNA9wTYZ51m > SELF 0.00000000 Waves
{
"type": 13,
"id": "EsCwNvgaoTuuEukmn2u7SCR6X5bp7hmgLkvxx8CqN6Xe",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1566652003602,
"version": 1,
"sender": "3MzrZiKenY9pri9uD2eGp5iCQNA9wTYZ51m",
"senderPublicKey": "HzS33hv2PsQPjknCc13hFanBgwoWYUCA6zWDcrQCVfMN",
"proofs": [
"3HZzVDyDvTbMCtWX8ojHNUjHKXcrLXvkkYQ2G3LvoXYaYtqsRnibU88koXL3GwpakpV2SZcTgWwHPuqKZNuVc1vD"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAAAAABVvd25lckFjY291bnRQdWJsaWNLZXkBAAAAIPxxZ4iagz6uc1ED5cT/6x6/8p5v9oSBzVRKapvKMJElAQAAAApnZXRLZXlJdGVtAAAAAgAAAAhzdXBwbGllcgAAAAdvcmRlcklECQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxJTkFSVEVfY2VydF8FAAAAB29yZGVySUQCAAAAAV8JAAJYAAAAAQkAAfcAAAABCQABmwAAAAEFAAAACHN1cHBsaWVyAQAAAA5nZXRLZXlJdGVtRGF0YQAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAAAVfZGF0YQEAAAASZ2V0S2V5SXRlbVN1cHBsaWVyAAAAAQAAAARpdGVtCQABLAAAAAIFAAAABGl0ZW0CAAAABl9vd25lcgAAAAEAAAABaQEAAAAOYWRkQ2VydGlmaWNhdG8AAAACAAAAB29yZGVySUQAAAAEZGF0YQQAAAAPc3VwcGxpZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABGl0ZW0JAQAAAApnZXRLZXlJdGVtAAAAAgUAAAAPc3VwcGxpZXJBZGRyZXNzBQAAAAdvcmRlcklECQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAARpdGVtBQAAAARkYXRhBQAAAANuaWwAAAAAvVYdYg==",
"chainId": 84,
"height": 645261,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: G4yzJKE2zUy1qDz9Q4Sag3PdjpnJYeoMQCFtRYKUpiBg
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let ownerAccountPublicKey = base58'HzS33hv2PsQPjknCc13hFanBgwoWYUCA6zWDcrQCVfMN' |
---|
| 5 | + | |
---|
| 6 | + | func getKeyItem (supplier,orderID) = ((("INARTE_cert_" + orderID) + "_") + toBase58String(sha256(toBytes(supplier)))) |
---|
| 7 | + | |
---|
| 8 | + | |
---|
| 9 | + | func getKeyItemData (item) = (item + "_data") |
---|
| 10 | + | |
---|
| 11 | + | |
---|
| 12 | + | func getKeyItemSupplier (item) = (item + "_owner") |
---|
| 13 | + | |
---|
| 14 | + | |
---|
| 15 | + | @Callable(i) |
---|
| 16 | + | func addCertificato (orderID,data) = { |
---|
| 17 | + | let supplierAddress = toBase58String(i.caller.bytes) |
---|
| 18 | + | let item = getKeyItem(supplierAddress, orderID) |
---|
| 19 | + | WriteSet([DataEntry(item, data)]) |
---|
| 20 | + | } |
---|
| 21 | + | |
---|
| 22 | + | |
---|