tx · B7VqxDeKfKmBa7LSFP7kDPwwCtMyCUAbYvaPT3nQn85D
3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm: -0.01400000 Waves
2019.08.30 18:13 [654155] smart account 3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm > SELF 0.00000000 Waves
{
"type": 13,
"id": "B7VqxDeKfKmBa7LSFP7kDPwwCtMyCUAbYvaPT3nQn85D",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1567178087826,
"version": 1,
"sender": "3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm",
"senderPublicKey": "AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc",
"proofs": [
"2rBx6kxLJoUg2XtBk9kHLULTBiHa479mT6Jw62LoPmqqvW17v3e8pUQ5h4jjXTxjiveif4YsdBCTSH9gTk1PakS4"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAAAAABVvd25lckFjY291bnRQdWJsaWNLZXkBAAAAIPzL63kMvWjObPMH1+s7yZeU58vRTOg1roT+dudQSEZQAQAAAApnZXRLZXlJdGVtAAAAAgAAAAhzdXBwbGllcgAAAAdvcmRlcklECQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxJTkFSVEVfY2VydF8FAAAAB29yZGVySUQCAAAAAV8JAAJYAAAAAQkAAfcAAAABCQABmwAAAAEFAAAACHN1cHBsaWVyAQAAAA5nZXRLZXlJdGVtRGF0YQAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAAAVfZGF0YQEAAAASZ2V0S2V5SXRlbVN1cHBsaWVyAAAAAQAAAARpdGVtCQABLAAAAAIFAAAABGl0ZW0CAAAABl9vd25lcgAAAAEAAAABaQEAAAAOYWRkQ2VydGlmaWNhdG8AAAACAAAAB29yZGVySUQAAAAEZGF0YQQAAAAPc3VwcGxpZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABGl0ZW0JAQAAAApnZXRLZXlJdGVtAAAAAgUAAAAPc3VwcGxpZXJBZGRyZXNzBQAAAAdvcmRlcklECQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAARpdGVtBQAAAARkYXRhBQAAAANuaWwAAAAAWv0XeA==",
"chainId": 84,
"height": 654155,
"spentComplexity": 0
}
View: original | compacted
Prev: 6qup54zWm6PD1Zg7KST38z5pWwBSajM2g7WSaTE1vEmT
Next: ESBchCFjLPb8xRMeR5HMvUexcpUBS3gjtQo252oaEyzJ
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let ownerAccountPublicKey = base58'AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc' |
---|
| 4 | + | let ownerAccountPublicKey = base58'J1p65XyMpM7cQMLMi4FKVsnCQQZdgmRz1SK9woxeUHCj' |
---|
5 | 5 | | |
---|
6 | 6 | | func getKeyItem (supplier,orderID) = ((("INARTE_cert_" + orderID) + "_") + toBase58String(sha256(toBytes(supplier)))) |
---|
7 | 7 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let ownerAccountPublicKey = base58'AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc' |
---|
| 4 | + | let ownerAccountPublicKey = base58'J1p65XyMpM7cQMLMi4FKVsnCQQZdgmRz1SK9woxeUHCj' |
---|
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 | | |
---|