tx · GZwD3djhMEZAXNHZZXuVwYT6YBk5NFZkYGMvEQDxdsZP

3N78z4Jkz1wjz55kTa3qrBJ4z28gnUoVPdh:  -0.01000000 Waves

2022.12.08 05:24 [2350767] smart account 3N78z4Jkz1wjz55kTa3qrBJ4z28gnUoVPdh > SELF 0.00000000 Waves

{ "type": 13, "id": "GZwD3djhMEZAXNHZZXuVwYT6YBk5NFZkYGMvEQDxdsZP", "fee": 1000000, "feeAssetId": null, "timestamp": 1670466262435, "version": 2, "chainId": 84, "sender": "3N78z4Jkz1wjz55kTa3qrBJ4z28gnUoVPdh", "senderPublicKey": "GsSPDdrwULBEWC81LUyqd1omPkiWTJ3gFAp7Wb72rSa2", "proofs": [ "65C9isWFFRfm44WvFDyZBDR4KKhV4wXQs1VStwTpdtxmUQam9TXDAS3L6Qriy9L4ntUofHpvR3Z9jUwSwyf7KrrS" ], "script": "base64:AAIFAAAAAAAAAAkIAhIDCgEIEgAAAAAEAQAAABNrZXlNYW5hZ2VyUHVibGljS2V5AAAAAAkABCIAAAABAgAAABBtYW5hZ2VyUHVibGljS2V5AQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAQAAAAHJG1hdGNoMAkBAAAAE2tleU1hbmFnZXJQdWJsaWNLZXkAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXMFAAAAByRtYXRjaDAJAAJZAAAAAQUAAAABcwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAUAAAAEdW5pdAkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgEAAAALbXVzdE1hbmFnZXIAAAABAAAAAWkEAAAAAnBkCQAAAgAAAAECAAAAEXBlcm1pc3Npb24gZGVuaWVkBAAAAAckbWF0Y2gwCQEAAAAWbWFuYWdlclB1YmxpY0tleU9yVW5pdAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAnBrBQAAAAckbWF0Y2gwA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QAAAAR0aGlzAAAAB3JlZ3VsYXIDCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAAC21haW5BZGRyZXNzCQAAAgAAAAECAAAAKU9ubHkgbWFpbiBjb250cmFjdCBjYW4gaW52b2tlIHRoaXMgbWV0aG9kCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAC21haW5BZGRyZXNzBQAAAA5yZWd1bGFyQmFsYW5jZQUAAAAEdW5pdAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlZx2US", "height": 2350767, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HSdy1qMAXG4omajX8wCfKkX74aoE5YGBBhYGkrfVh71s Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func a () = getString("managerPublicKey")
5+
6+
7+func b () = {
8+ let c = a()
9+ if ($isInstanceOf(c, "String"))
10+ then {
11+ let d = c
12+ fromBase58String(d)
13+ }
14+ else if ($isInstanceOf(c, "Unit"))
15+ then unit
16+ else throw("Match error")
17+ }
18+
19+
20+func e (f) = {
21+ let g = throw("permission denied")
22+ let c = b()
23+ if ($isInstanceOf(c, "ByteVector"))
24+ then {
25+ let h = c
26+ if ((f.callerPublicKey == h))
27+ then true
28+ else g
29+ }
30+ else if ($isInstanceOf(c, "Unit"))
31+ then if ((f.caller == this))
32+ then true
33+ else g
34+ else throw("Match error")
35+ }
36+
37+
38+func i () = {
39+ let c = getBoolean("inited")
40+ if ($isInstanceOf(c, "Boolean"))
41+ then {
42+ let j = c
43+ if ((j == false))
44+ then true
45+ else throw("Already inited")
46+ }
47+ else if ($isInstanceOf(c, "Unit"))
48+ then false
49+ else throw("Match error")
50+ }
51+
52+
53+@Callable(f)
54+func init (k) = {
55+ let l = [e(f), i()]
56+ if ((l == l))
57+ then [BooleanEntry("inited", true), StringEntry("mainAddress", k)]
58+ else throw("Strict value is not equal to itself.")
59+ }
60+
61+
62+
63+@Callable(f)
64+func withdraw () = {
65+ let k = Address(fromBase58String(getStringValue("mainAddress")))
66+ let m = wavesBalance(this).regular
67+ if ((f.caller != k))
68+ then throw("Only main contract can invoke this method")
69+ else [ScriptTransfer(k, m, unit)]
70+ }
71+
72+
73+@Verifier(n)
74+func o () = sigVerify(n.bodyBytes, n.proofs[0], n.senderPublicKey)
75+

github/deemru/w8io/026f985 
13.16 ms