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