tx · 6Dr21qBzTkXzyFZxtsfNaXWRgENG1nZGtP58oPHm5TXv 3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p: -0.01400000 Waves 2022.02.24 05:36 [1937159] smart account 3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p > SELF 0.00000000 Waves
{ "type": 13, "id": "6Dr21qBzTkXzyFZxtsfNaXWRgENG1nZGtP58oPHm5TXv", "fee": 1400000, "feeAssetId": null, "timestamp": 1645670201561, "version": 2, "chainId": 84, "sender": "3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p", "senderPublicKey": "Hh3eFP2XFetZSfTxQiM1Ps96f68zi8Zh5ghhCZdjgdFs", "proofs": [ "H93T8acRgEf46Yc3aqCaRGBdAD5Y9ZzJGGbCBFDsa2cBvkocWvrr9hBz8A2oqQkXYw4BuFsBoVxZRS9qWDSngjv" ], "script": "base64:AAIFAAAAAAAAADMIAhIECgIECBIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgYKBAgICAgAAAA1AAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAADGFydHdvcmtzRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkJ5bmZiWEMyS2FzdFV4aHVrY01VYUU1OEs5Y0JkQjlVWQAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNdDRSR01FeWpTV1lBb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MTE4Mjc2AAAAAl8xBAAAAAdhc3NldElkCAUAAAANJHQwMTgyMjExODI3NgAAAAJfMgQAAAAHYmlkRGF0YQgFAAAADSR0MDE4MjIxMTgyNzYAAAACXzMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAAZiaWRLZXkCAAAABV9PUEVOCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAAGYmlkS2V5AgAAAApfQ0FOQ0VMTEVECQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAAB2JpZERhdGECAAAAC19DQU5DRUxMRURfCQABpAAAAAEFAAAABGRhdGUCAAAAAV8FAAAAAmlkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAZjYWxsZXIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAApiaWREYXRhQXJyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAAAaElXug==", "height": 1937159, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4oXDru48RPaXCQZtC4YXVYkrqG53pQsXbwXn8gBXFctj Next: 9CVWPL3rJxdUrhyZPug5dEXRr3yMxpzvJRn7ibVB9Kp3 Diff:
Old | New | Differences | |
---|---|---|---|
82 | 82 | ||
83 | 83 | let S = R(("certification_fee_" + toBase58String(h))) | |
84 | 84 | ||
85 | - | func T (U) = if (!(t)) | |
86 | - | then throw(u) | |
87 | - | else $Tuple3(toBase58String(U.transactionId), toBase58String(U.caller.bytes), lastBlock.timestamp) | |
85 | + | func T (E) = ("artist_agent_" + E) | |
88 | 86 | ||
89 | 87 | ||
90 | - | func V (U) = if ((size(U.payments) == 0)) | |
88 | + | func U (E) = ("artist_agent_secondary" + E) | |
89 | + | ||
90 | + | ||
91 | + | func V (W) = if (!(t)) | |
92 | + | then throw(u) | |
93 | + | else $Tuple3(toBase58String(W.transactionId), toBase58String(W.caller.bytes), lastBlock.timestamp) | |
94 | + | ||
95 | + | ||
96 | + | func X (W) = if ((size(W.payments) == 0)) | |
91 | 97 | then throw("No payment attached") | |
92 | 98 | else { | |
93 | - | let | |
94 | - | let | |
95 | - | $Tuple2( | |
99 | + | let Y = value(W.payments[0]) | |
100 | + | let Z = value(Y.amount) | |
101 | + | $Tuple2(Y, Z) | |
96 | 102 | } | |
97 | 103 | ||
98 | 104 | ||
99 | - | func | |
100 | - | then ( | |
105 | + | func aa (ab) = if (if (if ((ab.quantity == 1)) | |
106 | + | then (ab.decimals == 0) | |
101 | 107 | else false) | |
102 | - | then ( | |
108 | + | then (ab.reissuable == false) | |
103 | 109 | else false) | |
104 | - | then ( | |
110 | + | then (ab.issuer == d) | |
105 | 111 | else false | |
106 | 112 | ||
107 | 113 | ||
108 | - | func | |
109 | - | let | |
110 | - | | |
114 | + | func ac (I) = { | |
115 | + | let ab = value(assetInfo(I)) | |
116 | + | aa(ab) | |
111 | 117 | } | |
112 | 118 | ||
113 | 119 | ||
114 | - | func | |
115 | - | then ( | |
120 | + | func ad (ae) = if (if (if (if ((ae != toBase58String(h))) | |
121 | + | then (ae != toBase58String(j)) | |
116 | 122 | else false) | |
117 | - | then ( | |
123 | + | then (ae != "WAVES") | |
118 | 124 | else false) | |
119 | - | then ( | |
125 | + | then (ae != toBase58String(i)) | |
120 | 126 | else false) | |
121 | 127 | then false | |
122 | 128 | else true | |
123 | 129 | ||
124 | 130 | ||
125 | - | func | |
131 | + | func af (ae) = if ((ae == "WAVES")) | |
126 | 132 | then unit | |
127 | - | else fromBase58String( | |
133 | + | else fromBase58String(ae) | |
128 | 134 | ||
129 | 135 | ||
130 | - | func | |
131 | - | let P = z(("current_owner_on_dapp_" + | |
136 | + | func ag (ah) = { | |
137 | + | let P = z(("current_owner_on_dapp_" + ah)) | |
132 | 138 | if ((size(P) == 0)) | |
133 | 139 | then throw("NFT not found") | |
134 | 140 | else { | |
135 | - | let | |
136 | - | if (( | |
141 | + | let ai = z(((("sale2nd_status_" + P) + "_") + ah)) | |
142 | + | if ((ai != "OPEN")) | |
137 | 143 | then throw("NFT not for sale") | |
138 | 144 | else P | |
139 | 145 | } | |
140 | 146 | } | |
141 | 147 | ||
142 | 148 | ||
143 | - | func | |
144 | - | let | |
145 | - | if (( | |
149 | + | func aj (x) = { | |
150 | + | let ak = z((x + "_OPEN")) | |
151 | + | if ((ak == "")) | |
146 | 152 | then throw("Offer not found") | |
147 | 153 | else { | |
148 | - | let | |
149 | - | let | |
150 | - | $Tuple3( | |
154 | + | let al = split(ak, "_") | |
155 | + | let ae = af(al[2]) | |
156 | + | $Tuple3(al, ae, ak) | |
151 | 157 | } | |
152 | 158 | } | |
153 | 159 | ||
154 | 160 | ||
155 | - | func | |
156 | - | then ( | |
161 | + | func am (an) = if ((an != p)) | |
162 | + | then (an != q) | |
157 | 163 | else false | |
158 | 164 | ||
159 | 165 | ||
160 | - | func | |
161 | - | let | |
162 | - | if ( | |
166 | + | func ao (C,I) = { | |
167 | + | let an = y(G(C, I)) | |
168 | + | if (am(an)) | |
163 | 169 | then true | |
164 | - | else throw(("Original Artwork flagged as " + | |
170 | + | else throw(("Original Artwork flagged as " + an)) | |
165 | 171 | } | |
166 | 172 | ||
167 | 173 | ||
168 | - | func | |
169 | - | let | |
170 | - | if (containsElement([n, o], | |
171 | - | then throw(("Original Artist " + | |
174 | + | func ap (C) = { | |
175 | + | let aq = w(B(C)) | |
176 | + | if (containsElement([n, o], aq)) | |
177 | + | then throw(("Original Artist " + aq)) | |
172 | 178 | else true | |
173 | 179 | } | |
174 | 180 | ||
175 | 181 | ||
176 | - | func | |
177 | - | let | |
178 | - | let | |
179 | - | if (if (!( | |
180 | - | then !( | |
182 | + | func ar (ae) = { | |
183 | + | let as = split(y(H(ae)), "_") | |
184 | + | let at = y(D(as[6], as[5])) | |
185 | + | if (if (!(ao(as[6], as[5]))) | |
186 | + | then !(ap(as[6])) | |
181 | 187 | else false) | |
182 | - | then $Tuple4(false, | |
183 | - | else $Tuple4(true, | |
188 | + | then $Tuple4(false, as[5], as[6], at) | |
189 | + | else $Tuple4(true, as[5], as[6], at) | |
184 | 190 | } | |
185 | 191 | ||
186 | 192 | ||
187 | - | func | |
188 | - | let | |
189 | - | if ((size( | |
193 | + | func au (F,M) = { | |
194 | + | let at = y(D(M, F)) | |
195 | + | if ((size(at) == 0)) | |
190 | 196 | then throw("Artwork not found on SIGN Art") | |
191 | - | else if (if (!( | |
192 | - | then !( | |
197 | + | else if (if (!(ao(M, F))) | |
198 | + | then !(ap(M)) | |
193 | 199 | else false) | |
194 | 200 | then false | |
195 | 201 | else true | |
196 | 202 | } | |
197 | 203 | ||
198 | 204 | ||
199 | - | func at (X,ac,af,M,P,K) = { | |
200 | - | let au = fraction(X, l, 100) | |
201 | - | let av = fraction(X, m, 100) | |
202 | - | let aw = (X - (au + av)) | |
203 | - | let ax = ScriptTransfer(Address(fromBase58String(e)), au, ac) | |
204 | - | let ay = ScriptTransfer(Address(fromBase58String(M)), av, ac) | |
205 | - | let az = ScriptTransfer(Address(fromBase58String(P)), aw, ac) | |
206 | - | let aA = ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(af)) | |
207 | - | $Tuple4(ax, ay, az, aA) | |
205 | + | func av (Z,ae,ah,M,P,K) = { | |
206 | + | let aw = valueOrElse(getString(f, T(M)), e) | |
207 | + | let ax = valueOrElse(getInteger(f, U(M)), 0) | |
208 | + | let ay = fraction(Z, l, 100) | |
209 | + | let az = fraction(Z, m, 100) | |
210 | + | let aA = (Z - (ay + az)) | |
211 | + | let aB = if (if ((aw != e)) | |
212 | + | then (ax > 0) | |
213 | + | else false) | |
214 | + | then fraction(Z, ax, 100) | |
215 | + | else 0 | |
216 | + | let aC = ScriptTransfer(Address(fromBase58String(e)), (ay - aB), ae) | |
217 | + | let aD = ScriptTransfer(Address(fromBase58String(aw)), aB, ae) | |
218 | + | let aE = ScriptTransfer(Address(fromBase58String(M)), az, ae) | |
219 | + | let aF = ScriptTransfer(Address(fromBase58String(P)), aA, ae) | |
220 | + | let aG = ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(ah)) | |
221 | + | $Tuple5(aC, aE, aF, aG, aD) | |
208 | 222 | } | |
209 | 223 | ||
210 | 224 | ||
211 | - | func | |
212 | - | let | |
225 | + | func aH (ae,aI) = { | |
226 | + | let aJ = if (a) | |
213 | 227 | then 10 | |
214 | 228 | else R("waves_min_sell") | |
215 | - | let | |
216 | - | let | |
229 | + | let aK = 1000000 | |
230 | + | let aL = if (a) | |
217 | 231 | then 1 | |
218 | 232 | else (S * 2) | |
219 | - | if (if (if (if (if (( | |
220 | - | then ( | |
233 | + | if (if (if (if (if ((ae == toBase58String(i))) | |
234 | + | then (aK > aI) | |
221 | 235 | else false) | |
222 | - | then ( | |
236 | + | then (aI != 0) | |
223 | 237 | else false) | |
224 | 238 | then true | |
225 | - | else if (if (( | |
226 | - | then ( | |
239 | + | else if (if ((ae == toBase58String(h))) | |
240 | + | then (aL > aI) | |
227 | 241 | else false) | |
228 | - | then ( | |
242 | + | then (aI != 0) | |
229 | 243 | else false) | |
230 | 244 | then true | |
231 | - | else if (if (if (( | |
245 | + | else if (if (if ((ae == toBase58String(j))) | |
232 | 246 | then true | |
233 | - | else ( | |
234 | - | then ( | |
247 | + | else (ae == "WAVES")) | |
248 | + | then (aJ > aI) | |
235 | 249 | else false) | |
236 | - | then ( | |
250 | + | then (aI != 0) | |
237 | 251 | else false) | |
238 | 252 | then false | |
239 | 253 | else true | |
240 | 254 | } | |
241 | 255 | ||
242 | 256 | ||
243 | - | func | |
244 | - | let | |
245 | - | let I = | |
246 | - | let K = | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let F = | |
251 | - | let M = | |
252 | - | let | |
253 | - | $Tuple7(I, K, | |
257 | + | func aM (W,L) = { | |
258 | + | let aN = V(W) | |
259 | + | let I = aN._1 | |
260 | + | let K = aN._2 | |
261 | + | let aO = aN._3 | |
262 | + | let aP = ar(L) | |
263 | + | let aQ = aP._1 | |
264 | + | let F = aP._2 | |
265 | + | let M = aP._3 | |
266 | + | let at = aP._4 | |
267 | + | $Tuple7(I, K, aO, aQ, F, M, at) | |
254 | 268 | } | |
255 | 269 | ||
256 | 270 | ||
257 | - | func | |
258 | - | let | |
259 | - | IntegerEntry(v, ( | |
271 | + | func aR () = { | |
272 | + | let aS = A(v) | |
273 | + | IntegerEntry(v, (aS + 1)) | |
260 | 274 | } | |
261 | 275 | ||
262 | 276 | ||
263 | - | @Callable( | |
264 | - | func appRunning ( | |
265 | - | let K = toString(addressFromPublicKey( | |
266 | - | let I = toBase58String( | |
277 | + | @Callable(aT) | |
278 | + | func appRunning (aU,aV) = { | |
279 | + | let K = toString(addressFromPublicKey(aT.callerPublicKey)) | |
280 | + | let I = toBase58String(aT.transactionId) | |
267 | 281 | if (containsElement([k, toString(this)], K)) | |
268 | - | then [BooleanEntry(r, | |
282 | + | then [BooleanEntry(r, aU), StringEntry(s, aV)] | |
269 | 283 | else throw("You are not allowed to change this") | |
270 | 284 | } | |
271 | 285 | ||
272 | 286 | ||
273 | 287 | ||
274 | - | @Callable( | |
275 | - | func sellNFT ( | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | if (( | |
288 | + | @Callable(W) | |
289 | + | func sellNFT (aI,aW) = { | |
290 | + | let aX = X(W) | |
291 | + | let Y = aX._1 | |
292 | + | let Z = aX._2 | |
293 | + | if ((Z != 1)) | |
280 | 294 | then throw("No NFT attached") | |
281 | 295 | else { | |
282 | - | let L = if (if (isDefined( | |
283 | - | then | |
296 | + | let L = if (if (isDefined(Y.assetId)) | |
297 | + | then ac(value(Y.assetId)) | |
284 | 298 | else false) | |
285 | - | then toBase58String(value( | |
299 | + | then toBase58String(value(Y.assetId)) | |
286 | 300 | else throw("Only SIGN Art NFT accepted.") | |
287 | - | let | |
288 | - | let I = | |
289 | - | let K = | |
290 | - | let | |
291 | - | let | |
292 | - | let F = | |
293 | - | let M = | |
294 | - | let | |
295 | - | if ((size( | |
301 | + | let aY = aM(W, L) | |
302 | + | let I = aY._1 | |
303 | + | let K = aY._2 | |
304 | + | let aO = aY._3 | |
305 | + | let aQ = aY._4 | |
306 | + | let F = aY._5 | |
307 | + | let M = aY._6 | |
308 | + | let at = aY._7 | |
309 | + | if ((size(at) == 0)) | |
296 | 310 | then throw("Artwork not found on SIGN Art") | |
297 | - | else if (!( | |
311 | + | else if (!(aQ)) | |
298 | 312 | then throw("Not a valid nft") | |
299 | - | else if (!( | |
313 | + | else if (!(ad(aW))) | |
300 | 314 | then throw("Only SIGN, USDN or WAVES accepted") | |
301 | - | else if (!( | |
315 | + | else if (!(aH(aW, aI))) | |
302 | 316 | then throw("Wrong minimum sell price") | |
303 | - | else [StringEntry((J(K, L, F, M) + "_OPEN"), ((((((((((((toString( | |
317 | + | else [StringEntry((J(K, L, F, M) + "_OPEN"), ((((((((((((toString(aO) + "_") + toString(aI)) + "_") + aW) + "_") + L) + "_") + F) + "_") + M) + "_") + I)), StringEntry(((("sale2nd_status_" + K) + "_") + L), "OPEN"), StringEntry(("current_owner_on_dapp_" + L), K)] | |
304 | 318 | } | |
305 | 319 | } | |
306 | 320 | ||
307 | 321 | ||
308 | 322 | ||
309 | - | @Callable( | |
310 | - | func updateSalePrice (L, | |
311 | - | let | |
312 | - | let I = | |
313 | - | let K = | |
314 | - | let | |
315 | - | let | |
316 | - | let F = | |
317 | - | let M = | |
318 | - | let | |
319 | - | if ((size( | |
323 | + | @Callable(W) | |
324 | + | func updateSalePrice (L,aI,aW) = { | |
325 | + | let aZ = aM(W, L) | |
326 | + | let I = aZ._1 | |
327 | + | let K = aZ._2 | |
328 | + | let aO = aZ._3 | |
329 | + | let aQ = aZ._4 | |
330 | + | let F = aZ._5 | |
331 | + | let M = aZ._6 | |
332 | + | let at = aZ._7 | |
333 | + | if ((size(at) == 0)) | |
320 | 334 | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
321 | - | else if (!( | |
335 | + | else if (!(aQ)) | |
322 | 336 | then throw("Not a valid nft") | |
323 | 337 | else { | |
324 | 338 | let P = z(("current_owner_on_dapp_" + L)) | |
325 | 339 | if ((P != K)) | |
326 | 340 | then throw("You don't own this NFT") | |
327 | 341 | else { | |
328 | - | let | |
329 | - | if (( | |
342 | + | let ai = z(((("sale2nd_status_" + K) + "_") + L)) | |
343 | + | if ((ai != "OPEN")) | |
330 | 344 | then throw("Sale not active") | |
331 | - | else if (!( | |
345 | + | else if (!(ad(aW))) | |
332 | 346 | then throw("Only SIGN, USDN or WAVES accepted") | |
333 | - | else if (!( | |
347 | + | else if (!(aH(aW, aI))) | |
334 | 348 | then throw("Wrong minimum sell price") | |
335 | 349 | else { | |
336 | - | let | |
337 | - | let | |
338 | - | [StringEntry(( | |
350 | + | let ba = J(K, L, F, M) | |
351 | + | let bb = split(z((ba + "_OPEN")), "_") | |
352 | + | [StringEntry((ba + "_OPEN"), ((((((((((((bb[0] + "_") + toString(aI)) + "_") + aW) + "_") + bb[3]) + "_") + bb[4]) + "_") + bb[5]) + "_") + bb[6]))] | |
339 | 353 | } | |
340 | 354 | } | |
341 | 355 | } | |
343 | 357 | ||
344 | 358 | ||
345 | 359 | ||
346 | - | @Callable( | |
360 | + | @Callable(W) | |
347 | 361 | func cancelSale (L) = { | |
348 | - | let | |
349 | - | let I = | |
350 | - | let K = | |
351 | - | let | |
352 | - | let | |
353 | - | let F = | |
354 | - | let M = | |
355 | - | let | |
362 | + | let bc = aM(W, L) | |
363 | + | let I = bc._1 | |
364 | + | let K = bc._2 | |
365 | + | let aO = bc._3 | |
366 | + | let aQ = bc._4 | |
367 | + | let F = bc._5 | |
368 | + | let M = bc._6 | |
369 | + | let at = bc._7 | |
356 | 370 | let P = z(("current_owner_on_dapp_" + L)) | |
357 | 371 | if ((P != K)) | |
358 | 372 | then throw("You don't own this NFT") | |
359 | 373 | else { | |
360 | - | let | |
361 | - | if (( | |
374 | + | let ai = z(((("sale2nd_status_" + K) + "_") + L)) | |
375 | + | if ((ai != "OPEN")) | |
362 | 376 | then throw("Sale not active") | |
363 | 377 | else { | |
364 | - | let | |
365 | - | let | |
366 | - | [DeleteEntry(( | |
378 | + | let ba = J(K, L, F, M) | |
379 | + | let bb = z((ba + "_OPEN")) | |
380 | + | [DeleteEntry((ba + "_OPEN")), DeleteEntry(((("sale2nd_status_" + K) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((ba + "_") + I) + "_CANCELLED"), ((((bb + "_CANCELLED_") + toString(aO)) + "_") + I)), ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(L))] | |
367 | 381 | } | |
368 | 382 | } | |
369 | 383 | } | |
370 | 384 | ||
371 | 385 | ||
372 | 386 | ||
373 | - | @Callable( | |
387 | + | @Callable(W) | |
374 | 388 | func buyNFT (L) = { | |
375 | - | let | |
376 | - | let I = | |
377 | - | let K = | |
378 | - | let | |
379 | - | let | |
380 | - | let F = | |
381 | - | let M = | |
382 | - | let | |
383 | - | if ((size( | |
389 | + | let bd = aM(W, L) | |
390 | + | let I = bd._1 | |
391 | + | let K = bd._2 | |
392 | + | let aO = bd._3 | |
393 | + | let aQ = bd._4 | |
394 | + | let F = bd._5 | |
395 | + | let M = bd._6 | |
396 | + | let at = bd._7 | |
397 | + | if ((size(at) == 0)) | |
384 | 398 | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
385 | - | else if (!( | |
399 | + | else if (!(aQ)) | |
386 | 400 | then throw("Not a valid nft") | |
387 | 401 | else { | |
388 | - | let P = | |
389 | - | let | |
390 | - | let | |
391 | - | if ((size( | |
402 | + | let P = ag(L) | |
403 | + | let ba = J(P, L, F, M) | |
404 | + | let bb = z((ba + "_OPEN")) | |
405 | + | if ((size(bb) == 0)) | |
392 | 406 | then throw("Sale Not found!") | |
393 | 407 | else { | |
394 | - | let | |
395 | - | if ((parseInt( | |
408 | + | let be = split(bb, "_") | |
409 | + | if ((parseInt(be[1]) == 0)) | |
396 | 410 | then throw("Offer only") | |
397 | 411 | else { | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | then toBase58String(value( | |
412 | + | let bf = X(W) | |
413 | + | let Y = bf._1 | |
414 | + | let Z = bf._2 | |
415 | + | let bg = if (isDefined(Y.assetId)) | |
416 | + | then toBase58String(value(Y.assetId)) | |
403 | 417 | else "" | |
404 | - | if (if (( | |
418 | + | if (if ((be[1] != toString(Z))) | |
405 | 419 | then true | |
406 | - | else ( | |
420 | + | else (be[2] != bg)) | |
407 | 421 | then throw("Payment infos don't match.") | |
408 | 422 | else { | |
409 | - | let au = fraction(X, l, 100) | |
410 | - | let av = fraction(X, m, 100) | |
411 | - | let aw = (X - (au + av)) | |
412 | - | let bb = at(X, W.assetId, L, M, P, K) | |
413 | - | let ax = bb._1 | |
414 | - | let ay = bb._2 | |
415 | - | let az = bb._3 | |
416 | - | let aA = bb._4 | |
417 | - | [DeleteEntry((aU + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((aU + "_") + I) + "_CLOSED"), ((((((aV + "_CLOSED_") + toString(aI)) + "_") + I) + "_") + K)), aL(), ax, ay, az, aA] | |
423 | + | let bh = av(Z, Y.assetId, L, M, P, K) | |
424 | + | let aC = bh._1 | |
425 | + | let aE = bh._2 | |
426 | + | let aF = bh._3 | |
427 | + | let aG = bh._4 | |
428 | + | let aD = bh._5 | |
429 | + | [DeleteEntry((ba + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((ba + "_") + I) + "_CLOSED"), ((((((bb + "_CLOSED_") + toString(aO)) + "_") + I) + "_") + K)), aR(), aC, aE, aF, aG, aD] | |
418 | 430 | } | |
419 | 431 | } | |
420 | 432 | } | |
423 | 435 | ||
424 | 436 | ||
425 | 437 | ||
426 | - | @Callable( | |
438 | + | @Callable(W) | |
427 | 439 | func setOffer (L) = { | |
428 | - | let | |
429 | - | let I = | |
430 | - | let O = | |
431 | - | let | |
432 | - | let | |
433 | - | let F = | |
434 | - | let M = | |
435 | - | let | |
436 | - | if (!( | |
440 | + | let bi = aM(W, L) | |
441 | + | let I = bi._1 | |
442 | + | let O = bi._2 | |
443 | + | let aO = bi._3 | |
444 | + | let aQ = bi._4 | |
445 | + | let F = bi._5 | |
446 | + | let M = bi._6 | |
447 | + | let at = bi._7 | |
448 | + | if (!(aQ)) | |
437 | 449 | then throw("Not a valid nft") | |
438 | 450 | else { | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
451 | + | let bj = X(W) | |
452 | + | let Y = bj._1 | |
453 | + | let Z = bj._2 | |
454 | + | let ae = if (!(isDefined(Y.assetId))) | |
443 | 455 | then "WAVES" | |
444 | - | else toBase58String(value( | |
445 | - | if (!( | |
456 | + | else toBase58String(value(Y.assetId)) | |
457 | + | if (!(ad(ae))) | |
446 | 458 | then throw("asset not accepted") | |
447 | - | else if (( | |
459 | + | else if ((Z == 0)) | |
448 | 460 | then throw("Offer of 0 not allowed") | |
449 | - | else if (!( | |
461 | + | else if (!(aH(ae, Z))) | |
450 | 462 | then throw("Wrong minimum sell price") | |
451 | 463 | else { | |
452 | - | let P = | |
453 | - | [StringEntry((N(O, L, P, I) + "_OPEN"), ((((((((((((((toString( | |
464 | + | let P = ag(L) | |
465 | + | [StringEntry((N(O, L, P, I) + "_OPEN"), ((((((((((((((toString(aO) + "_") + toString(Z)) + "_") + ae) + "_") + L) + "_") + F) + "_") + M) + "_") + O) + "_") + I))] | |
454 | 466 | } | |
455 | 467 | } | |
456 | 468 | } | |
457 | 469 | ||
458 | 470 | ||
459 | 471 | ||
460 | - | @Callable( | |
472 | + | @Callable(W) | |
461 | 473 | func acceptOffer (L,Q,O) = { | |
462 | - | let | |
463 | - | let I = | |
464 | - | let K = | |
465 | - | let | |
466 | - | let | |
467 | - | let F = | |
468 | - | let M = | |
469 | - | let | |
470 | - | if (!( | |
474 | + | let bk = aM(W, L) | |
475 | + | let I = bk._1 | |
476 | + | let K = bk._2 | |
477 | + | let aO = bk._3 | |
478 | + | let aQ = bk._4 | |
479 | + | let F = bk._5 | |
480 | + | let M = bk._6 | |
481 | + | let at = bk._7 | |
482 | + | if (!(aQ)) | |
471 | 483 | then throw("Not a valid nft") | |
472 | 484 | else { | |
473 | - | let P = | |
485 | + | let P = ag(L) | |
474 | 486 | if ((K != P)) | |
475 | 487 | then throw("Only sale owner can accept offer") | |
476 | 488 | else { | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | if ((size( | |
489 | + | let bl = N(O, L, P, Q) | |
490 | + | let bm = aj(bl) | |
491 | + | let al = bm._1 | |
492 | + | let ae = bm._2 | |
493 | + | let ak = bm._3 | |
494 | + | let ba = J(P, L, F, M) | |
495 | + | let bb = z((ba + "_OPEN")) | |
496 | + | if ((size(bb) == 0)) | |
485 | 497 | then throw("Sale Not found!") | |
486 | 498 | else { | |
487 | - | let X = value(parseInt(aj[1])) | |
488 | - | let bh = at(X, ac, L, M, P, aj[6]) | |
489 | - | let ax = bh._1 | |
490 | - | let ay = bh._2 | |
491 | - | let az = bh._3 | |
492 | - | let aA = bh._4 | |
493 | - | let bi = if (isDefined(ac)) | |
494 | - | then toBase58String(value(ac)) | |
499 | + | let Z = value(parseInt(al[1])) | |
500 | + | let bn = av(Z, ae, L, M, P, al[6]) | |
501 | + | let aC = bn._1 | |
502 | + | let aE = bn._2 | |
503 | + | let aF = bn._3 | |
504 | + | let aG = bn._4 | |
505 | + | let aD = bn._5 | |
506 | + | let bo = if (isDefined(ae)) | |
507 | + | then toBase58String(value(ae)) | |
495 | 508 | else "WAVES" | |
496 | - | [DeleteEntry(( | |
509 | + | [DeleteEntry((ba + "_OPEN")), DeleteEntry((bl + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((bl + "_CLOSED"), ((((ak + "_CLOSED_") + toString(aO)) + "_") + I)), StringEntry((((ba + "_") + I) + "_CLOSED"), ((((((((((bb + "_CLOSED-OFFER_") + toString(aO)) + "_") + I) + "_") + O) + "_") + toString(Z)) + "_") + bo)), aR(), aC, aE, aF, aG, aD] | |
497 | 510 | } | |
498 | 511 | } | |
499 | 512 | } | |
501 | 514 | ||
502 | 515 | ||
503 | 516 | ||
504 | - | @Callable( | |
517 | + | @Callable(W) | |
505 | 518 | func cancelOffer (L,Q,O,P) = { | |
506 | - | let | |
507 | - | let I = | |
508 | - | let K = | |
509 | - | let | |
519 | + | let bp = V(W) | |
520 | + | let I = bp._1 | |
521 | + | let K = bp._2 | |
522 | + | let aO = bp._3 | |
510 | 523 | if (if ((K != O)) | |
511 | 524 | then (K != P) | |
512 | 525 | else false) | |
513 | 526 | then throw("You cannot cancel this offer.") | |
514 | 527 | else { | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | [DeleteEntry(( | |
528 | + | let bl = N(O, L, P, Q) | |
529 | + | let bq = aj(bl) | |
530 | + | let al = bq._1 | |
531 | + | let ae = bq._2 | |
532 | + | let ak = bq._3 | |
533 | + | [DeleteEntry((bl + "_OPEN")), StringEntry((bl + "_CANCELLED"), ((((ak + "_CANCELLED_") + toString(aO)) + "_") + I)), ScriptTransfer(Address(fromBase58String(K)), parseIntValue(al[1]), ae)] | |
521 | 534 | } | |
522 | 535 | } | |
523 | 536 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = false | |
5 | 5 | ||
6 | 6 | let b = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
7 | 7 | ||
8 | 8 | let c = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | 9 | ||
10 | 10 | let d = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY")) | |
11 | 11 | ||
12 | 12 | let e = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
13 | 13 | ||
14 | 14 | let f = if (a) | |
15 | 15 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
16 | 16 | else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj")) | |
17 | 17 | ||
18 | 18 | let g = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
19 | 19 | ||
20 | 20 | let h = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
21 | 21 | ||
22 | 22 | let i = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
23 | 23 | ||
24 | 24 | let j = base58'' | |
25 | 25 | ||
26 | 26 | let k = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
27 | 27 | ||
28 | 28 | let l = 3 | |
29 | 29 | ||
30 | 30 | let m = 10 | |
31 | 31 | ||
32 | 32 | let n = "SUSPENDED" | |
33 | 33 | ||
34 | 34 | let o = "REMOVED" | |
35 | 35 | ||
36 | 36 | let p = "ILLEGAL" | |
37 | 37 | ||
38 | 38 | let q = "SUSPENDED" | |
39 | 39 | ||
40 | 40 | let r = "conf_dapp_is_running" | |
41 | 41 | ||
42 | 42 | let s = "conf_maintenance_msg" | |
43 | 43 | ||
44 | 44 | let t = valueOrElse(getBoolean(this, r), true) | |
45 | 45 | ||
46 | 46 | let u = valueOrElse(getString(this, s), "") | |
47 | 47 | ||
48 | 48 | let v = "num_sales" | |
49 | 49 | ||
50 | 50 | func w (x) = valueOrElse(getString(f, x), "Error") | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func y (x) = valueOrElse(getString(d, x), "") | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func z (x) = valueOrElse(getString(this, x), "") | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func A (x) = valueOrElse(getInteger(this, x), 0) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func B (C) = ("user_status_" + C) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func D (E,F) = ((("art_signid_" + F) + "_") + E) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func G (E,F) = ((("art_flag_" + F) + "_") + E) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func H (I) = ("nft_" + I) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func J (K,L,F,M) = ((((((("sale2nd_info_" + K) + "_") + L) + "_") + F) + "_") + M) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func N (O,L,P,Q) = ((((((("offer2nd_" + O) + "_") + L) + "_") + P) + "_") + Q) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func R (x) = valueOrErrorMessage(getInteger(b, x), "Integer undefine or 0 in oracle") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | let S = R(("certification_fee_" + toBase58String(h))) | |
84 | 84 | ||
85 | - | func T (U) = if (!(t)) | |
86 | - | then throw(u) | |
87 | - | else $Tuple3(toBase58String(U.transactionId), toBase58String(U.caller.bytes), lastBlock.timestamp) | |
85 | + | func T (E) = ("artist_agent_" + E) | |
88 | 86 | ||
89 | 87 | ||
90 | - | func V (U) = if ((size(U.payments) == 0)) | |
88 | + | func U (E) = ("artist_agent_secondary" + E) | |
89 | + | ||
90 | + | ||
91 | + | func V (W) = if (!(t)) | |
92 | + | then throw(u) | |
93 | + | else $Tuple3(toBase58String(W.transactionId), toBase58String(W.caller.bytes), lastBlock.timestamp) | |
94 | + | ||
95 | + | ||
96 | + | func X (W) = if ((size(W.payments) == 0)) | |
91 | 97 | then throw("No payment attached") | |
92 | 98 | else { | |
93 | - | let | |
94 | - | let | |
95 | - | $Tuple2( | |
99 | + | let Y = value(W.payments[0]) | |
100 | + | let Z = value(Y.amount) | |
101 | + | $Tuple2(Y, Z) | |
96 | 102 | } | |
97 | 103 | ||
98 | 104 | ||
99 | - | func | |
100 | - | then ( | |
105 | + | func aa (ab) = if (if (if ((ab.quantity == 1)) | |
106 | + | then (ab.decimals == 0) | |
101 | 107 | else false) | |
102 | - | then ( | |
108 | + | then (ab.reissuable == false) | |
103 | 109 | else false) | |
104 | - | then ( | |
110 | + | then (ab.issuer == d) | |
105 | 111 | else false | |
106 | 112 | ||
107 | 113 | ||
108 | - | func | |
109 | - | let | |
110 | - | | |
114 | + | func ac (I) = { | |
115 | + | let ab = value(assetInfo(I)) | |
116 | + | aa(ab) | |
111 | 117 | } | |
112 | 118 | ||
113 | 119 | ||
114 | - | func | |
115 | - | then ( | |
120 | + | func ad (ae) = if (if (if (if ((ae != toBase58String(h))) | |
121 | + | then (ae != toBase58String(j)) | |
116 | 122 | else false) | |
117 | - | then ( | |
123 | + | then (ae != "WAVES") | |
118 | 124 | else false) | |
119 | - | then ( | |
125 | + | then (ae != toBase58String(i)) | |
120 | 126 | else false) | |
121 | 127 | then false | |
122 | 128 | else true | |
123 | 129 | ||
124 | 130 | ||
125 | - | func | |
131 | + | func af (ae) = if ((ae == "WAVES")) | |
126 | 132 | then unit | |
127 | - | else fromBase58String( | |
133 | + | else fromBase58String(ae) | |
128 | 134 | ||
129 | 135 | ||
130 | - | func | |
131 | - | let P = z(("current_owner_on_dapp_" + | |
136 | + | func ag (ah) = { | |
137 | + | let P = z(("current_owner_on_dapp_" + ah)) | |
132 | 138 | if ((size(P) == 0)) | |
133 | 139 | then throw("NFT not found") | |
134 | 140 | else { | |
135 | - | let | |
136 | - | if (( | |
141 | + | let ai = z(((("sale2nd_status_" + P) + "_") + ah)) | |
142 | + | if ((ai != "OPEN")) | |
137 | 143 | then throw("NFT not for sale") | |
138 | 144 | else P | |
139 | 145 | } | |
140 | 146 | } | |
141 | 147 | ||
142 | 148 | ||
143 | - | func | |
144 | - | let | |
145 | - | if (( | |
149 | + | func aj (x) = { | |
150 | + | let ak = z((x + "_OPEN")) | |
151 | + | if ((ak == "")) | |
146 | 152 | then throw("Offer not found") | |
147 | 153 | else { | |
148 | - | let | |
149 | - | let | |
150 | - | $Tuple3( | |
154 | + | let al = split(ak, "_") | |
155 | + | let ae = af(al[2]) | |
156 | + | $Tuple3(al, ae, ak) | |
151 | 157 | } | |
152 | 158 | } | |
153 | 159 | ||
154 | 160 | ||
155 | - | func | |
156 | - | then ( | |
161 | + | func am (an) = if ((an != p)) | |
162 | + | then (an != q) | |
157 | 163 | else false | |
158 | 164 | ||
159 | 165 | ||
160 | - | func | |
161 | - | let | |
162 | - | if ( | |
166 | + | func ao (C,I) = { | |
167 | + | let an = y(G(C, I)) | |
168 | + | if (am(an)) | |
163 | 169 | then true | |
164 | - | else throw(("Original Artwork flagged as " + | |
170 | + | else throw(("Original Artwork flagged as " + an)) | |
165 | 171 | } | |
166 | 172 | ||
167 | 173 | ||
168 | - | func | |
169 | - | let | |
170 | - | if (containsElement([n, o], | |
171 | - | then throw(("Original Artist " + | |
174 | + | func ap (C) = { | |
175 | + | let aq = w(B(C)) | |
176 | + | if (containsElement([n, o], aq)) | |
177 | + | then throw(("Original Artist " + aq)) | |
172 | 178 | else true | |
173 | 179 | } | |
174 | 180 | ||
175 | 181 | ||
176 | - | func | |
177 | - | let | |
178 | - | let | |
179 | - | if (if (!( | |
180 | - | then !( | |
182 | + | func ar (ae) = { | |
183 | + | let as = split(y(H(ae)), "_") | |
184 | + | let at = y(D(as[6], as[5])) | |
185 | + | if (if (!(ao(as[6], as[5]))) | |
186 | + | then !(ap(as[6])) | |
181 | 187 | else false) | |
182 | - | then $Tuple4(false, | |
183 | - | else $Tuple4(true, | |
188 | + | then $Tuple4(false, as[5], as[6], at) | |
189 | + | else $Tuple4(true, as[5], as[6], at) | |
184 | 190 | } | |
185 | 191 | ||
186 | 192 | ||
187 | - | func | |
188 | - | let | |
189 | - | if ((size( | |
193 | + | func au (F,M) = { | |
194 | + | let at = y(D(M, F)) | |
195 | + | if ((size(at) == 0)) | |
190 | 196 | then throw("Artwork not found on SIGN Art") | |
191 | - | else if (if (!( | |
192 | - | then !( | |
197 | + | else if (if (!(ao(M, F))) | |
198 | + | then !(ap(M)) | |
193 | 199 | else false) | |
194 | 200 | then false | |
195 | 201 | else true | |
196 | 202 | } | |
197 | 203 | ||
198 | 204 | ||
199 | - | func at (X,ac,af,M,P,K) = { | |
200 | - | let au = fraction(X, l, 100) | |
201 | - | let av = fraction(X, m, 100) | |
202 | - | let aw = (X - (au + av)) | |
203 | - | let ax = ScriptTransfer(Address(fromBase58String(e)), au, ac) | |
204 | - | let ay = ScriptTransfer(Address(fromBase58String(M)), av, ac) | |
205 | - | let az = ScriptTransfer(Address(fromBase58String(P)), aw, ac) | |
206 | - | let aA = ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(af)) | |
207 | - | $Tuple4(ax, ay, az, aA) | |
205 | + | func av (Z,ae,ah,M,P,K) = { | |
206 | + | let aw = valueOrElse(getString(f, T(M)), e) | |
207 | + | let ax = valueOrElse(getInteger(f, U(M)), 0) | |
208 | + | let ay = fraction(Z, l, 100) | |
209 | + | let az = fraction(Z, m, 100) | |
210 | + | let aA = (Z - (ay + az)) | |
211 | + | let aB = if (if ((aw != e)) | |
212 | + | then (ax > 0) | |
213 | + | else false) | |
214 | + | then fraction(Z, ax, 100) | |
215 | + | else 0 | |
216 | + | let aC = ScriptTransfer(Address(fromBase58String(e)), (ay - aB), ae) | |
217 | + | let aD = ScriptTransfer(Address(fromBase58String(aw)), aB, ae) | |
218 | + | let aE = ScriptTransfer(Address(fromBase58String(M)), az, ae) | |
219 | + | let aF = ScriptTransfer(Address(fromBase58String(P)), aA, ae) | |
220 | + | let aG = ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(ah)) | |
221 | + | $Tuple5(aC, aE, aF, aG, aD) | |
208 | 222 | } | |
209 | 223 | ||
210 | 224 | ||
211 | - | func | |
212 | - | let | |
225 | + | func aH (ae,aI) = { | |
226 | + | let aJ = if (a) | |
213 | 227 | then 10 | |
214 | 228 | else R("waves_min_sell") | |
215 | - | let | |
216 | - | let | |
229 | + | let aK = 1000000 | |
230 | + | let aL = if (a) | |
217 | 231 | then 1 | |
218 | 232 | else (S * 2) | |
219 | - | if (if (if (if (if (( | |
220 | - | then ( | |
233 | + | if (if (if (if (if ((ae == toBase58String(i))) | |
234 | + | then (aK > aI) | |
221 | 235 | else false) | |
222 | - | then ( | |
236 | + | then (aI != 0) | |
223 | 237 | else false) | |
224 | 238 | then true | |
225 | - | else if (if (( | |
226 | - | then ( | |
239 | + | else if (if ((ae == toBase58String(h))) | |
240 | + | then (aL > aI) | |
227 | 241 | else false) | |
228 | - | then ( | |
242 | + | then (aI != 0) | |
229 | 243 | else false) | |
230 | 244 | then true | |
231 | - | else if (if (if (( | |
245 | + | else if (if (if ((ae == toBase58String(j))) | |
232 | 246 | then true | |
233 | - | else ( | |
234 | - | then ( | |
247 | + | else (ae == "WAVES")) | |
248 | + | then (aJ > aI) | |
235 | 249 | else false) | |
236 | - | then ( | |
250 | + | then (aI != 0) | |
237 | 251 | else false) | |
238 | 252 | then false | |
239 | 253 | else true | |
240 | 254 | } | |
241 | 255 | ||
242 | 256 | ||
243 | - | func | |
244 | - | let | |
245 | - | let I = | |
246 | - | let K = | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let F = | |
251 | - | let M = | |
252 | - | let | |
253 | - | $Tuple7(I, K, | |
257 | + | func aM (W,L) = { | |
258 | + | let aN = V(W) | |
259 | + | let I = aN._1 | |
260 | + | let K = aN._2 | |
261 | + | let aO = aN._3 | |
262 | + | let aP = ar(L) | |
263 | + | let aQ = aP._1 | |
264 | + | let F = aP._2 | |
265 | + | let M = aP._3 | |
266 | + | let at = aP._4 | |
267 | + | $Tuple7(I, K, aO, aQ, F, M, at) | |
254 | 268 | } | |
255 | 269 | ||
256 | 270 | ||
257 | - | func | |
258 | - | let | |
259 | - | IntegerEntry(v, ( | |
271 | + | func aR () = { | |
272 | + | let aS = A(v) | |
273 | + | IntegerEntry(v, (aS + 1)) | |
260 | 274 | } | |
261 | 275 | ||
262 | 276 | ||
263 | - | @Callable( | |
264 | - | func appRunning ( | |
265 | - | let K = toString(addressFromPublicKey( | |
266 | - | let I = toBase58String( | |
277 | + | @Callable(aT) | |
278 | + | func appRunning (aU,aV) = { | |
279 | + | let K = toString(addressFromPublicKey(aT.callerPublicKey)) | |
280 | + | let I = toBase58String(aT.transactionId) | |
267 | 281 | if (containsElement([k, toString(this)], K)) | |
268 | - | then [BooleanEntry(r, | |
282 | + | then [BooleanEntry(r, aU), StringEntry(s, aV)] | |
269 | 283 | else throw("You are not allowed to change this") | |
270 | 284 | } | |
271 | 285 | ||
272 | 286 | ||
273 | 287 | ||
274 | - | @Callable( | |
275 | - | func sellNFT ( | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | if (( | |
288 | + | @Callable(W) | |
289 | + | func sellNFT (aI,aW) = { | |
290 | + | let aX = X(W) | |
291 | + | let Y = aX._1 | |
292 | + | let Z = aX._2 | |
293 | + | if ((Z != 1)) | |
280 | 294 | then throw("No NFT attached") | |
281 | 295 | else { | |
282 | - | let L = if (if (isDefined( | |
283 | - | then | |
296 | + | let L = if (if (isDefined(Y.assetId)) | |
297 | + | then ac(value(Y.assetId)) | |
284 | 298 | else false) | |
285 | - | then toBase58String(value( | |
299 | + | then toBase58String(value(Y.assetId)) | |
286 | 300 | else throw("Only SIGN Art NFT accepted.") | |
287 | - | let | |
288 | - | let I = | |
289 | - | let K = | |
290 | - | let | |
291 | - | let | |
292 | - | let F = | |
293 | - | let M = | |
294 | - | let | |
295 | - | if ((size( | |
301 | + | let aY = aM(W, L) | |
302 | + | let I = aY._1 | |
303 | + | let K = aY._2 | |
304 | + | let aO = aY._3 | |
305 | + | let aQ = aY._4 | |
306 | + | let F = aY._5 | |
307 | + | let M = aY._6 | |
308 | + | let at = aY._7 | |
309 | + | if ((size(at) == 0)) | |
296 | 310 | then throw("Artwork not found on SIGN Art") | |
297 | - | else if (!( | |
311 | + | else if (!(aQ)) | |
298 | 312 | then throw("Not a valid nft") | |
299 | - | else if (!( | |
313 | + | else if (!(ad(aW))) | |
300 | 314 | then throw("Only SIGN, USDN or WAVES accepted") | |
301 | - | else if (!( | |
315 | + | else if (!(aH(aW, aI))) | |
302 | 316 | then throw("Wrong minimum sell price") | |
303 | - | else [StringEntry((J(K, L, F, M) + "_OPEN"), ((((((((((((toString( | |
317 | + | else [StringEntry((J(K, L, F, M) + "_OPEN"), ((((((((((((toString(aO) + "_") + toString(aI)) + "_") + aW) + "_") + L) + "_") + F) + "_") + M) + "_") + I)), StringEntry(((("sale2nd_status_" + K) + "_") + L), "OPEN"), StringEntry(("current_owner_on_dapp_" + L), K)] | |
304 | 318 | } | |
305 | 319 | } | |
306 | 320 | ||
307 | 321 | ||
308 | 322 | ||
309 | - | @Callable( | |
310 | - | func updateSalePrice (L, | |
311 | - | let | |
312 | - | let I = | |
313 | - | let K = | |
314 | - | let | |
315 | - | let | |
316 | - | let F = | |
317 | - | let M = | |
318 | - | let | |
319 | - | if ((size( | |
323 | + | @Callable(W) | |
324 | + | func updateSalePrice (L,aI,aW) = { | |
325 | + | let aZ = aM(W, L) | |
326 | + | let I = aZ._1 | |
327 | + | let K = aZ._2 | |
328 | + | let aO = aZ._3 | |
329 | + | let aQ = aZ._4 | |
330 | + | let F = aZ._5 | |
331 | + | let M = aZ._6 | |
332 | + | let at = aZ._7 | |
333 | + | if ((size(at) == 0)) | |
320 | 334 | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
321 | - | else if (!( | |
335 | + | else if (!(aQ)) | |
322 | 336 | then throw("Not a valid nft") | |
323 | 337 | else { | |
324 | 338 | let P = z(("current_owner_on_dapp_" + L)) | |
325 | 339 | if ((P != K)) | |
326 | 340 | then throw("You don't own this NFT") | |
327 | 341 | else { | |
328 | - | let | |
329 | - | if (( | |
342 | + | let ai = z(((("sale2nd_status_" + K) + "_") + L)) | |
343 | + | if ((ai != "OPEN")) | |
330 | 344 | then throw("Sale not active") | |
331 | - | else if (!( | |
345 | + | else if (!(ad(aW))) | |
332 | 346 | then throw("Only SIGN, USDN or WAVES accepted") | |
333 | - | else if (!( | |
347 | + | else if (!(aH(aW, aI))) | |
334 | 348 | then throw("Wrong minimum sell price") | |
335 | 349 | else { | |
336 | - | let | |
337 | - | let | |
338 | - | [StringEntry(( | |
350 | + | let ba = J(K, L, F, M) | |
351 | + | let bb = split(z((ba + "_OPEN")), "_") | |
352 | + | [StringEntry((ba + "_OPEN"), ((((((((((((bb[0] + "_") + toString(aI)) + "_") + aW) + "_") + bb[3]) + "_") + bb[4]) + "_") + bb[5]) + "_") + bb[6]))] | |
339 | 353 | } | |
340 | 354 | } | |
341 | 355 | } | |
342 | 356 | } | |
343 | 357 | ||
344 | 358 | ||
345 | 359 | ||
346 | - | @Callable( | |
360 | + | @Callable(W) | |
347 | 361 | func cancelSale (L) = { | |
348 | - | let | |
349 | - | let I = | |
350 | - | let K = | |
351 | - | let | |
352 | - | let | |
353 | - | let F = | |
354 | - | let M = | |
355 | - | let | |
362 | + | let bc = aM(W, L) | |
363 | + | let I = bc._1 | |
364 | + | let K = bc._2 | |
365 | + | let aO = bc._3 | |
366 | + | let aQ = bc._4 | |
367 | + | let F = bc._5 | |
368 | + | let M = bc._6 | |
369 | + | let at = bc._7 | |
356 | 370 | let P = z(("current_owner_on_dapp_" + L)) | |
357 | 371 | if ((P != K)) | |
358 | 372 | then throw("You don't own this NFT") | |
359 | 373 | else { | |
360 | - | let | |
361 | - | if (( | |
374 | + | let ai = z(((("sale2nd_status_" + K) + "_") + L)) | |
375 | + | if ((ai != "OPEN")) | |
362 | 376 | then throw("Sale not active") | |
363 | 377 | else { | |
364 | - | let | |
365 | - | let | |
366 | - | [DeleteEntry(( | |
378 | + | let ba = J(K, L, F, M) | |
379 | + | let bb = z((ba + "_OPEN")) | |
380 | + | [DeleteEntry((ba + "_OPEN")), DeleteEntry(((("sale2nd_status_" + K) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((ba + "_") + I) + "_CANCELLED"), ((((bb + "_CANCELLED_") + toString(aO)) + "_") + I)), ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(L))] | |
367 | 381 | } | |
368 | 382 | } | |
369 | 383 | } | |
370 | 384 | ||
371 | 385 | ||
372 | 386 | ||
373 | - | @Callable( | |
387 | + | @Callable(W) | |
374 | 388 | func buyNFT (L) = { | |
375 | - | let | |
376 | - | let I = | |
377 | - | let K = | |
378 | - | let | |
379 | - | let | |
380 | - | let F = | |
381 | - | let M = | |
382 | - | let | |
383 | - | if ((size( | |
389 | + | let bd = aM(W, L) | |
390 | + | let I = bd._1 | |
391 | + | let K = bd._2 | |
392 | + | let aO = bd._3 | |
393 | + | let aQ = bd._4 | |
394 | + | let F = bd._5 | |
395 | + | let M = bd._6 | |
396 | + | let at = bd._7 | |
397 | + | if ((size(at) == 0)) | |
384 | 398 | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
385 | - | else if (!( | |
399 | + | else if (!(aQ)) | |
386 | 400 | then throw("Not a valid nft") | |
387 | 401 | else { | |
388 | - | let P = | |
389 | - | let | |
390 | - | let | |
391 | - | if ((size( | |
402 | + | let P = ag(L) | |
403 | + | let ba = J(P, L, F, M) | |
404 | + | let bb = z((ba + "_OPEN")) | |
405 | + | if ((size(bb) == 0)) | |
392 | 406 | then throw("Sale Not found!") | |
393 | 407 | else { | |
394 | - | let | |
395 | - | if ((parseInt( | |
408 | + | let be = split(bb, "_") | |
409 | + | if ((parseInt(be[1]) == 0)) | |
396 | 410 | then throw("Offer only") | |
397 | 411 | else { | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | then toBase58String(value( | |
412 | + | let bf = X(W) | |
413 | + | let Y = bf._1 | |
414 | + | let Z = bf._2 | |
415 | + | let bg = if (isDefined(Y.assetId)) | |
416 | + | then toBase58String(value(Y.assetId)) | |
403 | 417 | else "" | |
404 | - | if (if (( | |
418 | + | if (if ((be[1] != toString(Z))) | |
405 | 419 | then true | |
406 | - | else ( | |
420 | + | else (be[2] != bg)) | |
407 | 421 | then throw("Payment infos don't match.") | |
408 | 422 | else { | |
409 | - | let au = fraction(X, l, 100) | |
410 | - | let av = fraction(X, m, 100) | |
411 | - | let aw = (X - (au + av)) | |
412 | - | let bb = at(X, W.assetId, L, M, P, K) | |
413 | - | let ax = bb._1 | |
414 | - | let ay = bb._2 | |
415 | - | let az = bb._3 | |
416 | - | let aA = bb._4 | |
417 | - | [DeleteEntry((aU + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((aU + "_") + I) + "_CLOSED"), ((((((aV + "_CLOSED_") + toString(aI)) + "_") + I) + "_") + K)), aL(), ax, ay, az, aA] | |
423 | + | let bh = av(Z, Y.assetId, L, M, P, K) | |
424 | + | let aC = bh._1 | |
425 | + | let aE = bh._2 | |
426 | + | let aF = bh._3 | |
427 | + | let aG = bh._4 | |
428 | + | let aD = bh._5 | |
429 | + | [DeleteEntry((ba + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((ba + "_") + I) + "_CLOSED"), ((((((bb + "_CLOSED_") + toString(aO)) + "_") + I) + "_") + K)), aR(), aC, aE, aF, aG, aD] | |
418 | 430 | } | |
419 | 431 | } | |
420 | 432 | } | |
421 | 433 | } | |
422 | 434 | } | |
423 | 435 | ||
424 | 436 | ||
425 | 437 | ||
426 | - | @Callable( | |
438 | + | @Callable(W) | |
427 | 439 | func setOffer (L) = { | |
428 | - | let | |
429 | - | let I = | |
430 | - | let O = | |
431 | - | let | |
432 | - | let | |
433 | - | let F = | |
434 | - | let M = | |
435 | - | let | |
436 | - | if (!( | |
440 | + | let bi = aM(W, L) | |
441 | + | let I = bi._1 | |
442 | + | let O = bi._2 | |
443 | + | let aO = bi._3 | |
444 | + | let aQ = bi._4 | |
445 | + | let F = bi._5 | |
446 | + | let M = bi._6 | |
447 | + | let at = bi._7 | |
448 | + | if (!(aQ)) | |
437 | 449 | then throw("Not a valid nft") | |
438 | 450 | else { | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
451 | + | let bj = X(W) | |
452 | + | let Y = bj._1 | |
453 | + | let Z = bj._2 | |
454 | + | let ae = if (!(isDefined(Y.assetId))) | |
443 | 455 | then "WAVES" | |
444 | - | else toBase58String(value( | |
445 | - | if (!( | |
456 | + | else toBase58String(value(Y.assetId)) | |
457 | + | if (!(ad(ae))) | |
446 | 458 | then throw("asset not accepted") | |
447 | - | else if (( | |
459 | + | else if ((Z == 0)) | |
448 | 460 | then throw("Offer of 0 not allowed") | |
449 | - | else if (!( | |
461 | + | else if (!(aH(ae, Z))) | |
450 | 462 | then throw("Wrong minimum sell price") | |
451 | 463 | else { | |
452 | - | let P = | |
453 | - | [StringEntry((N(O, L, P, I) + "_OPEN"), ((((((((((((((toString( | |
464 | + | let P = ag(L) | |
465 | + | [StringEntry((N(O, L, P, I) + "_OPEN"), ((((((((((((((toString(aO) + "_") + toString(Z)) + "_") + ae) + "_") + L) + "_") + F) + "_") + M) + "_") + O) + "_") + I))] | |
454 | 466 | } | |
455 | 467 | } | |
456 | 468 | } | |
457 | 469 | ||
458 | 470 | ||
459 | 471 | ||
460 | - | @Callable( | |
472 | + | @Callable(W) | |
461 | 473 | func acceptOffer (L,Q,O) = { | |
462 | - | let | |
463 | - | let I = | |
464 | - | let K = | |
465 | - | let | |
466 | - | let | |
467 | - | let F = | |
468 | - | let M = | |
469 | - | let | |
470 | - | if (!( | |
474 | + | let bk = aM(W, L) | |
475 | + | let I = bk._1 | |
476 | + | let K = bk._2 | |
477 | + | let aO = bk._3 | |
478 | + | let aQ = bk._4 | |
479 | + | let F = bk._5 | |
480 | + | let M = bk._6 | |
481 | + | let at = bk._7 | |
482 | + | if (!(aQ)) | |
471 | 483 | then throw("Not a valid nft") | |
472 | 484 | else { | |
473 | - | let P = | |
485 | + | let P = ag(L) | |
474 | 486 | if ((K != P)) | |
475 | 487 | then throw("Only sale owner can accept offer") | |
476 | 488 | else { | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | if ((size( | |
489 | + | let bl = N(O, L, P, Q) | |
490 | + | let bm = aj(bl) | |
491 | + | let al = bm._1 | |
492 | + | let ae = bm._2 | |
493 | + | let ak = bm._3 | |
494 | + | let ba = J(P, L, F, M) | |
495 | + | let bb = z((ba + "_OPEN")) | |
496 | + | if ((size(bb) == 0)) | |
485 | 497 | then throw("Sale Not found!") | |
486 | 498 | else { | |
487 | - | let X = value(parseInt(aj[1])) | |
488 | - | let bh = at(X, ac, L, M, P, aj[6]) | |
489 | - | let ax = bh._1 | |
490 | - | let ay = bh._2 | |
491 | - | let az = bh._3 | |
492 | - | let aA = bh._4 | |
493 | - | let bi = if (isDefined(ac)) | |
494 | - | then toBase58String(value(ac)) | |
499 | + | let Z = value(parseInt(al[1])) | |
500 | + | let bn = av(Z, ae, L, M, P, al[6]) | |
501 | + | let aC = bn._1 | |
502 | + | let aE = bn._2 | |
503 | + | let aF = bn._3 | |
504 | + | let aG = bn._4 | |
505 | + | let aD = bn._5 | |
506 | + | let bo = if (isDefined(ae)) | |
507 | + | then toBase58String(value(ae)) | |
495 | 508 | else "WAVES" | |
496 | - | [DeleteEntry(( | |
509 | + | [DeleteEntry((ba + "_OPEN")), DeleteEntry((bl + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((bl + "_CLOSED"), ((((ak + "_CLOSED_") + toString(aO)) + "_") + I)), StringEntry((((ba + "_") + I) + "_CLOSED"), ((((((((((bb + "_CLOSED-OFFER_") + toString(aO)) + "_") + I) + "_") + O) + "_") + toString(Z)) + "_") + bo)), aR(), aC, aE, aF, aG, aD] | |
497 | 510 | } | |
498 | 511 | } | |
499 | 512 | } | |
500 | 513 | } | |
501 | 514 | ||
502 | 515 | ||
503 | 516 | ||
504 | - | @Callable( | |
517 | + | @Callable(W) | |
505 | 518 | func cancelOffer (L,Q,O,P) = { | |
506 | - | let | |
507 | - | let I = | |
508 | - | let K = | |
509 | - | let | |
519 | + | let bp = V(W) | |
520 | + | let I = bp._1 | |
521 | + | let K = bp._2 | |
522 | + | let aO = bp._3 | |
510 | 523 | if (if ((K != O)) | |
511 | 524 | then (K != P) | |
512 | 525 | else false) | |
513 | 526 | then throw("You cannot cancel this offer.") | |
514 | 527 | else { | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | [DeleteEntry(( | |
528 | + | let bl = N(O, L, P, Q) | |
529 | + | let bq = aj(bl) | |
530 | + | let al = bq._1 | |
531 | + | let ae = bq._2 | |
532 | + | let ak = bq._3 | |
533 | + | [DeleteEntry((bl + "_OPEN")), StringEntry((bl + "_CANCELLED"), ((((ak + "_CANCELLED_") + toString(aO)) + "_") + I)), ScriptTransfer(Address(fromBase58String(K)), parseIntValue(al[1]), ae)] | |
521 | 534 | } | |
522 | 535 | } | |
523 | 536 | ||
524 | 537 |
github/deemru/w8io/169f3d6 151.01 ms ◑