tx · 6kk8y4UsjTjk2Z4mpJ67yRHET1M8LFg37zD9TVMPTCbV

3N7y8qhNA8RXkfuzGTLdtmZFZmwbhZtLJhb:  -0.01000000 Waves

2023.02.11 20:38 [2445271] smart account 3N7y8qhNA8RXkfuzGTLdtmZFZmwbhZtLJhb > SELF 0.00000000 Waves

{ "type": 13, "id": "6kk8y4UsjTjk2Z4mpJ67yRHET1M8LFg37zD9TVMPTCbV", "fee": 1000000, "feeAssetId": null, "timestamp": 1676137218058, "version": 2, "chainId": 84, "sender": "3N7y8qhNA8RXkfuzGTLdtmZFZmwbhZtLJhb", "senderPublicKey": "GWpjPX6mt3HRdUusZGysPeTyNhb6kELXVYQRJny11i59", "proofs": [ "3coXeMKzaJpKCeCjUB9QFbHe2i127M1GApzCsjeQTwV2e7kcdPr3RsmdGwTJzwTG6hkjvRKcthzm1EgbQnFu7gwV" ], "script": "base64:AAIFAAAAAAAAAA0IAhIECgIICBIDCgEIAAAAAAAAAAIAAAABaQEAAAAJc2V0T3B0aW9uAAAAAgAAAAh2YXJpYWJsZQAAAAV2YWx1ZQQAAAAJYWRtaW5MaXN0BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMCAAAACmFkbWluX2xpc3QDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQCAAAABXVuc2V0AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXgFAAAAByRtYXRjaDAFAAAAAXgJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IEAAAAEGNhbGxlckFkZHJlc3NTdHIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAwkBAAAAAiE9AAAAAgUAAAAJYWRtaW5MaXN0AgAAAAV1bnNldAQAAAAEdGVzdAkABB0AAAACCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAlhZG1pbkxpc3QFAAAAEGNhbGxlckFkZHJlc3NTdHIEAAAAB2lzQWRtaW4EAAAAByRtYXRjaD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NhbGxlckFkZHJlc3NTdHIEAAAAB2lzQWRtaW4EAAAAByRtYXRjaDAFAAAABHRlc3QDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABeAUAAAAHJG1hdGNoMAUAAAABeAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAIAAAAIbm8gYWRtaW4JAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IDCQEAAAACIT0AAAACBQAAAAdpc0FkbWluAgAAAAhubyBhZG1pbgkABRQAAAACCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAACHZhcmlhYmxlBQAAAANuaWwFAAAABHVuaXQJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAPWW91IG5vdCBhZG1pbjogBQAAAAlhZG1pbkxpc3QCAAAACywgaXNBZG1pbjogBQAAAAdpc0FkbWluAgAAABQsIGNhbGxlckFkZHJlc3NTdHI6IAUAAAAQY2FsbGVyQWRkcmVzc1N0cgIAAAACLCAJAAACAAAAAQIAAAAQVW5zZXQgYWRtaW4gbGlzdAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleeI1riI=", "height": 2445271, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 7xJQ1uhGCqGLXDZ8uJYfiRCzhyUV3Bur8wFkfcVpESCv Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(i)
7+func setOption (variable,value) = {
8+ let adminList = match getString(this, "admin_list") {
9+ case _: Unit =>
10+ "unset"
11+ case x: String =>
12+ x
13+ case _ =>
14+ throw("Match error")
15+ }
16+ let callerAddressStr = toString(i.caller)
17+ if ((adminList != "unset"))
18+ then {
19+ let test = getString(addressFromStringValue(adminList), callerAddressStr)
20+ let isAdmin = match test {
21+ case x: String =>
22+ x
23+ case _: Unit =>
24+ "no admin"
25+ case _ =>
26+ throw("Match error")
27+ }
28+ if ((isAdmin != "no admin"))
29+ then $Tuple2([StringEntry(variable, value)], unit)
30+ else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
31+ }
32+ else throw("Unset admin list")
33+ }
34+
35+
36+
37+@Callable(i)
38+func delOption (variable) = {
39+ let adminList = match getString(this, "admin_list") {
40+ case _: Unit =>
41+ "unset"
42+ case x: String =>
43+ x
44+ case _ =>
45+ throw("Match error")
46+ }
47+ let callerAddressStr = toString(i.caller)
48+ if ((adminList != "unset"))
49+ then {
50+ let test = getString(addressFromStringValue(adminList), callerAddressStr)
51+ let isAdmin = match test {
52+ case x: String =>
53+ x
54+ case _: Unit =>
55+ "no admin"
56+ case _ =>
57+ throw("Match error")
58+ }
59+ if ((isAdmin != "no admin"))
60+ then $Tuple2([DeleteEntry(variable)], unit)
61+ else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
62+ }
63+ else throw("Unset admin list")
64+ }
65+
66+
67+@Verifier(tx)
68+func verify () = match tx {
69+ case _ =>
70+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
71+}
72+

github/deemru/w8io/169f3d6 
22.56 ms