tx · HWCUpbrTeeUtmJsgjvk47E3wNcC1yVSDgXVcdLNLMi8D

3Mxja9dzJwYYcgQLNS6srMSE57o4xEuLubp:  -0.00500000 Waves

2022.12.19 13:02 [2367029] smart account 3Mxja9dzJwYYcgQLNS6srMSE57o4xEuLubp > SELF 0.00000000 Waves

{ "type": 13, "id": "HWCUpbrTeeUtmJsgjvk47E3wNcC1yVSDgXVcdLNLMi8D", "fee": 500000, "feeAssetId": null, "timestamp": 1671444190708, "version": 2, "chainId": 84, "sender": "3Mxja9dzJwYYcgQLNS6srMSE57o4xEuLubp", "senderPublicKey": "494P1nGfsVKLpZQB1RZiM37znqRG58QQSHckhgaR52M7", "proofs": [ "2Sprzek38uWhyKCwTdGhPNMMpaw9c7uNMHUFep2vYTqLx2osw1rVig5f8zmN2AjSPZ3bzZjtBMZPE2Q9Cbmbo1Kf" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAEBAAAAB2dldERhdGEAAAACAAAAA2FkcgAAAANrZXkEAAAABGRhdGEEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAADYWRyBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAUAAAAEZGF0YQAAAAEAAAABaQEAAAAac2F2ZVZhbHVlT25TdXBwbGllckFjY291bnQAAAACAAAADWRlbEluZlRleHRLZXkAAAAPZGVsSW5mVGV4dFZhbHVlBAAAABJlZ2dlclB1YmxpY0tleUhhc2gJAAH3AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAACNlZ2dlclB1YmxpY0tleUhhc2hPblN1cHBsaWVyQWNjb3VudAkBAAAAEUBleHRyTmF0aXZlKDEwNTIpAAAAAgUAAAAEdGhpcwIAAAAUY29ubmVjdGlvbi5FZ2dlci5yZWYDCQAAAAAAAAIFAAAAI2VnZ2VyUHVibGljS2V5SGFzaE9uU3VwcGxpZXJBY2NvdW50BQAAABJlZ2dlclB1YmxpY0tleUhhc2gJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAANZGVsSW5mVGV4dEtleQUAAAAPZGVsSW5mVGV4dFZhbHVlBQAAAANuaWwJAAACAAAAAQIAAAA9QWNjb3VudCBoYXQgbmljaHQgZGllIG7DtnRpZ2UgQmVyZWNodGlndW5nIGbDvHIgZGllc2UgQWt0aW9uLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5XCBBfg==", "height": 2367029, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DYSGuFMDgwgtrkjyEQyWqhAvoXXXTYGxP6e47D7h52Jc Next: AaZgphYVMBhxtE3PjdXxDXxxa6dCHfv44cA4UFjBa8hK Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getData (adr,key) = {
5- let data = match getBoolean(adr, key) {
6- case a: Boolean =>
5+ let data = match getBinary(adr, key) {
6+ case a: ByteVector =>
77 a
88 case _ =>
9- false
9+ ""
1010 }
1111 data
1212 }
1313
1414
1515 @Callable(i)
16-func refundWaves (timestamp,cost) = {
17- let key = ((timestamp + ".") + toBase58String(i.callerPublicKey))
18- let data = getData(this, key)
19- if (data)
20- then throw("Wurde bereits ausgezahlt.")
21- else [BooleanEntry(key, true), ScriptTransfer(i.caller, cost, unit)]
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.")
2222 }
2323
2424
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getData (adr,key) = {
5- let data = match getBoolean(adr, key) {
6- case a: Boolean =>
5+ let data = match getBinary(adr, key) {
6+ case a: ByteVector =>
77 a
88 case _ =>
9- false
9+ ""
1010 }
1111 data
1212 }
1313
1414
1515 @Callable(i)
16-func refundWaves (timestamp,cost) = {
17- let key = ((timestamp + ".") + toBase58String(i.callerPublicKey))
18- let data = getData(this, key)
19- if (data)
20- then throw("Wurde bereits ausgezahlt.")
21- else [BooleanEntry(key, true), ScriptTransfer(i.caller, cost, unit)]
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.")
2222 }
2323
2424
2525 @Verifier(tx)
2626 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2727

github/deemru/w8io/169f3d6 
51.13 ms