tx · DUy33z8Bh7Q7s7V1wnAKFBdmgug8CXrp2HSYELsUcHvF 3NASva5eWS9sUFvaJtiEfvD31bLhqVsyC61: -0.00500000 Waves 2022.12.19 13:44 [2367069] smart account 3NASva5eWS9sUFvaJtiEfvD31bLhqVsyC61 > SELF 0.00000000 Waves
{ "type": 13, "id": "DUy33z8Bh7Q7s7V1wnAKFBdmgug8CXrp2HSYELsUcHvF", "fee": 500000, "feeAssetId": null, "timestamp": 1671446684969, "version": 2, "chainId": 84, "sender": "3NASva5eWS9sUFvaJtiEfvD31bLhqVsyC61", "senderPublicKey": "5odfnARg9GYE52uh8Auuia2Vb7YG5ieByZnhwHL1cEJF", "proofs": [ "4NV7mG6CitMgJ4VGE5HyKPsMzZqXx5DEMK5KJYWimG8UPFgxsWWyZs5qt94V5azHTPEDSk4M1sZ5nrKig6hmzN3u" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAEBAAAAB2dldERhdGEAAAACAAAAA2FkcgAAAANrZXkEAAAABGRhdGEEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAADYWRyBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAUAAAAEZGF0YQAAAAEAAAABaQEAAAAac2F2ZVZhbHVlT25TdXBwbGllckFjY291bnQAAAACAAAADWRlbEluZlRleHRLZXkAAAAPZGVsSW5mVGV4dFZhbHVlBAAAABJlZ2dlclB1YmxpY0tleUhhc2gJAAH3AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAACNlZ2dlclB1YmxpY0tleUhhc2hPblN1cHBsaWVyQWNjb3VudAkBAAAAEUBleHRyTmF0aXZlKDEwNTIpAAAAAgUAAAAEdGhpcwIAAAAUY29ubmVjdGlvbi5FZ2dlci5yZWYDCQAAAAAAAAIFAAAAI2VnZ2VyUHVibGljS2V5SGFzaE9uU3VwcGxpZXJBY2NvdW50BQAAABJlZ2dlclB1YmxpY0tleUhhc2gJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAANZGVsSW5mVGV4dEtleQUAAAAPZGVsSW5mVGV4dFZhbHVlBQAAAANuaWwJAAACAAAAAQIAAAA9QWNjb3VudCBoYXQgbmljaHQgZGllIG7DtnRpZ2UgQmVyZWNodGlndW5nIGbDvHIgZGllc2UgQWt0aW9uLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5XCBBfg==", "height": 2367069, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func getData (adr,key) = { | |
5 | + | let data = match getBinary(adr, key) { | |
6 | + | case a: ByteVector => | |
7 | + | a | |
8 | + | case _ => | |
9 | + | "" | |
10 | + | } | |
11 | + | data | |
12 | + | } | |
13 | + | ||
14 | + | ||
15 | + | @Callable(i) | |
16 | + | func saveValueOnSupplierAccount (delInfTextKey,delInfTextValue) = { | |
17 | + | let eggerPublicKeyHash = sha256(i.callerPublicKey) | |
18 | + | let eggerPublicKeyHashOnSupplierAccount = getBinaryValue(this, "connection.Egger.ref") | |
19 | + | if ((eggerPublicKeyHashOnSupplierAccount == eggerPublicKeyHash)) | |
20 | + | then [StringEntry(delInfTextKey, delInfTextValue)] | |
21 | + | else throw("Account hat nicht die nötige Berechtigung für diese Aktion.") | |
22 | + | } | |
23 | + | ||
24 | + | ||
25 | + | @Verifier(tx) | |
26 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
27 | + |
github/deemru/w8io/169f3d6 30.25 ms ◑