tx · 7GGXH3syx5ANdEU857ZrWNcyTJzF3Viqdk7vEPpxNnk9

3N7NSGttZdtSoZanmmvFbtbKy81aH3qmCr1:  -0.01000000 Waves

2022.10.26 16:27 [2289448] smart account 3N7NSGttZdtSoZanmmvFbtbKy81aH3qmCr1 > SELF 0.00000000 Waves

{ "type": 13, "id": "7GGXH3syx5ANdEU857ZrWNcyTJzF3Viqdk7vEPpxNnk9", "fee": 1000000, "feeAssetId": null, "timestamp": 1666790906566, "version": 2, "chainId": 84, "sender": "3N7NSGttZdtSoZanmmvFbtbKy81aH3qmCr1", "senderPublicKey": "DnHWpL2JmrKWWVJgbwq4czBSA7NpfK3MyfsKzKLJbcro", "proofs": [ "4xt7G5gexBjfXcXLan3V2fMEo3b3EcVQe6e82ej36y5jKZFzN5y8GnoAZF2eS5Vy2wiDc36ZWDiVEv3vyYmngqCe" ], "script": "base64:AAIFAAAAAAAAABYIAhIFCgMICAESBAoCCAISAwoBCBIAAAAADwEAAAAQZ2V0U3RyaW5nT3JUaHJvdwAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADENhbid0IHJlYWQgJwUAAAADa2V5AgAAAA0nIGF0IGFkZHJlc3MgCQAEJQAAAAEFAAAAB2FkZHJlc3MBAAAAEWdldEludGVnZXJPclRocm93AAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGgAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMQ2FuJ3QgcmVhZCAnBQAAAANrZXkCAAAADScgYXQgYWRkcmVzcyAJAAQlAAAAAQUAAAAHYWRkcmVzcwEAAAATcGFyc2VBZGRyZXNzT3JUaHJvdwAAAAEAAAAMbWF5YmV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TWVzc2FnZQAAAAIJAAPsAAAAAQUAAAAHYXNzZXRJZAIAAAANSW52YWxpZCBhc3NldAMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAAABCQAAAgAAAAECAAAAGUluY29ycmVjdCBhbW91bnQgb2YgYXNzZXQDCQEAAAAFaXNORlQAAAABBQAAAAVhc3NldAkAAAIAAAABAgAAABtBc3NldCBpbiBwYXltZW50IGlzIG5vdCBORlQEAAAACHRva2VuU3RyCQEAAAAQZ2V0U3RyaW5nT3JUaHJvdwAAAAIFAAAACXJlZ2lzdHJhcgkBAAAADmtleV9OYW1lX3Rva2VuAAAAAQgFAAAABWFzc2V0AAAABG5hbWUEAAAABXRva2VuCQABmwAAAAEFAAAACHRva2VuU3RyBAAAAAh0cmFuc2ZlcgkBAAAADG1ha2VUcmFuc2ZlcgAAAAIFAAAABmNhbGxlcgUAAAAFdG9rZW4DCQAAAAAAAAIFAAAACHRyYW5zZmVyBQAAAAh0cmFuc2ZlcgQAAAAMcmVnaXN0cmF0aW9uCQAD/AAAAAQFAAAACXJlZ2lzdHJhcgIAAAAHcmVjbGFpbQkABEwAAAACCAUAAAAFYXNzZXQAAAAEbmFtZQUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAADHJlZ2lzdHJhdGlvbgUAAAAMcmVnaXN0cmF0aW9uBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAADCfXd", "height": 2289448, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9k6Jx3Mi3YAZojXPtdhRdHGmRFrsjBcVZBo9H9rH8emE Next: HFz1cVTuPoARbUvRmhmZuSxWvz5e6xCWwY6GSwUC4qkz Diff:
OldNewDifferences
1010 func e (f) = valueOrErrorMessage(addressFromString(f), (("Can't parse address from '" + f) + "'"))
1111
1212
13-func g (h) = ("Reissued_" + h)
13+func g (h,i,j) = ((((h + "_") + i) + "_") + j)
1414
1515
16-let i = "meedusAddress"
16+func k (h) = g("Name", h, "token")
1717
18-let j = "registrarAddress"
1918
20-let k = "meedusInitTimestamp"
19+let l = "meedusAddress"
2120
22-let l = a(this, i)
21+let m = "registrarAddress"
2322
24-let m = e(l)
23+let n = "meedusInitTimestamp"
2524
26-let n = a(this, j)
25+let o = a(this, l)
2726
28-let o = e(n)
27+let p = e(o)
2928
30-let p = d(this, k)
29+let q = a(this, m)
3130
32-@Callable(q)
33-func init (l,n,p) = [StringEntry(i, l), StringEntry(j, n), IntegerEntry(k, p)]
31+let r = e(q)
32+
33+let s = d(this, n)
34+
35+func t (u) = if (if (if ((u.quantity != 1))
36+ then true
37+ else (u.issuer != p))
38+ then true
39+ else (u.decimals != 0))
40+ then true
41+ else (u.reissuable != false)
42+
43+
44+func v (b,u) = {
45+ let w = invoke(this, "transfer", [b, u], nil)
46+ if ($isInstanceOf(w, "Boolean"))
47+ then {
48+ let x = w
49+ x
50+ }
51+ else throw("Invalid result for transfer")
52+ }
53+
54+
55+@Callable(y)
56+func init (o,q,s) = [StringEntry(l, o), StringEntry(m, q), IntegerEntry(n, s)]
3457
3558
3659
37-@Callable(q)
38-func exchange () = {
39- let r = q.caller
40- let s = toString(r)
41- let t = q.payments[0]
42- let u = valueOrErrorMessage(t.assetId, "Asset cannot be WAVES")
43- let v = valueOrErrorMessage(assetInfo(u), "Invalid asset")
44- if ((t.amount != 1))
45- then throw("Incorrect amount of asset")
46- else if (if (if (if ((v.quantity != 1))
47- then true
48- else (v.issuer != m))
49- then true
50- else (v.decimals != 0))
51- then true
52- else (v.reissuable == true))
53- then throw("Asset in payment is not NFT")
54- else {
55- let w = invoke(o, "register", [v.name, s, p], nil)
56- if ((w == w))
57- then nil
58- else throw("Strict value is not equal to itself.")
59- }
60+@Callable(y)
61+func transfer (z,u) = {
62+ let b = e(z)
63+ $Tuple2([ScriptTransfer(b, 1, u)], true)
6064 }
6165
6266
6367
64-@Callable(q)
68+@Callable(y)
6569 func reserve (h) = {
66- let r = q.caller
67- if ((this != r))
70+ let A = y.caller
71+ let B = toString(A)
72+ if ((this != A))
6873 then throw("Only self call are allowed")
6974 else {
70- let x = invoke(o, "addReserve", [h], nil)
71- if ((x == x))
75+ let C = invoke(r, "register", [h, B, s], nil)
76+ if ((C == C))
7277 then nil
7378 else throw("Strict value is not equal to itself.")
7479 }
80+ }
81+
82+
83+
84+@Callable(y)
85+func exchange () = {
86+ let A = y.caller
87+ let B = toString(A)
88+ let D = y.payments[0]
89+ let E = valueOrErrorMessage(D.assetId, "Asset cannot be WAVES")
90+ let u = valueOrErrorMessage(assetInfo(E), "Invalid asset")
91+ if ((D.amount != 1))
92+ then throw("Incorrect amount of asset")
93+ else if (t(u))
94+ then throw("Asset in payment is not NFT")
95+ else {
96+ let F = a(r, k(u.name))
97+ let G = toBytes(F)
98+ let H = v(A, G)
99+ if ((H == H))
100+ then {
101+ let I = invoke(r, "reclaim", [u.name], nil)
102+ if ((I == I))
103+ then nil
104+ else throw("Strict value is not equal to itself.")
105+ }
106+ else throw("Strict value is not equal to itself.")
107+ }
75108 }
76109
77110
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 (b,c) = valueOrErrorMessage(getInteger(b, c), ((("Can't read '" + c) + "' at address ") + toString(b)))
88
99
1010 func e (f) = valueOrErrorMessage(addressFromString(f), (("Can't parse address from '" + f) + "'"))
1111
1212
13-func g (h) = ("Reissued_" + h)
13+func g (h,i,j) = ((((h + "_") + i) + "_") + j)
1414
1515
16-let i = "meedusAddress"
16+func k (h) = g("Name", h, "token")
1717
18-let j = "registrarAddress"
1918
20-let k = "meedusInitTimestamp"
19+let l = "meedusAddress"
2120
22-let l = a(this, i)
21+let m = "registrarAddress"
2322
24-let m = e(l)
23+let n = "meedusInitTimestamp"
2524
26-let n = a(this, j)
25+let o = a(this, l)
2726
28-let o = e(n)
27+let p = e(o)
2928
30-let p = d(this, k)
29+let q = a(this, m)
3130
32-@Callable(q)
33-func init (l,n,p) = [StringEntry(i, l), StringEntry(j, n), IntegerEntry(k, p)]
31+let r = e(q)
32+
33+let s = d(this, n)
34+
35+func t (u) = if (if (if ((u.quantity != 1))
36+ then true
37+ else (u.issuer != p))
38+ then true
39+ else (u.decimals != 0))
40+ then true
41+ else (u.reissuable != false)
42+
43+
44+func v (b,u) = {
45+ let w = invoke(this, "transfer", [b, u], nil)
46+ if ($isInstanceOf(w, "Boolean"))
47+ then {
48+ let x = w
49+ x
50+ }
51+ else throw("Invalid result for transfer")
52+ }
53+
54+
55+@Callable(y)
56+func init (o,q,s) = [StringEntry(l, o), StringEntry(m, q), IntegerEntry(n, s)]
3457
3558
3659
37-@Callable(q)
38-func exchange () = {
39- let r = q.caller
40- let s = toString(r)
41- let t = q.payments[0]
42- let u = valueOrErrorMessage(t.assetId, "Asset cannot be WAVES")
43- let v = valueOrErrorMessage(assetInfo(u), "Invalid asset")
44- if ((t.amount != 1))
45- then throw("Incorrect amount of asset")
46- else if (if (if (if ((v.quantity != 1))
47- then true
48- else (v.issuer != m))
49- then true
50- else (v.decimals != 0))
51- then true
52- else (v.reissuable == true))
53- then throw("Asset in payment is not NFT")
54- else {
55- let w = invoke(o, "register", [v.name, s, p], nil)
56- if ((w == w))
57- then nil
58- else throw("Strict value is not equal to itself.")
59- }
60+@Callable(y)
61+func transfer (z,u) = {
62+ let b = e(z)
63+ $Tuple2([ScriptTransfer(b, 1, u)], true)
6064 }
6165
6266
6367
64-@Callable(q)
68+@Callable(y)
6569 func reserve (h) = {
66- let r = q.caller
67- if ((this != r))
70+ let A = y.caller
71+ let B = toString(A)
72+ if ((this != A))
6873 then throw("Only self call are allowed")
6974 else {
70- let x = invoke(o, "addReserve", [h], nil)
71- if ((x == x))
75+ let C = invoke(r, "register", [h, B, s], nil)
76+ if ((C == C))
7277 then nil
7378 else throw("Strict value is not equal to itself.")
7479 }
80+ }
81+
82+
83+
84+@Callable(y)
85+func exchange () = {
86+ let A = y.caller
87+ let B = toString(A)
88+ let D = y.payments[0]
89+ let E = valueOrErrorMessage(D.assetId, "Asset cannot be WAVES")
90+ let u = valueOrErrorMessage(assetInfo(E), "Invalid asset")
91+ if ((D.amount != 1))
92+ then throw("Incorrect amount of asset")
93+ else if (t(u))
94+ then throw("Asset in payment is not NFT")
95+ else {
96+ let F = a(r, k(u.name))
97+ let G = toBytes(F)
98+ let H = v(A, G)
99+ if ((H == H))
100+ then {
101+ let I = invoke(r, "reclaim", [u.name], nil)
102+ if ((I == I))
103+ then nil
104+ else throw("Strict value is not equal to itself.")
105+ }
106+ else throw("Strict value is not equal to itself.")
107+ }
75108 }
76109
77110

github/deemru/w8io/026f985 
31.74 ms