tx · EjVBa1xgEKhAhKqQmVb83oW6fnWe7kfkqHWAEAbaJT46

3MrY2B4BMDLsndDAeCfHeyVQchyo6fcXnUW:  -0.01000000 Waves

2022.02.21 23:15 [1933888] smart account 3MrY2B4BMDLsndDAeCfHeyVQchyo6fcXnUW > SELF 0.00000000 Waves

{ "type": 13, "id": "EjVBa1xgEKhAhKqQmVb83oW6fnWe7kfkqHWAEAbaJT46", "fee": 1000000, "feeAssetId": null, "timestamp": 1645474510456, "version": 2, "chainId": 84, "sender": "3MrY2B4BMDLsndDAeCfHeyVQchyo6fcXnUW", "senderPublicKey": "4NgQjohUrh7azxu2PyFFPyoCJBuDACKTvjEEeLuGza9P", "proofs": [ "3Yyqqs4rTH3fGvnFWQoP6XQvHi64ZSEEuzMhHeBUDj4ap8qKxoU3juJEPHfbcZNcTWbygPw3UfmdMpvPE6aFjjrq" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgEAAAAPZ2V0QWNjZXNzU3RhdHVzAAAAAQAAAANrZXkJAAEsAAAAAgkAASwAAAACAgAAAAV1c2VyXwUAAAADa2V5AgAAAAdfYWNjZXNzAQAAAAloYXNBY2Nlc3MAAAABAAAAB2FkZHJlc3MEAAAAByRtYXRjaDAJAAQiAAAAAQkBAAAAD2dldEFjY2Vzc1N0YXR1cwAAAAEFAAAAB2FkZHJlc3MDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAYHAAAAAQAAAAFpAQAAAAlhdXRob3JpemUAAAABAAAABXRva2VuBAAAAAdhZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACCQEAAAAJaGFzQWNjZXNzAAAAAQUAAAAHYWRkcmVzcwYJAAACAAAAAQIAAAAJTm8gQWNjZXNzCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAA9nZXRBY2Nlc3NTdGF0dXMAAAABBQAAAAdhZGRyZXNzBQAAAAV0b2tlbgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHc21hcnRQSwEAAAAg7FpWyjKbzVZft//RzetcP6VR/RgE9mP8EUAKGEvbQl0EAAAABXNtYXJ0CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAHc21hcnRQSwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBQAAAAVzbWFydAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBQAAAAVzbWFydAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBQAAAAVzbWFydAeWB4iV", "height": 1933888, "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 (b) = (("user_" + b) + "_access")
5+
6+
7+func c (d) = {
8+ let e = getString(a(d))
9+ if ($isInstanceOf(e, "String"))
10+ then {
11+ let f = e
12+ true
13+ }
14+ else false
15+ }
16+
17+
18+@Callable(g)
19+func authorize (h) = {
20+ let d = toBase58String(g.caller.bytes)
21+ if ((c(d) != true))
22+ then throw("No Access")
23+ else [StringEntry(a(d), h)]
24+ }
25+
26+
27+@Verifier(i)
28+func j () = {
29+ let k = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL'
30+ let l = sigVerify(i.bodyBytes, i.proofs[0], k)
31+ let e = i
32+ if ($isInstanceOf(e, "SetScriptTransaction"))
33+ then {
34+ let m = e
35+ l
36+ }
37+ else if ($isInstanceOf(e, "DataTransaction"))
38+ then {
39+ let m = e
40+ l
41+ }
42+ else if ($isInstanceOf(e, "InvokeScriptTransaction"))
43+ then {
44+ let m = e
45+ true
46+ }
47+ else if ($isInstanceOf(e, "TransferTransaction"))
48+ then {
49+ let m = e
50+ l
51+ }
52+ else false
53+ }
54+

github/deemru/w8io/169f3d6 
36.44 ms