tx · FaNMkWeVzAskzZKACwB6iXYqvharbCJay8kvNsqVbnkg

3MwCoAS5bvfAqbHYxLYWEw3brqeo6SeoB7B:  -0.01400000 Waves

2022.04.11 16:00 [2003964] smart account 3MwCoAS5bvfAqbHYxLYWEw3brqeo6SeoB7B > SELF 0.00000000 Waves

{ "type": 13, "id": "FaNMkWeVzAskzZKACwB6iXYqvharbCJay8kvNsqVbnkg", "fee": 1400000, "feeAssetId": null, "timestamp": 1649682059259, "version": 1, "sender": "3MwCoAS5bvfAqbHYxLYWEw3brqeo6SeoB7B", "senderPublicKey": "5WJHJ8krgJY8GZvHds2k2fCTXmaYgW3NCnj2ifYZEhVV", "proofs": [ "27V9M73mNfiG3399Cn1Kyq5UaWtUMJBsUoHVZmJWhj7bhovBo2th7UngEXx4Vc4mj66nRqWsX9yeQxq7pei5gc2g" ], "script": "base64:AAIFAAAAAAAAAAkIAhIDCgEIEgAAAAAFAQAAABNrZXlNYW5hZ2VyUHVibGljS2V5AAAAAAIAAAAUJXNfX21hbmFnZXJQdWJsaWNLZXkBAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAIAAAAbJXNfX3BlbmRpbmdNYW5hZ2VyUHVibGljS2V5AQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAQAAAAHJG1hdGNoMAkABCIAAAABCQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAkAAlkAAAABBQAAAAFzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0BQAAAAR1bml0CQAAAgAAAAECAAAAC01hdGNoIGVycm9yAQAAAB1wZW5kaW5nTWFuYWdlclB1YmxpY0tleU9yVW5pdAAAAAAEAAAAByRtYXRjaDAJAAQiAAAAAQkBAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAMJAAABAAAAAgUAAAAHJG1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AAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXmq8YBh", "chainId": 84, "height": 2003964, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FByajLwuZZed7QksQzHzogJvrqGg3SzHDTkKwdaMb5yW Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a () = "%s__managerPublicKey"
55
66
77 func b () = "%s__pendingManagerPublicKey"
88
99
1010 func c () = {
1111 let d = getString(a())
1212 if ($isInstanceOf(d, "String"))
1313 then {
1414 let e = d
1515 fromBase58String(e)
1616 }
1717 else if ($isInstanceOf(d, "Unit"))
1818 then unit
1919 else throw("Match error")
2020 }
2121
2222
2323 func f () = {
2424 let d = getString(b())
2525 if ($isInstanceOf(d, "String"))
2626 then {
2727 let e = d
2828 fromBase58String(e)
2929 }
3030 else if ($isInstanceOf(d, "Unit"))
3131 then unit
3232 else throw("Match error")
3333 }
3434
3535
3636 func g (h) = {
3737 let i = throw("Permission denied")
3838 let d = c()
3939 if ($isInstanceOf(d, "ByteVector"))
4040 then {
4141 let j = d
4242 if ((h.callerPublicKey == j))
4343 then true
4444 else i
4545 }
4646 else if ($isInstanceOf(d, "Unit"))
4747 then if ((h.caller == this))
4848 then true
4949 else i
5050 else throw("Match error")
5151 }
5252
5353
5454 @Callable(h)
5555 func setManager (k) = {
5656 let l = g(h)
5757 if ((l == l))
5858 then {
5959 let m = fromBase58String(k)
6060 if ((m == m))
6161 then [StringEntry(b(), k)]
6262 else throw("Strict value is not equal to itself.")
6363 }
6464 else throw("Strict value is not equal to itself.")
6565 }
6666
6767
6868
6969 @Callable(h)
7070 func confirmManager () = {
7171 let n = f()
7272 let o = if (isDefined(n))
7373 then true
7474 else throw("No pending manager")
7575 if ((o == o))
7676 then {
7777 let p = if ((h.callerPublicKey == value(n)))
7878 then true
7979 else throw("You are not pending manager")
8080 if ((p == p))
8181 then [StringEntry(a(), toBase58String(value(n))), DeleteEntry(b())]
8282 else throw("Strict value is not equal to itself.")
8383 }
8484 else throw("Strict value is not equal to itself.")
8585 }
8686
8787
8888 @Verifier(q)
8989 func r () = {
9090 let s = {
9191 let d = c()
9292 if ($isInstanceOf(d, "ByteVector"))
9393 then {
9494 let j = d
9595 j
9696 }
9797 else if ($isInstanceOf(d, "Unit"))
9898 then q.senderPublicKey
9999 else throw("Match error")
100100 }
101101 sigVerify(q.bodyBytes, q.proofs[0], s)
102102 }
103103

github/deemru/w8io/026f985 
25.59 ms