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:
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 = getString(b, c) |
---|
| 7 | + | if ($isInstanceOf(e, "String")) |
---|
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 | | - | @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 |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
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) |
---|
30 | 39 | | |
---|
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 = getString(b, c) |
---|
| 7 | + | if ($isInstanceOf(e, "String")) |
---|
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 | | - | @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 |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
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) |
---|
30 | 39 | | |
---|