tx · 6qGd9rsiFMbfvdEnVgnWFtcfAcMerR5RzxsL6keQ2wJ8

3MrF6QFGLaSKfoNPMd8L3u7KYNm7cE43Ydw:  -0.00300000 Waves

2022.10.09 19:10 [2265012] smart account 3MrF6QFGLaSKfoNPMd8L3u7KYNm7cE43Ydw > SELF 0.00000000 Waves

{ "type": 13, "id": "6qGd9rsiFMbfvdEnVgnWFtcfAcMerR5RzxsL6keQ2wJ8", "fee": 300000, "feeAssetId": null, "timestamp": 1665331885186, "version": 2, "chainId": 84, "sender": "3MrF6QFGLaSKfoNPMd8L3u7KYNm7cE43Ydw", "senderPublicKey": "6NSakbUsm1WyESQ8yj3qpc1kQUfHWNd5C6CHVpbs4X7c", "proofs": [ "5y6boZyVvtrzumx9nqiCgugsNvBwKWqZN54DEniUaQvh18j9svRSUB3deLS6Ux6WxqeMFj1BsEMVqJi9bhAsUhkm" ], "script": "base64:AAIFAAAAAAAAABYIAhIDCgEIEgMKAQgSAwoBCBIDCgEIAAAACAEAAAAQZ2V0U3RyaW5nT3JUaHJvdwAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADENhbid0IHJlYWQgJwUAAAADa2V5AgAAAA0nIGF0IGFkZHJlc3MgCQAEJQAAAAEFAAAAB2FkZHJlc3MBAAAAE3BhcnNlQWRkcmVzc09yVGhyb3cAAAABAAAADG1heWJlQWRkcmVzcwkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEJgAAAAEFAAAADG1heWJlQWRkcmVzcwkAASwAAAACCQABLAAAAAICAAAAGkNhbid0IHBhcnNlIGFkZHJlc3MgZnJvbSAnBQAAAAxtYXliZUFkZHJlc3MCAAAAAScAAAAADGtleV9yZWdpc3RyeQIAAAAIcmVnaXN0cnkAAAAACHJlZ2lzdHJ5CQEAAAATc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QAAAAHJG1hdGNoMAkAA/wAAAAEBQAAAAhyZWdpc3RyeQIAAAALbmFtZUNyZWF0ZWQJAARMAAAAAgUAAAAJbGFzdExhYmVsBQAAAANuaWwFAAAAA25pbAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAljcmVhdGVkQXQFAAAAByRtYXRjaDAFAAAACWNyZWF0ZWRBdAUAAAAEdW5pdAQAAAALbmFtZUV4cGlyZXMEAAAAByRtYXRjaDAJAAP8AAAABAUAAAAIcmVnaXN0cnkCAAAAC25hbWVFeHBpcmVzCQAETAAAAAIFAAAACWxhc3RMYWJlbAUAAAADbmlsBQAAAANuaWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAAJZXhwaXJlc0F0BQAAAAckbWF0Y2gwBQAAAAlleHBpcmVzQXQFAAAABHVuaXQEAAAACm5hbWVTdGF0dXMEAAAAByRtYXRjaDAJAAP8AAAABAUAAAAIcmVnaXN0cnkCAAAACm5hbWVTdGF0dXMJAARMAAAAAgUAAAAJbGFzdExhYmVsBQAAAANuaWwFAAAAA25pbAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAZzdGF0dXMFAAAAByRtYXRjaDAFAAAABnN0YXR1cwUAAAAEdW5pdAMJAQAAAAEhAAAAAQUAAAAMaXNSZWdpc3RlcmVkCQAFFAAAAAIFAAAAA25pbAUAAAAEdW5pdAkABRQAAAACBQAAAANuaWwJAAUXAAAABQUAAAAKcmVnaXN0cmFudAUAAAAIcmVzb2x2ZXIFAAAAC25hbWVDcmVhdGVkBQAAAAtuYW1lRXhwaXJlcwUAAAAKbmFtZVN0YXR1cwAAAADngFff", "height": 2265012, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B2VJNE7Vs1kbvCwCLkVhZoQHHauJKiUkCu13EKduzfkH Next: 6G3ruV19NuViAcMBQfyzK7tw3jbbYMX1J8tGkHZnf6Jn Diff:
OldNewDifferences
6161 let s = split(r, ".")
6262 let t = s[(size(s) - 1)]
6363 let u = {
64+ let o = invoke(g, "available", [t], nil)
65+ if ($isInstanceOf(o, "Boolean"))
66+ then {
67+ let v = o
68+ !(v)
69+ }
70+ else false
71+ }
72+ let w = {
6473 let o = invoke(g, "owner", [t], nil)
6574 if ($isInstanceOf(o, "String"))
6675 then {
6978 }
7079 else unit
7180 }
72- let v = unit
73- let w = {
81+ let x = unit
82+ let y = {
7483 let o = invoke(g, "nameCreated", [t], nil)
75- if ($isInstanceOf(o, "Int"))
76- then {
77- let x = o
78- x
79- }
80- else unit
81- }
82- let y = {
83- let o = invoke(g, "nameExpires", [t], nil)
8484 if ($isInstanceOf(o, "Int"))
8585 then {
8686 let z = o
8989 else unit
9090 }
9191 let A = {
92- let o = invoke(g, "nameStatus", [t], nil)
93- if ($isInstanceOf(o, "String"))
92+ let o = invoke(g, "nameExpires", [t], nil)
93+ if ($isInstanceOf(o, "Int"))
9494 then {
9595 let B = o
9696 B
9797 }
9898 else unit
9999 }
100- if (!(isDefined(u)))
100+ let C = {
101+ let o = invoke(g, "nameStatus", [t], nil)
102+ if ($isInstanceOf(o, "String"))
103+ then {
104+ let D = o
105+ D
106+ }
107+ else unit
108+ }
109+ if (!(u))
101110 then $Tuple2(nil, unit)
102- else $Tuple2(nil, $Tuple5(u, v, w, y, A))
111+ else $Tuple2(nil, $Tuple5(w, x, y, A, C))
103112 })
104113
105114
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c) = valueOrErrorMessage(getString(b, c), ((("Can't read '" + c) + "' at address ") + toString(b)))
55
66
77 func d (e) = valueOrErrorMessage(addressFromString(e), (("Can't parse address from '" + e) + "'"))
88
99
1010 let f = "registry"
1111
1212 let g = d(a(this, f))
1313
1414 func h (i) = (i.caller == this)
1515
1616
1717 func j (k) = unit
1818
1919
2020 func l (i) = if (h(i))
2121 then unit
2222 else throw("Permission denied")
2323
2424
2525 func m (n) = {
2626 let o = invoke(g, "owner", [n], nil)
2727 if ($isInstanceOf(o, "String"))
2828 then {
2929 let p = o
3030 p
3131 }
3232 else unit
3333 }
3434
3535
3636 @Callable(i)
3737 func init (q) = valueOrElse(j([l(i)]), [StringEntry(f, q)])
3838
3939
4040
4141 @Callable(i)
4242 func addr (n) = $Tuple2(nil, m(n))
4343
4444
4545
4646 @Callable(i)
4747 func resolve (r) = {
4848 let s = if ((size(r) == 0))
4949 then throw("Name cannot be empty")
5050 else split(r, ".")
5151 let t = s[(size(s) - 1)]
5252 $Tuple2(nil, m(t))
5353 }
5454
5555
5656
5757 @Callable(i)
5858 func whoIs (r) = valueOrElse(j([if ((size(r) > 0))
5959 then unit
6060 else throw("Name cannot be empty")]), {
6161 let s = split(r, ".")
6262 let t = s[(size(s) - 1)]
6363 let u = {
64+ let o = invoke(g, "available", [t], nil)
65+ if ($isInstanceOf(o, "Boolean"))
66+ then {
67+ let v = o
68+ !(v)
69+ }
70+ else false
71+ }
72+ let w = {
6473 let o = invoke(g, "owner", [t], nil)
6574 if ($isInstanceOf(o, "String"))
6675 then {
6776 let p = o
6877 p
6978 }
7079 else unit
7180 }
72- let v = unit
73- let w = {
81+ let x = unit
82+ let y = {
7483 let o = invoke(g, "nameCreated", [t], nil)
75- if ($isInstanceOf(o, "Int"))
76- then {
77- let x = o
78- x
79- }
80- else unit
81- }
82- let y = {
83- let o = invoke(g, "nameExpires", [t], nil)
8484 if ($isInstanceOf(o, "Int"))
8585 then {
8686 let z = o
8787 z
8888 }
8989 else unit
9090 }
9191 let A = {
92- let o = invoke(g, "nameStatus", [t], nil)
93- if ($isInstanceOf(o, "String"))
92+ let o = invoke(g, "nameExpires", [t], nil)
93+ if ($isInstanceOf(o, "Int"))
9494 then {
9595 let B = o
9696 B
9797 }
9898 else unit
9999 }
100- if (!(isDefined(u)))
100+ let C = {
101+ let o = invoke(g, "nameStatus", [t], nil)
102+ if ($isInstanceOf(o, "String"))
103+ then {
104+ let D = o
105+ D
106+ }
107+ else unit
108+ }
109+ if (!(u))
101110 then $Tuple2(nil, unit)
102- else $Tuple2(nil, $Tuple5(u, v, w, y, A))
111+ else $Tuple2(nil, $Tuple5(w, x, y, A, C))
103112 })
104113
105114

github/deemru/w8io/169f3d6 
33.73 ms