tx · 6vbnn12hkNxs8gd6kmdt7eiR3QS9zu9JtT8FiQ4cBoJf

3N4vqUXWw8tf23LDWDbSEpJZH6dent3ETFu:  -0.04000000 Waves

2022.01.14 04:53 [1877990] smart account 3N4vqUXWw8tf23LDWDbSEpJZH6dent3ETFu > SELF 0.00000000 Waves

{ "type": 13, "id": "6vbnn12hkNxs8gd6kmdt7eiR3QS9zu9JtT8FiQ4cBoJf", "fee": 4000000, "feeAssetId": null, "timestamp": 1642125250844, "version": 2, "chainId": 84, "sender": "3N4vqUXWw8tf23LDWDbSEpJZH6dent3ETFu", "senderPublicKey": "D4v2S9mjah7eEEmuQVBNd4WipC3scs8V4PjuDBweWatE", "proofs": [ "4y9qLZs518PoTHmQjyLmdFu6LQtKQSRRmpN3XpBYiZgKbmQiDzf1T8Tn4mioNPW1ZSrfz9aapaEQCdEW1FF1NxQ7" ], "script": "base64:AAIFAAAAAAAABP4IAhIECgIICBIECgIICBIECgIICBIECgIICBoICgFBEgN4eTIaCAoBQhIDeHkzGgsKAUMSBnh5MUtleRoLCgFEEgZ4eTJLZXkaCwoBRRIGeHkzS2V5GgsKAUYSBnh5VmFsMRoMCgFHEgckbWF0Y2gwGgsKAUgSBnh5VmFsMhoLCgFJEgZ4eVZhbDMaEAoBShILZ2V0WHlSZXR1cm4aBwoBSxICeHkaEAoBTBILJHQwMTUyMDE1MzUaCgoBTRIFZ2V0WHkaCAoBThIDeHlnGg4KAU8SCWNoZWNrTGlzdBoQCgFQEgskdDAxNjUxMTY3MhoLCgFREgZnZW5TdHIaEwoBUhIOY2hlY2tGb3JFdm9sdmUaEAoBUxILJHQwMjMxOTIzNDAaBwoBVBICcDEaBwoBVRICcDIaBwoBVhICcDMaBwoBVxICcDQaBwoBWBICcDUaBwoBWRICcDYaBwoBWhICcDcaCQoBYRIEQ09MUxoHCgJhQRIBcxoKCgJhQhIEeFN0choKCgJhQxIEeVN0choRCgJhRBILJHQwNjU5MjY2NTUaDQoCYUUSB3BhcnNlZFgaDQ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CQAFFAAAAAIJAARMAAAAAgUAAAACYW4JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAJhSQIAAAAIX2Fzc2V0SWQJAAJYAAAAAQUAAAACYUsJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAJhSQIAAAAGX2Fzc2V0BQAAAAJhbQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAAAmFJAgAAAAZfb3duZXIFAAAAAXgJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAACYWQFAAAAAmFJCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAF4AAAAAAAAAAABCQACWQAAAAEFAAAAAmFvBQAAAANuaWwFAAAAAmFJAAAAAASNJMM=", "height": 1877990, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EnvJ8yPgKchVFqHeu83hG6pq3jZdTXQZJy3mJGv47KPq Next: DYCjixxGUCw7BQgP9CsdYiE6rB7XyWiRbnaWJBBp5VZt Diff:
OldNewDifferences
219219 }
220220
221221
222+
223+@Callable(aq)
224+func finalizeSale (ao,x) = {
225+ let aw = {
226+ let G = assetInfo(fromBase58String(ao))
227+ if ($isInstanceOf(G, "Asset"))
228+ then {
229+ let ax = G
230+ ax
231+ }
232+ else throw("Asset not found")
233+ }
234+ let al = aw.name
235+ let ay = split(al, ",")
236+ let az = split(ay[1], " ")
237+ let j = {
238+ let G = ay[0]
239+ if ($isInstanceOf(G, "String"))
240+ then {
241+ let aA = G
242+ valueOrErrorMessage(parseInt(aA), "Could not parse 'x'")
243+ }
244+ else throw("'x' not found")
245+ }
246+ let k = {
247+ let G = az[0]
248+ if ($isInstanceOf(G, "String"))
249+ then {
250+ let aA = G
251+ valueOrErrorMessage(parseInt(aA), "Could not parse 'y'")
252+ }
253+ else throw("'y' not found")
254+ }
255+ let l = {
256+ let G = az[2]
257+ if ($isInstanceOf(G, "String"))
258+ then {
259+ let aA = G
260+ valueOrErrorMessage(parseInt(aA), "Could not parse 'gen'")
261+ }
262+ else throw("'gen' not found")
263+ }
264+ let aB = toString(j)
265+ let aC = toString(k)
266+ let Q = toString(l)
267+ let aD = M($Tuple3(j, k, l), x)
268+ let aE = aD._1
269+ let aF = aD._2
270+ let aG = aD._3
271+ let aH = nil
272+ if ((aG == l))
273+ then {
274+ let aI = ((((aB + ",") + aC) + ",") + Q)
275+ $Tuple2([StringEntry((aI + "_owner"), x), StringEntry((("sale_" + ao) + "_originalOwner"), ""), IntegerEntry((("sale_" + ao) + "_amount"), 0)], aI)
276+ }
277+ else {
278+ let ad = toBase58String(aq.transactionId)
279+ let aJ = ac(aB, aC, x, ad)
280+ let an = aJ._1
281+ let aK = aJ._2
282+ let am = aJ._3
283+ let ap = aJ._4
284+ let aI = ap
285+ $Tuple2([an, StringEntry((aI + "_assetId"), toBase58String(aK)), StringEntry((aI + "_asset"), am), StringEntry((aI + "_owner"), x), StringEntry(ad, aI), ScriptTransfer(Address(fromBase58String(x)), 1, fromBase58String(ao))], aI)
286+ }
287+ }
288+
289+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1024
55
66 let b = 1024
77
88 let c = "https://nft.gridgang.io/"
99
1010 let d = true
1111
1212 let e = base58'GUHw1jkstNWTs9SX1KM3pMtq9HXjupvxiTd1urNhNoyY'
1313
1414 let f = addressFromPublicKey(e)
1515
1616 func g (h) = {
1717 let i = h
1818 let j = i._1
1919 let k = i._2
2020 let l = i._3
2121 let m = pow(2, 0, (l - 1), 0, 0, HALFUP)
2222 let n = $Tuple2((j - m), (k - m))
2323 let o = $Tuple2(j, (k - m))
2424 let p = $Tuple2((j + m), (k + m))
2525 let q = $Tuple2((j - m), k)
2626 let r = $Tuple2((j + m), k)
2727 let s = $Tuple2((j - m), (k + m))
2828 let t = $Tuple2(j, (k + m))
2929 let u = $Tuple2((j + m), (k + m))
3030 [$Tuple3(n, o, q), $Tuple3(o, p, r), $Tuple3(q, s, t), $Tuple3(r, t, u)]
3131 }
3232
3333
3434 func v (w,l,x) = {
3535 let y = w
3636 let z = y._1
3737 let A = y._2
3838 let B = y._3
3939 let C = (((((toString(z._1) + ",") + toString(z._2)) + ",") + l) + "_owner")
4040 let D = (((((toString(A._1) + ",") + toString(A._2)) + ",") + l) + "_owner")
4141 let E = (((((toString(B._1) + ",") + toString(B._2)) + ",") + l) + "_owner")
4242 let F = {
4343 let G = getString(this, C)
4444 if ($isInstanceOf(G, "Unit"))
4545 then "unset"
4646 else if ($isInstanceOf(G, "String"))
4747 then {
4848 let j = G
4949 j
5050 }
5151 else throw("Match error")
5252 }
5353 let H = {
5454 let G = getString(this, D)
5555 if ($isInstanceOf(G, "Unit"))
5656 then "unset"
5757 else if ($isInstanceOf(G, "String"))
5858 then {
5959 let j = G
6060 j
6161 }
6262 else throw("Match error")
6363 }
6464 let I = {
6565 let G = getString(this, E)
6666 if ($isInstanceOf(G, "Unit"))
6767 then "unset"
6868 else if ($isInstanceOf(G, "String"))
6969 then {
7070 let j = G
7171 j
7272 }
7373 else throw("Match error")
7474 }
7575 if (if ((F == x))
7676 then (H == x)
7777 else false)
7878 then (I == x)
7979 else false
8080 }
8181
8282
8383 func J (K,l) = {
8484 let L = K
8585 let j = L._1
8686 let k = L._2
8787 $Tuple3(j, k, (l + 1))
8888 }
8989
9090
9191 func M (N,x) = {
9292 let O = g(N)
9393 let P = N
9494 let j = P._1
9595 let k = P._2
9696 let l = P._3
9797 let Q = toString(l)
9898 if (v(O[0], Q, x))
9999 then J(O[0]._1, l)
100100 else if (v(O[1], Q, x))
101101 then J(O[1]._1, l)
102102 else if (v(O[2], Q, x))
103103 then J(O[2]._1, l)
104104 else if (v(O[3], Q, x))
105105 then J(O[3]._1, l)
106106 else N
107107 }
108108
109109
110110 func R (N,x) = {
111111 let S = N
112112 let j = S._1
113113 let k = S._2
114114 let l = S._3
115115 let T = M(N, x)
116116 if ((T._3 == l))
117117 then T
118118 else {
119119 let U = M(T, x)
120120 if ((U._3 == T._3))
121121 then U
122122 else {
123123 let V = M(U, x)
124124 if ((V._3 == U._3))
125125 then V
126126 else {
127127 let W = M(V, x)
128128 if ((W._3 == V._3))
129129 then W
130130 else {
131131 let X = M(W, x)
132132 if ((X._3 == W._3))
133133 then X
134134 else {
135135 let Y = M(X, x)
136136 if ((Y._3 == X._3))
137137 then Y
138138 else {
139139 let Z = M(Y, x)
140140 if ((Z._3 == Y._3))
141141 then Z
142142 else {
143143 let aa = M(Z, x)
144144 if ((aa._3 == Z._3))
145145 then aa
146146 else {
147147 let ab = M(aa, x)
148148 if ((ab._3 == aa._3))
149149 then ab
150150 else M(M(ab, x), x)
151151 }
152152 }
153153 }
154154 }
155155 }
156156 }
157157 }
158158 }
159159 }
160160
161161
162162 func ac (j,k,x,ad) = {
163163 let ae = M($Tuple3(parseIntValue(j), parseIntValue(k), 1), x)
164164 let af = ae._1
165165 let ag = ae._2
166166 let ah = ae._3
167167 let ai = toString(af)
168168 let aj = toString(ag)
169169 let ak = toString(ah)
170170 let al = ((ai + ",") + aj)
171171 let am = ((c + ad) + ".png")
172172 let an = Issue(((al + " Gen ") + ak), am, 1, 0, false)
173173 let ao = calculateAssetId(an)
174174 let l = ak
175175 let ap = ((al + ",") + l)
176176 $Tuple4(an, ao, am, ap)
177177 }
178178
179179
180180 @Callable(aq)
181181 func purchase (j,k) = {
182182 let x = toBase58String(aq.caller.bytes)
183183 let ad = toBase58String(aq.transactionId)
184184 let ar = ac(j, k, x, ad)
185185 let an = ar._1
186186 let ao = ar._2
187187 let am = ar._3
188188 let ap = ar._4
189189 [an, StringEntry((ap + "_assetId"), toBase58String(ao)), StringEntry((ap + "_asset"), am), StringEntry((ap + "_owner"), x), StringEntry(ad, ap), ScriptTransfer(aq.caller, 1, ao)]
190190 }
191191
192192
193193
194194 @Callable(aq)
195195 func autoBuy (j,k) = {
196196 let x = toBase58String(f.bytes)
197197 let ad = toBase58String(aq.transactionId)
198198 let as = ac(j, k, x, ad)
199199 let an = as._1
200200 let ao = as._2
201201 let am = as._3
202202 let ap = as._4
203203 let at = toBase58String(ao)
204204 let au = invoke(f, "addOwnerAndAmount", [x, at, "2"], [AttachedPayment(unit, 1000000)])
205205 if ((au == au))
206206 then [an, StringEntry((ap + "_assetId"), at), StringEntry((ap + "_asset"), am), StringEntry((ap + "_owner"), x), StringEntry((("sale_" + at) + "_originalOwner"), x), IntegerEntry((("sale_" + at) + "_amount"), 2), StringEntry(ad, ap), ScriptTransfer(f, 1, ao)]
207207 else throw("Strict value is not equal to itself.")
208208 }
209209
210210
211211
212212 @Callable(aq)
213213 func putForSale (ao,av) = {
214214 let x = toBase58String(aq.caller.bytes)
215215 let au = invoke(f, "addOwnerAndAmount", [x, ao, av], [AttachedPayment(unit, 1000000)])
216216 if ((au == au))
217217 then [StringEntry((("sale_" + ao) + "_originalOwner"), x), StringEntry((("sale_" + ao) + "_amount"), av), ScriptTransfer(f, 1, fromBase58String(ao))]
218218 else throw("Strict value is not equal to itself.")
219219 }
220220
221221
222+
223+@Callable(aq)
224+func finalizeSale (ao,x) = {
225+ let aw = {
226+ let G = assetInfo(fromBase58String(ao))
227+ if ($isInstanceOf(G, "Asset"))
228+ then {
229+ let ax = G
230+ ax
231+ }
232+ else throw("Asset not found")
233+ }
234+ let al = aw.name
235+ let ay = split(al, ",")
236+ let az = split(ay[1], " ")
237+ let j = {
238+ let G = ay[0]
239+ if ($isInstanceOf(G, "String"))
240+ then {
241+ let aA = G
242+ valueOrErrorMessage(parseInt(aA), "Could not parse 'x'")
243+ }
244+ else throw("'x' not found")
245+ }
246+ let k = {
247+ let G = az[0]
248+ if ($isInstanceOf(G, "String"))
249+ then {
250+ let aA = G
251+ valueOrErrorMessage(parseInt(aA), "Could not parse 'y'")
252+ }
253+ else throw("'y' not found")
254+ }
255+ let l = {
256+ let G = az[2]
257+ if ($isInstanceOf(G, "String"))
258+ then {
259+ let aA = G
260+ valueOrErrorMessage(parseInt(aA), "Could not parse 'gen'")
261+ }
262+ else throw("'gen' not found")
263+ }
264+ let aB = toString(j)
265+ let aC = toString(k)
266+ let Q = toString(l)
267+ let aD = M($Tuple3(j, k, l), x)
268+ let aE = aD._1
269+ let aF = aD._2
270+ let aG = aD._3
271+ let aH = nil
272+ if ((aG == l))
273+ then {
274+ let aI = ((((aB + ",") + aC) + ",") + Q)
275+ $Tuple2([StringEntry((aI + "_owner"), x), StringEntry((("sale_" + ao) + "_originalOwner"), ""), IntegerEntry((("sale_" + ao) + "_amount"), 0)], aI)
276+ }
277+ else {
278+ let ad = toBase58String(aq.transactionId)
279+ let aJ = ac(aB, aC, x, ad)
280+ let an = aJ._1
281+ let aK = aJ._2
282+ let am = aJ._3
283+ let ap = aJ._4
284+ let aI = ap
285+ $Tuple2([an, StringEntry((aI + "_assetId"), toBase58String(aK)), StringEntry((aI + "_asset"), am), StringEntry((aI + "_owner"), x), StringEntry(ad, aI), ScriptTransfer(Address(fromBase58String(x)), 1, fromBase58String(ao))], aI)
286+ }
287+ }
288+
289+

github/deemru/w8io/169f3d6 
58.21 ms