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:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b,c) = { |
---|
5 | 5 | | let d = { |
---|
6 | | - | let e = getBoolean(b, c) |
---|
7 | | - | if ($isInstanceOf(e, "Boolean")) |
---|
| 6 | + | let e = getBinary(b, c) |
---|
| 7 | + | if ($isInstanceOf(e, "ByteVector")) |
---|
8 | 8 | | then { |
---|
9 | 9 | | let f = e |
---|
10 | 10 | | f |
---|
11 | 11 | | } |
---|
12 | | - | else false |
---|
| 12 | + | else "" |
---|
13 | 13 | | } |
---|
14 | 14 | | d |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | @Callable(g) |
---|
19 | | - | func refundWaves (h,i) = { |
---|
20 | | - | let c = ((h + ".") + toBase58String(g.callerPublicKey)) |
---|
21 | | - | let d = a(this, c) |
---|
22 | | - | if (d) |
---|
23 | | - | then throw("Wurde bereits ausgezahlt.") |
---|
24 | | - | else [BooleanEntry(c, true), ScriptTransfer(g.caller, i, unit)] |
---|
| 19 | + | func saveValueOnSupplierAccount (h,i) = { |
---|
| 20 | + | let j = sha256(g.callerPublicKey) |
---|
| 21 | + | let k = getBinaryValue(this, "connection.Egger.ref") |
---|
| 22 | + | if ((k == j)) |
---|
| 23 | + | then [StringEntry(h, i)] |
---|
| 24 | + | else throw("Account hat nicht die nötige Berechtigung für diese Aktion.") |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | | - | @Verifier(j) |
---|
29 | | - | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
| 28 | + | @Verifier(l) |
---|
| 29 | + | func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey) |
---|
30 | 30 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b,c) = { |
---|
5 | 5 | | let d = { |
---|
6 | | - | let e = getBoolean(b, c) |
---|
7 | | - | if ($isInstanceOf(e, "Boolean")) |
---|
| 6 | + | let e = getBinary(b, c) |
---|
| 7 | + | if ($isInstanceOf(e, "ByteVector")) |
---|
8 | 8 | | then { |
---|
9 | 9 | | let f = e |
---|
10 | 10 | | f |
---|
11 | 11 | | } |
---|
12 | | - | else false |
---|
| 12 | + | else "" |
---|
13 | 13 | | } |
---|
14 | 14 | | d |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | @Callable(g) |
---|
19 | | - | func refundWaves (h,i) = { |
---|
20 | | - | let c = ((h + ".") + toBase58String(g.callerPublicKey)) |
---|
21 | | - | let d = a(this, c) |
---|
22 | | - | if (d) |
---|
23 | | - | then throw("Wurde bereits ausgezahlt.") |
---|
24 | | - | else [BooleanEntry(c, true), ScriptTransfer(g.caller, i, unit)] |
---|
| 19 | + | func saveValueOnSupplierAccount (h,i) = { |
---|
| 20 | + | let j = sha256(g.callerPublicKey) |
---|
| 21 | + | let k = getBinaryValue(this, "connection.Egger.ref") |
---|
| 22 | + | if ((k == j)) |
---|
| 23 | + | then [StringEntry(h, i)] |
---|
| 24 | + | else throw("Account hat nicht die nötige Berechtigung für diese Aktion.") |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | | - | @Verifier(j) |
---|
29 | | - | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
| 28 | + | @Verifier(l) |
---|
| 29 | + | func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey) |
---|
30 | 30 | | |
---|