tx · 7u6JvknCqMSsAD161gL4c18v3tdBK3N5qAryDTujh4qj

3Ms9YDMep25yKVDZmzP8PaG6vpZMyRN1kJp:  -0.01000000 Waves

2022.02.27 14:20 [1941947] smart account 3Ms9YDMep25yKVDZmzP8PaG6vpZMyRN1kJp > SELF 0.00000000 Waves

{ "type": 13, "id": "7u6JvknCqMSsAD161gL4c18v3tdBK3N5qAryDTujh4qj", "fee": 1000000, "feeAssetId": null, "timestamp": 1645960870275, "version": 2, "chainId": 84, "sender": "3Ms9YDMep25yKVDZmzP8PaG6vpZMyRN1kJp", "senderPublicKey": "DBFsF67y4W1PHwv8PvsfD9mctboYQZBGGNm7EwHckCgh", "proofs": [ "4TokY36hRLices5KWHyXV6EU9URxdeNZf1VbCW7FZtaUmMfFXExKQFJRLHDirRz4QdLVBwz3N1BGHN3xwCf6eke9" ], "script": "base64:AAIFAAAAAAAAABcIAhIDCgEIEgUKAwgICBIHCgUICAgICAAAAA0BAAAADWtleUNvbGxlY3Rpb24AAAACAAAABmNhbGxlcgAAAAxjb2xsZWN0aW9uSWQJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAC2NvbGxlY3Rpb25fBQAAAAxjb2xsZWN0aW9uSWQCAAAAAV8FAAAABmNhbGxlcgEAAAAaa2V5U3ViY29sbGVjdGlvbkNvbGxlY3Rpb24AAAADAAAABmNhbGxlcgAAAAxjb2xsZWN0aW9uSWQAAAAKY29sbGVjdGlvbgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAGXN1YmNvbGxlY3Rpb25fY29sbGVjdGlvbl8FAAAADGNvbGxlY3Rpb25JZAIAAAABXwUAAAAGY2FsbGVyAgAAAAFfBQAAAApjb2xsZWN0aW9uAQAAAAlrZXlPblNhbGUAAAACAAAABmNhbGxlcgAAAAxjb2xsZWN0aW9uSWQJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAC2FydF9vbnNhbGVfBQAAAAxjb2xsZWN0aW9uSWQC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sZXRlRW50cmllcwkBAAAAC2NvbGxlY3Rpb25zAAAABQUAAAAFYXJ0SWQFAAAAAWkFAAAACmNvbGxlY3Rpb24FAAAADXN1YmNvbGxlY3Rpb24FAAAABmNhbGxlcgAAAACpOnTM", "height": 1941947, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CXRkV1XGgyFCDjKmG8u9Nk916kAGuncogFMEx7P2LwrB Next: GSKmWSumBcLoFBGSxVgrpk3Y8aW4Z7SnRXKCiSWwCUiA Diff:
OldNewDifferences
44 func a (b,c) = ((("collection_" + c) + "_") + b)
55
66
7-func d (b,c) = ((("subcollection_" + c) + "_") + b)
7+func d (b,c,e) = ((((("subcollection_collection_" + c) + "_") + b) + "_") + e)
88
99
10-func e (b,c,f) = ((((("subcollection_collection_" + c) + "_") + b) + "_") + f)
10+func f (b,c) = ((("art_onsale_" + c) + "_") + b)
1111
1212
13-func g (b,c) = ((("art_onsale_" + c) + "_") + b)
13+let g = "sconexDapp"
1414
15+let h = "oracleKey"
1516
16-let h = "sconexDapp"
17-
18-let i = "oracleKey"
19-
20-func j (k) = {
21- let l = getString(this, k)
22- if ($isInstanceOf(l, "String"))
17+func i (j) = {
18+ let k = getString(this, j)
19+ if ($isInstanceOf(k, "String"))
2320 then {
24- let m = l
25- m
21+ let l = k
22+ l
2623 }
2724 else ""
2825 }
2926
3027
31-let n = j(i)
28+let m = i(h)
3229
33-let o = value(addressFromString(n))
30+let n = valueOrErrorMessage(addressFromString(m), "Collections dapp doesnt have oracle defined")
3431
35-let p = getStringValue(o, h)
32+let o = getStringValue(n, g)
3633
37-func q (k) = valueOrElse(getBoolean(addressFromStringValue(p), k), false)
34+func p (j) = valueOrElse(getBoolean(addressFromStringValue(o), j), false)
3835
3936
40-func r (s) = if ((s == addressFromString(p)))
37+func q (r) = if ((r == addressFromString(o)))
4138 then true
4239 else throw("Only the sconex dapp can invoke this")
4340
4441
45-func t (u,k) = valueOrElse(getString(u, k), "")
42+func s (t,j) = valueOrElse(getString(t, j), "")
4643
4744
48-func v (c,w,f,x,y) = if (if (r(w.caller))
45+func u (c,v,e,w,x) = if (if (q(v.caller))
4946 then true
50- else (w.caller == this))
51- then if ((f == ""))
47+ else (v.caller == this))
48+ then if ((e == ""))
5249 then throw("Collections can not be empty!")
53- else if ((x == ""))
54- then [StringEntry(a(y, c), f)]
55- else [StringEntry(a(y, c), f), StringEntry(e(y, c, f), x)]
50+ else if ((w == ""))
51+ then [StringEntry(a(x, c), e)]
52+ else [StringEntry(a(x, c), e), StringEntry(d(x, c, e), w)]
5653 else throw("Wrong invoker")
5754
5855
59-@Callable(w)
60-func initDapp (z) = if ((w.caller != this))
56+@Callable(v)
57+func initDapp (y) = if ((v.caller != this))
6158 then throw("You cannot do this action")
62- else if ((n != ""))
59+ else if ((m != ""))
6360 then throw("oracle already set, you can't override!")
64- else [StringEntry(i, z)]
61+ else [StringEntry(h, y)]
6562
6663
6764
68-@Callable(w)
69-func collectionProcess (f,x,y) = $Tuple2(v(toBase58String(w.transactionId), w, f, x, y), toBase58String(w.transactionId))
65+@Callable(v)
66+func collectionProcess (e,w,x) = $Tuple2(u(toBase58String(v.transactionId), v, e, w, x), toBase58String(v.transactionId))
7067
7168
7269
73-@Callable(w)
74-func updateCollection (c,A,B,C,f,x) = {
75- let b = toBase58String(w.caller.bytes)
76- let D = g(C, b)
77- if ((t(addressFromStringValue(p), ((("collection_" + C) + "_") + b)) != c))
78- then throw("This collection is not linked with the artwork")
79- else if (q(D))
80- then throw("Can not update collection from artwork for sale")
81- else {
82- let E = if (if ((A != f))
83- then true
84- else (B != x))
85- then [DeleteEntry(e(b, c, f))]
86- else nil
87- (E ++ v(c, w, f, x, b))
88- }
70+@Callable(v)
71+func updateCollection (z,A,B,e,w) = {
72+ let b = toBase58String(v.caller.bytes)
73+ let C = f(B, b)
74+ if (p(C))
75+ then throw("Can not update collection from artwork for sale")
76+ else {
77+ let D = if (if ((z != e))
78+ then true
79+ else (A != w))
80+ then [DeleteEntry(d(b, B, e))]
81+ else nil
82+ (D ++ u(B, v, e, w, b))
83+ }
8984 }
9085
9186
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c) = ((("collection_" + c) + "_") + b)
55
66
7-func d (b,c) = ((("subcollection_" + c) + "_") + b)
7+func d (b,c,e) = ((((("subcollection_collection_" + c) + "_") + b) + "_") + e)
88
99
10-func e (b,c,f) = ((((("subcollection_collection_" + c) + "_") + b) + "_") + f)
10+func f (b,c) = ((("art_onsale_" + c) + "_") + b)
1111
1212
13-func g (b,c) = ((("art_onsale_" + c) + "_") + b)
13+let g = "sconexDapp"
1414
15+let h = "oracleKey"
1516
16-let h = "sconexDapp"
17-
18-let i = "oracleKey"
19-
20-func j (k) = {
21- let l = getString(this, k)
22- if ($isInstanceOf(l, "String"))
17+func i (j) = {
18+ let k = getString(this, j)
19+ if ($isInstanceOf(k, "String"))
2320 then {
24- let m = l
25- m
21+ let l = k
22+ l
2623 }
2724 else ""
2825 }
2926
3027
31-let n = j(i)
28+let m = i(h)
3229
33-let o = value(addressFromString(n))
30+let n = valueOrErrorMessage(addressFromString(m), "Collections dapp doesnt have oracle defined")
3431
35-let p = getStringValue(o, h)
32+let o = getStringValue(n, g)
3633
37-func q (k) = valueOrElse(getBoolean(addressFromStringValue(p), k), false)
34+func p (j) = valueOrElse(getBoolean(addressFromStringValue(o), j), false)
3835
3936
40-func r (s) = if ((s == addressFromString(p)))
37+func q (r) = if ((r == addressFromString(o)))
4138 then true
4239 else throw("Only the sconex dapp can invoke this")
4340
4441
45-func t (u,k) = valueOrElse(getString(u, k), "")
42+func s (t,j) = valueOrElse(getString(t, j), "")
4643
4744
48-func v (c,w,f,x,y) = if (if (r(w.caller))
45+func u (c,v,e,w,x) = if (if (q(v.caller))
4946 then true
50- else (w.caller == this))
51- then if ((f == ""))
47+ else (v.caller == this))
48+ then if ((e == ""))
5249 then throw("Collections can not be empty!")
53- else if ((x == ""))
54- then [StringEntry(a(y, c), f)]
55- else [StringEntry(a(y, c), f), StringEntry(e(y, c, f), x)]
50+ else if ((w == ""))
51+ then [StringEntry(a(x, c), e)]
52+ else [StringEntry(a(x, c), e), StringEntry(d(x, c, e), w)]
5653 else throw("Wrong invoker")
5754
5855
59-@Callable(w)
60-func initDapp (z) = if ((w.caller != this))
56+@Callable(v)
57+func initDapp (y) = if ((v.caller != this))
6158 then throw("You cannot do this action")
62- else if ((n != ""))
59+ else if ((m != ""))
6360 then throw("oracle already set, you can't override!")
64- else [StringEntry(i, z)]
61+ else [StringEntry(h, y)]
6562
6663
6764
68-@Callable(w)
69-func collectionProcess (f,x,y) = $Tuple2(v(toBase58String(w.transactionId), w, f, x, y), toBase58String(w.transactionId))
65+@Callable(v)
66+func collectionProcess (e,w,x) = $Tuple2(u(toBase58String(v.transactionId), v, e, w, x), toBase58String(v.transactionId))
7067
7168
7269
73-@Callable(w)
74-func updateCollection (c,A,B,C,f,x) = {
75- let b = toBase58String(w.caller.bytes)
76- let D = g(C, b)
77- if ((t(addressFromStringValue(p), ((("collection_" + C) + "_") + b)) != c))
78- then throw("This collection is not linked with the artwork")
79- else if (q(D))
80- then throw("Can not update collection from artwork for sale")
81- else {
82- let E = if (if ((A != f))
83- then true
84- else (B != x))
85- then [DeleteEntry(e(b, c, f))]
86- else nil
87- (E ++ v(c, w, f, x, b))
88- }
70+@Callable(v)
71+func updateCollection (z,A,B,e,w) = {
72+ let b = toBase58String(v.caller.bytes)
73+ let C = f(B, b)
74+ if (p(C))
75+ then throw("Can not update collection from artwork for sale")
76+ else {
77+ let D = if (if ((z != e))
78+ then true
79+ else (A != w))
80+ then [DeleteEntry(d(b, B, e))]
81+ else nil
82+ (D ++ u(B, v, e, w, b))
83+ }
8984 }
9085
9186

github/deemru/w8io/169f3d6 
51.01 ms