tx · EYGvqJwNHVCh3L8Duhn1KjSasSS9QerpnWkzTGn9nKNm
3Mqnv1LY2i4hshvHyccL5GEAVbVPRerPjKM: -0.01000000 Waves
2022.11.24 19:10 [2331405] smart account 3Mqnv1LY2i4hshvHyccL5GEAVbVPRerPjKM > SELF 0.00000000 Waves
{
"type": 13,
"id": "EYGvqJwNHVCh3L8Duhn1KjSasSS9QerpnWkzTGn9nKNm",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1669306263236,
"version": 2,
"chainId": 84,
"sender": "3Mqnv1LY2i4hshvHyccL5GEAVbVPRerPjKM",
"senderPublicKey": "FB5Eb3jaoFSDQEnfsjbmvMoP3Cc8ejvBySpsfYWC1vBg",
"proofs": [
"3V4SBrrhxphAg4Hkc3qtYEchHgTMnAqzSp1s645BceXuGFDHkFBbWRNFth1ZngiLrA1QoNpua2vMqKUHPd8U7eNP"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAEBAAAAB2dldERhdGEAAAACAAAAA2FkcgAAAANrZXkEAAAABGRhdGEEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAADYWRyBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAUAAAAEZGF0YQAAAAEAAAABaQEAAAAac2F2ZVZhbHVlT25TdXBwbGllckFjY291bnQAAAACAAAADWRlbEluZlRleHRLZXkAAAAPZGVsSW5mVGV4dFZhbHVlBAAAAAxlZ2dlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAOZWdnZXJQdWJsaWNLZXkJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAABJlZ2dlclB1YmxpY0tleUhhc2gJAAH3AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAACNlZ2dlclB1YmxpY0tleUhhc2hPblN1cHBsaWVyQWNjb3VudAkBAAAAEUBleHRyTmF0aXZlKDEwNTIpAAAAAgUAAAAEdGhpcwIAAAAUY29ubmVjdGlvbi5FZ2dlci5yZWYDCQAAAAAAAAIFAAAAI2VnZ2VyUHVibGljS2V5SGFzaE9uU3VwcGxpZXJBY2NvdW50BQAAABJlZ2dlclB1YmxpY0tleUhhc2gJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAANZGVsSW5mVGV4dEtleQUAAAAPZGVsSW5mVGV4dFZhbHVlBQAAAANuaWwJAAACAAAAAQIAAAA9QWNjb3VudCBoYXQgbmljaHQgZGllIG7DtnRpZ2UgQmVyZWNodGlndW5nIGbDvHIgZGllc2UgQWt0aW9uLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5kq4BZg==",
"height": 2331405,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 84XherACDKqJfncrKQ7new1LLDRjdMFDrs92KRRWTMYi
Next: none
Diff:
Old | New | | Differences |
---|
18 | 18 | | let eggerPublicKey = toBase58String(i.callerPublicKey) |
---|
19 | 19 | | let eggerPublicKeyHash = sha256(i.callerPublicKey) |
---|
20 | 20 | | let eggerPublicKeyHashOnSupplierAccount = getBinaryValue(this, "connection.Egger.ref") |
---|
21 | | - | [BinaryEntry("pubKeyCaller", eggerPublicKeyHash), BinaryEntry("pubKeyOnScript", eggerPublicKeyHashOnSupplierAccount)] |
---|
| 21 | + | if ((eggerPublicKeyHashOnSupplierAccount == eggerPublicKeyHash)) |
---|
| 22 | + | then [StringEntry(delInfTextKey, delInfTextValue)] |
---|
| 23 | + | else throw("Account hat nicht die nötige Berechtigung für diese Aktion.") |
---|
22 | 24 | | } |
---|
23 | 25 | | |
---|
24 | 26 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getData (adr,key) = { |
---|
5 | 5 | | let data = match getBinary(adr, key) { |
---|
6 | 6 | | case a: ByteVector => |
---|
7 | 7 | | a |
---|
8 | 8 | | case _ => |
---|
9 | 9 | | "" |
---|
10 | 10 | | } |
---|
11 | 11 | | data |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func saveValueOnSupplierAccount (delInfTextKey,delInfTextValue) = { |
---|
17 | 17 | | let eggerAddress = toBase58String(i.caller.bytes) |
---|
18 | 18 | | let eggerPublicKey = toBase58String(i.callerPublicKey) |
---|
19 | 19 | | let eggerPublicKeyHash = sha256(i.callerPublicKey) |
---|
20 | 20 | | let eggerPublicKeyHashOnSupplierAccount = getBinaryValue(this, "connection.Egger.ref") |
---|
21 | | - | [BinaryEntry("pubKeyCaller", eggerPublicKeyHash), BinaryEntry("pubKeyOnScript", eggerPublicKeyHashOnSupplierAccount)] |
---|
| 21 | + | if ((eggerPublicKeyHashOnSupplierAccount == eggerPublicKeyHash)) |
---|
| 22 | + | then [StringEntry(delInfTextKey, delInfTextValue)] |
---|
| 23 | + | else throw("Account hat nicht die nötige Berechtigung für diese Aktion.") |
---|
22 | 24 | | } |
---|
23 | 25 | | |
---|
24 | 26 | | |
---|
25 | 27 | | @Verifier(tx) |
---|
26 | 28 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 29 | | |
---|