tx · 9tih9QUyoYcE4Upfv9Eq3z3T4d1EVnt1rEcgTy7GLCvX

3MwPsLy9F1mUQrdP37sCAKvHuE5HvPE674Y:  -0.04000000 Waves

2022.04.20 01:15 [2016027] smart account 3MwPsLy9F1mUQrdP37sCAKvHuE5HvPE674Y > SELF 0.00000000 Waves

{ "type": 13, "id": "9tih9QUyoYcE4Upfv9Eq3z3T4d1EVnt1rEcgTy7GLCvX", "fee": 4000000, "feeAssetId": null, "timestamp": 1650406564982, "version": 2, "chainId": 84, "sender": "3MwPsLy9F1mUQrdP37sCAKvHuE5HvPE674Y", "senderPublicKey": "AyAwWbMPM7a4VYkn1bhEBftC5WZgfvUXgrYDe98mvLsv", "proofs": [ "3dFkrWnnabaXdfMo3rj8s5SLXGVwwuftvAVC89FQTVmrwjFqSVUsQXqtyLBDaeVxazFK1uNVG2gXHb17wn81zPVQ" ], "script": "base64:AAIFAAAAAAAAABkIAhIFCgMICAESAwoBCBIECgIICBIDCgEIAAAACAAAAAAOZEFwcEFkZHJlc3NTdHICAAAAIzNON0o2bU1Na2pWVmlCUkV6OXk1M0ptY1g3cjdLWlJYUXBMAAAAAA1kQXBwUHVibGljS2V5AQAAACDgTQYFOGrUwRh8WaYap6j/gLstB4hjfa6yi718/WSaLAAAAAALZEFwcEFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAADWRBcHBQdWJsaWNLZXkAAAAAEmhvbGRpbmdzQWRkcmVzc1N0cgIAAAAjM013UHNMeTlGMW1VUXJkUDM3c0NBS3ZIdUU1SHZQRTY3NFkAAAAAEWhvbGRpbmdzUHVibGljS2V5AQAAACCUHPJXjFSZKhe4nfSREpS677760EMCVtx/1OcRvCWqHQAAAAAPaG9sZGluZ3NBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAABFob2xkaW5nc1B1YmxpY0tleQAAAAAPdHJhbnNmZXJDb3N0UGN0AAAAAAAAAAAyAQAAAAhidX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AAAAAAAYQAAAAAAAAAAYgAAAAAAAAAAYwAAAAAAAAAAZAAAAAAAAAAAZQAAAAAAAAAAZgAAAAAAAAAAZwAAAAAAAAAAaAAAAAAAAAAAaQAAAAAAAAAAagAAAAAAAAAAawAAAAAAAAAAbAAAAAAAAAAAbQAAAAAAAAAAbgAAAAAAAAAAbwAAAAAAAAAAcAAAAAAAAAAAcQAAAAAAAAAAcgAAAAAAAAAAcwAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAADAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkGCQAAAAAAAAIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAD2hvbGRpbmdzQWRkcmVzcwYJAAAAAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQUAAAALZEFwcEFkZHJlc3M8KSEV", "height": 2016027, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gm8JB9YSrucif8a1X7rGkWvFp4WvTpU4yStdyxKeenVr Next: 5JuRprkaNi8XDMkwvBM7yyEs7nvg5tRPGNMRCBi8WaYQ Diff:
OldNewDifferences
1515
1616 let g = 50
1717
18-@Callable(h)
19-func addOwnerAndAmount (i,j,k) = [StringEntry((("sale_" + j) + "_originalOwner"), i), IntegerEntry((("sale_" + j) + "_amount"), k)]
18+func h (i,j) = {
19+ let k = {
20+ let l = j
21+ if ($isInstanceOf(l, "Unit"))
22+ then "unset"
23+ else if ($isInstanceOf(l, "String"))
24+ then {
25+ let m = l
26+ m
27+ }
28+ else throw("Match error")
29+ }
30+ if ((k == "unset"))
31+ then i
32+ else {
33+ let n = {
34+ let l = getString(this, (k + "_assetId"))
35+ if ($isInstanceOf(l, "Unit"))
36+ then "unset"
37+ else if ($isInstanceOf(l, "String"))
38+ then {
39+ let m = l
40+ m
41+ }
42+ else throw("Match error")
43+ }
44+ if ((n == "unset"))
45+ then i
46+ else (i ++ [Burn(fromBase58String(n), 1)])
47+ }
48+ }
49+
50+
51+@Callable(o)
52+func addOwnerAndAmount (p,n,q) = [StringEntry((("sale_" + n) + "_originalOwner"), p), IntegerEntry((("sale_" + n) + "_amount"), q)]
2053
2154
2255
23-@Callable(h)
24-func revokeForSale (j) = {
25- let l = toBase58String(h.caller.bytes)
26- let i = {
27- let m = getString(this, (("sale_" + j) + "_originalOwner"))
28- if ($isInstanceOf(m, "Unit"))
56+@Callable(o)
57+func revokeForSale (n) = {
58+ let r = toBase58String(o.caller.bytes)
59+ let p = {
60+ let l = getString(this, (("sale_" + n) + "_originalOwner"))
61+ if ($isInstanceOf(l, "Unit"))
2962 then "unset"
30- else if ($isInstanceOf(m, "String"))
63+ else if ($isInstanceOf(l, "String"))
3164 then {
32- let n = m
33- n
65+ let s = l
66+ s
3467 }
3568 else throw("Match error")
3669 }
37- if ((l != i))
70+ if ((r != p))
3871 then throw("Owners do not match")
39- else [StringEntry((("sale_" + j) + "_originalOwner"), ""), IntegerEntry((("sale_" + j) + "_amount"), 0), ScriptTransfer(h.caller, 1, fromBase58String(j))]
72+ else [StringEntry((("sale_" + n) + "_originalOwner"), ""), IntegerEntry((("sale_" + n) + "_amount"), 0), ScriptTransfer(o.caller, 1, fromBase58String(n))]
4073 }
4174
4275
4376
44-@Callable(h)
45-func buyFromHoldings (j,o) = {
46- let i = {
47- let m = getString(this, (("sale_" + j) + "_originalOwner"))
48- if ($isInstanceOf(m, "Unit"))
77+@Callable(o)
78+func buyFromHoldings (n,t) = {
79+ let p = {
80+ let l = getString(this, (("sale_" + n) + "_originalOwner"))
81+ if ($isInstanceOf(l, "Unit"))
4982 then "unset"
50- else if ($isInstanceOf(m, "String"))
83+ else if ($isInstanceOf(l, "String"))
5184 then {
52- let n = m
53- n
85+ let s = l
86+ s
5487 }
5588 else throw("Match error")
5689 }
57- let p = valueOrElse(h.payments[0].amount, 0)
58- let k = {
59- let m = getInteger(this, (("sale_" + j) + "_amount"))
60- if ($isInstanceOf(m, "Unit"))
90+ let u = valueOrElse(o.payments[0].amount, 0)
91+ let q = {
92+ let l = getInteger(this, (("sale_" + n) + "_amount"))
93+ if ($isInstanceOf(l, "Unit"))
6194 then 0
62- else if ($isInstanceOf(m, "Int"))
95+ else if ($isInstanceOf(l, "Int"))
6396 then {
64- let n = m
65- n
97+ let s = l
98+ s
6699 }
67100 else throw("Match error")
68101 }
69- if (if ((i == "unset"))
102+ if (if ((p == "unset"))
70103 then true
71- else (i == ""))
104+ else (p == ""))
72105 then throw("Original owner not found ")
73- else if (if ((k == 0))
106+ else if (if ((q == 0))
74107 then true
75- else (k > p))
76- then throw(((("Payment and amount do not match. This assets costs " + toString(k)) + "but you sent ") + toString(p)))
108+ else (q > u))
109+ then throw(((("Payment and amount do not match. This assets costs " + toString(q)) + "but you sent ") + toString(u)))
77110 else {
78- let l = toBase58String(h.caller.bytes)
79- let q = invoke(c, "finalizeSale", [j, l, o], [AttachedPayment(unit, 0)])
80- if ((q == q))
111+ let r = toBase58String(o.caller.bytes)
112+ let v = invoke(c, "finalizeSale", [n, r, t], [AttachedPayment(unit, 0)])
113+ if ((v == v))
81114 then {
82- let r = [ScriptTransfer(h.caller, 1, fromBase58String(j)), StringEntry((("sale_" + j) + "_originalOwner"), ""), IntegerEntry((("sale_" + j) + "_amount"), 0)]
83- if ((i != d))
115+ let w = [ScriptTransfer(o.caller, 1, fromBase58String(n)), StringEntry((("sale_" + n) + "_originalOwner"), ""), IntegerEntry((("sale_" + n) + "_amount"), 0)]
116+ if ((p != d))
84117 then {
85- let s = (p / g)
86- let t = (p - s)
87- let u = Address(fromBase58String(i))
88- (r ++ [ScriptTransfer(u, t, unit)])
118+ let x = (u / g)
119+ let y = (u - x)
120+ let z = Address(fromBase58String(p))
121+ (w ++ [ScriptTransfer(z, y, unit)])
89122 }
90- else r
123+ else w
91124 }
92125 else throw("Strict value is not equal to itself.")
93126 }
95128
96129
97130
98-@Callable(h)
99-func burnTest (j) = [Burn(fromBase58String(j), 1)]
131+@Callable(o)
132+func burnSquares (A) = {
133+ let r = toBase58String(o.caller.bytes)
134+ if (if ((r != d))
135+ then (r != a)
136+ else false)
137+ then throw("This can only be triggering internally")
138+ else {
139+ let B = split(A, "|")
140+ let C = size(B)
141+ let D = nil
142+ func E (F,G) = if ((G >= C))
143+ then F
144+ else h(F, B[G])
145+
146+ func H (F,G) = if ((G >= C))
147+ then F
148+ else throw("List size exceeds 115")
149+
150+ H(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(D, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110), 111), 112), 113), 114), 115)
151+ }
152+ }
100153
101154
102-@Verifier(v)
103-func w () = if (if (sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey))
155+@Verifier(I)
156+func J () = if (if (sigVerify(I.bodyBytes, I.proofs[0], I.senderPublicKey))
104157 then true
105- else (addressFromPublicKey(v.senderPublicKey) == f))
158+ else (addressFromPublicKey(I.senderPublicKey) == f))
106159 then true
107- else (addressFromPublicKey(v.senderPublicKey) == c)
160+ else (addressFromPublicKey(I.senderPublicKey) == c)
108161
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL"
55
66 let b = base58'G6aSmaqLJ4p7jzm7BnQcZuqa2NRRLVtzqdYNjYErnEZZ'
77
88 let c = addressFromPublicKey(b)
99
1010 let d = "3MwPsLy9F1mUQrdP37sCAKvHuE5HvPE674Y"
1111
1212 let e = base58'AyAwWbMPM7a4VYkn1bhEBftC5WZgfvUXgrYDe98mvLsv'
1313
1414 let f = addressFromPublicKey(e)
1515
1616 let g = 50
1717
18-@Callable(h)
19-func addOwnerAndAmount (i,j,k) = [StringEntry((("sale_" + j) + "_originalOwner"), i), IntegerEntry((("sale_" + j) + "_amount"), k)]
18+func h (i,j) = {
19+ let k = {
20+ let l = j
21+ if ($isInstanceOf(l, "Unit"))
22+ then "unset"
23+ else if ($isInstanceOf(l, "String"))
24+ then {
25+ let m = l
26+ m
27+ }
28+ else throw("Match error")
29+ }
30+ if ((k == "unset"))
31+ then i
32+ else {
33+ let n = {
34+ let l = getString(this, (k + "_assetId"))
35+ if ($isInstanceOf(l, "Unit"))
36+ then "unset"
37+ else if ($isInstanceOf(l, "String"))
38+ then {
39+ let m = l
40+ m
41+ }
42+ else throw("Match error")
43+ }
44+ if ((n == "unset"))
45+ then i
46+ else (i ++ [Burn(fromBase58String(n), 1)])
47+ }
48+ }
49+
50+
51+@Callable(o)
52+func addOwnerAndAmount (p,n,q) = [StringEntry((("sale_" + n) + "_originalOwner"), p), IntegerEntry((("sale_" + n) + "_amount"), q)]
2053
2154
2255
23-@Callable(h)
24-func revokeForSale (j) = {
25- let l = toBase58String(h.caller.bytes)
26- let i = {
27- let m = getString(this, (("sale_" + j) + "_originalOwner"))
28- if ($isInstanceOf(m, "Unit"))
56+@Callable(o)
57+func revokeForSale (n) = {
58+ let r = toBase58String(o.caller.bytes)
59+ let p = {
60+ let l = getString(this, (("sale_" + n) + "_originalOwner"))
61+ if ($isInstanceOf(l, "Unit"))
2962 then "unset"
30- else if ($isInstanceOf(m, "String"))
63+ else if ($isInstanceOf(l, "String"))
3164 then {
32- let n = m
33- n
65+ let s = l
66+ s
3467 }
3568 else throw("Match error")
3669 }
37- if ((l != i))
70+ if ((r != p))
3871 then throw("Owners do not match")
39- else [StringEntry((("sale_" + j) + "_originalOwner"), ""), IntegerEntry((("sale_" + j) + "_amount"), 0), ScriptTransfer(h.caller, 1, fromBase58String(j))]
72+ else [StringEntry((("sale_" + n) + "_originalOwner"), ""), IntegerEntry((("sale_" + n) + "_amount"), 0), ScriptTransfer(o.caller, 1, fromBase58String(n))]
4073 }
4174
4275
4376
44-@Callable(h)
45-func buyFromHoldings (j,o) = {
46- let i = {
47- let m = getString(this, (("sale_" + j) + "_originalOwner"))
48- if ($isInstanceOf(m, "Unit"))
77+@Callable(o)
78+func buyFromHoldings (n,t) = {
79+ let p = {
80+ let l = getString(this, (("sale_" + n) + "_originalOwner"))
81+ if ($isInstanceOf(l, "Unit"))
4982 then "unset"
50- else if ($isInstanceOf(m, "String"))
83+ else if ($isInstanceOf(l, "String"))
5184 then {
52- let n = m
53- n
85+ let s = l
86+ s
5487 }
5588 else throw("Match error")
5689 }
57- let p = valueOrElse(h.payments[0].amount, 0)
58- let k = {
59- let m = getInteger(this, (("sale_" + j) + "_amount"))
60- if ($isInstanceOf(m, "Unit"))
90+ let u = valueOrElse(o.payments[0].amount, 0)
91+ let q = {
92+ let l = getInteger(this, (("sale_" + n) + "_amount"))
93+ if ($isInstanceOf(l, "Unit"))
6194 then 0
62- else if ($isInstanceOf(m, "Int"))
95+ else if ($isInstanceOf(l, "Int"))
6396 then {
64- let n = m
65- n
97+ let s = l
98+ s
6699 }
67100 else throw("Match error")
68101 }
69- if (if ((i == "unset"))
102+ if (if ((p == "unset"))
70103 then true
71- else (i == ""))
104+ else (p == ""))
72105 then throw("Original owner not found ")
73- else if (if ((k == 0))
106+ else if (if ((q == 0))
74107 then true
75- else (k > p))
76- then throw(((("Payment and amount do not match. This assets costs " + toString(k)) + "but you sent ") + toString(p)))
108+ else (q > u))
109+ then throw(((("Payment and amount do not match. This assets costs " + toString(q)) + "but you sent ") + toString(u)))
77110 else {
78- let l = toBase58String(h.caller.bytes)
79- let q = invoke(c, "finalizeSale", [j, l, o], [AttachedPayment(unit, 0)])
80- if ((q == q))
111+ let r = toBase58String(o.caller.bytes)
112+ let v = invoke(c, "finalizeSale", [n, r, t], [AttachedPayment(unit, 0)])
113+ if ((v == v))
81114 then {
82- let r = [ScriptTransfer(h.caller, 1, fromBase58String(j)), StringEntry((("sale_" + j) + "_originalOwner"), ""), IntegerEntry((("sale_" + j) + "_amount"), 0)]
83- if ((i != d))
115+ let w = [ScriptTransfer(o.caller, 1, fromBase58String(n)), StringEntry((("sale_" + n) + "_originalOwner"), ""), IntegerEntry((("sale_" + n) + "_amount"), 0)]
116+ if ((p != d))
84117 then {
85- let s = (p / g)
86- let t = (p - s)
87- let u = Address(fromBase58String(i))
88- (r ++ [ScriptTransfer(u, t, unit)])
118+ let x = (u / g)
119+ let y = (u - x)
120+ let z = Address(fromBase58String(p))
121+ (w ++ [ScriptTransfer(z, y, unit)])
89122 }
90- else r
123+ else w
91124 }
92125 else throw("Strict value is not equal to itself.")
93126 }
94127 }
95128
96129
97130
98-@Callable(h)
99-func burnTest (j) = [Burn(fromBase58String(j), 1)]
131+@Callable(o)
132+func burnSquares (A) = {
133+ let r = toBase58String(o.caller.bytes)
134+ if (if ((r != d))
135+ then (r != a)
136+ else false)
137+ then throw("This can only be triggering internally")
138+ else {
139+ let B = split(A, "|")
140+ let C = size(B)
141+ let D = nil
142+ func E (F,G) = if ((G >= C))
143+ then F
144+ else h(F, B[G])
145+
146+ func H (F,G) = if ((G >= C))
147+ then F
148+ else throw("List size exceeds 115")
149+
150+ H(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(D, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110), 111), 112), 113), 114), 115)
151+ }
152+ }
100153
101154
102-@Verifier(v)
103-func w () = if (if (sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey))
155+@Verifier(I)
156+func J () = if (if (sigVerify(I.bodyBytes, I.proofs[0], I.senderPublicKey))
104157 then true
105- else (addressFromPublicKey(v.senderPublicKey) == f))
158+ else (addressFromPublicKey(I.senderPublicKey) == f))
106159 then true
107- else (addressFromPublicKey(v.senderPublicKey) == c)
160+ else (addressFromPublicKey(I.senderPublicKey) == c)
108161

github/deemru/w8io/169f3d6 
56.72 ms