tx · GNL3P3fGJGpbHXPEoGP9TzaN4Kfta2j4BnzedP4vYyXT

3Mxf7HiQX9oiMgrhdA4Umrcuo1Sx6FeGCm5:  -0.01200000 Waves

2022.11.14 21:42 [2317162] smart account 3Mxf7HiQX9oiMgrhdA4Umrcuo1Sx6FeGCm5 > SELF 0.00000000 Waves

{ "type": 13, "id": "GNL3P3fGJGpbHXPEoGP9TzaN4Kfta2j4BnzedP4vYyXT", "fee": 1200000, "feeAssetId": null, "timestamp": 1668451390954, "version": 2, "chainId": 84, "sender": "3Mxf7HiQX9oiMgrhdA4Umrcuo1Sx6FeGCm5", "senderPublicKey": "8a6kuisyWCBvikxskrBsnaQtWMLUk5YuoijVJrKKc6gD", "proofs": [ "aopS582n9jKLR2D4kBmT2UjpFcjdFrKsEgRLrcHj62HijGcg7na1rYW5NnPNUpzseEMzr7acDWBAJWLc7KBgvK4" ], "script": "base64:AAIFAAAAAAAAAAkIAhIDCgEIEgAAAAAEAQAAABNrZXlNYW5hZ2VyUHVibGljS2V5AAAAAAkABCIAAAABAgAAABBtYW5hZ2VyUHVibGljS2V5AQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAQAAAAHJG1hdGNoMAkBAAAAE2tleU1hbmFnZXJQdWJsaWNLZXkAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXMFAAAAByRtYXRjaDAJAAJZAAAAAQUAAAABcwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAUAAAAEdW5pdAkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgEAAAALbXVzdE1hbmFnZXIAAAABAAAAAWkEAAAAAnBkCQAAAgAAAAECAAAAEXBlcm1pc3Npb24gZGVuaWVkBAAAAAckbWF0Y2gwCQEAAAAWbWFuYWdlclB1YmxpY0tleU9yVW5pdAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAnBrBQAAAAckbWF0Y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AAABBQAAAAR0aGlzAAAAB3JlZ3VsYXIDCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAAC21haW5BZGRyZXNzCQAAAgAAAAECAAAAKU9ubHkgbWFpbiBjb250cmFjdCBjYW4gaW52b2tlIHRoaXMgbWV0aG9kCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAC21haW5BZGRyZXNzBQAAAA5yZWd1bGFyQmFsYW5jZQUAAAAEdW5pdAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlZx2US", "height": 2317162, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none 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 
31.22 ms