tx · 9fK4VBQBZfUTLuKaYcRH15oqrF3u1MRnbKVGRyxpu5gv

3N8QXkBJ9Cw5SKQN9XrAvj6TQm3LQTJXMik:  -0.01000000 Waves

2023.08.14 11:59 [2710025] smart account 3N8QXkBJ9Cw5SKQN9XrAvj6TQm3LQTJXMik > SELF 0.00000000 Waves

{ "type": 13, "id": "9fK4VBQBZfUTLuKaYcRH15oqrF3u1MRnbKVGRyxpu5gv", "fee": 1000000, "feeAssetId": null, "timestamp": 1692003630867, "version": 2, "chainId": 84, "sender": "3N8QXkBJ9Cw5SKQN9XrAvj6TQm3LQTJXMik", "senderPublicKey": "3k1UfguhLASyNRUsyixsBqDL7EMm2UZqEsUMcZf9yQoW", "proofs": [ "3x9VT6bJDd4DEAUbfFxxE4Y7Anykm37qbF9VXHMRAb2MqKkScyLqZnYi9qp7Fbu5tsTmRbnjD19t5kgjmikx53aS" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAgEAAAAHZ2V0RGF0YQAAAAIAAAADYWRyAAAAA2tleQQAAAAEZGF0YQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAANhZHIFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAFAAAABGRhdGEBAAAACGF1dGhVc2VyAAAAAQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAAE2NhbGxlclB1YmxpY0tleUhhc2gJAAJYAAAAAQkAAfcAAAABBQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAACWRhdGFWYWx1ZQkBAAAAB2dldERhdGEAAAACBQAAAAR0aGlzCQABLAAAAAIJAAEsAAAAAgIAAAALY29ubmVjdGlvbi4FAAAAE2NhbGxlclB1YmxpY0tleUhhc2gCAAAABy5zY3JpcHQEAAAADWV4cGVjdGVkVmFsdWUCAAAACmF1dGhvcml6ZWQDCQAAAAAAAAIFAAAACWRhdGFWYWx1ZQUAAAANZXhwZWN0ZWRWYWx1ZQYHAAAAAQAAAAFpAQAAAAtyZWZ1bmRXYXZlcwAAAAEAAAAEY29zdAQAAAANYXV0aGVudGljYXRlZAkBAAAACGF1dGhVc2VyAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkBAAAAASEAAAABBQAAAA1hdXRoZW50aWNhdGVkCQAAAgAAAAECAAAAPUFjY291bnQgaGF0IG5pY2h0IGRpZSBuw7Z0aWdlIEJlcmVjaHRpZ3VuZyBmw7xyIGRpZXNlIEFrdGlvbi4JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAARjb3N0BQAAAAR1bml0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleagB5D8=", "height": 2710025, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5kysFUKjUgCt1gk6YNhjiRMhGLu4cgbyidyRrEiRtzNB Next: none Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c) = {
55 let d = {
6- let e = getBoolean(b, c)
7- if ($isInstanceOf(e, "Boolean"))
6+ let e = getString(b, c)
7+ if ($isInstanceOf(e, "String"))
88 then {
99 let f = e
1010 f
1111 }
12- else false
12+ else ""
1313 }
1414 d
1515 }
1616
1717
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)]
18+func g (h) = {
19+ let i = toBase58String(sha256(h))
20+ let j = a(this, (("connection." + i) + ".script"))
21+ let k = "authorized"
22+ if ((j == k))
23+ then true
24+ else false
2525 }
2626
2727
28-@Verifier(j)
29-func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
28+@Callable(l)
29+func refundWaves (m) = {
30+ let n = g(l.callerPublicKey)
31+ if (!(n))
32+ then throw("Account hat nicht die nötige Berechtigung für diese Aktion.")
33+ else [ScriptTransfer(l.caller, m, unit)]
34+ }
35+
36+
37+@Verifier(o)
38+func p () = sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)
3039
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c) = {
55 let d = {
6- let e = getBoolean(b, c)
7- if ($isInstanceOf(e, "Boolean"))
6+ let e = getString(b, c)
7+ if ($isInstanceOf(e, "String"))
88 then {
99 let f = e
1010 f
1111 }
12- else false
12+ else ""
1313 }
1414 d
1515 }
1616
1717
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)]
18+func g (h) = {
19+ let i = toBase58String(sha256(h))
20+ let j = a(this, (("connection." + i) + ".script"))
21+ let k = "authorized"
22+ if ((j == k))
23+ then true
24+ else false
2525 }
2626
2727
28-@Verifier(j)
29-func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
28+@Callable(l)
29+func refundWaves (m) = {
30+ let n = g(l.callerPublicKey)
31+ if (!(n))
32+ then throw("Account hat nicht die nötige Berechtigung für diese Aktion.")
33+ else [ScriptTransfer(l.caller, m, unit)]
34+ }
35+
36+
37+@Verifier(o)
38+func p () = sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)
3039

github/deemru/w8io/026f985 
23.37 ms