tx · 3oiW1RokM65Z5Kog6nGcWpqEWnEXnqhUedA4gDV4zo1o 3NBtqgyogzELLtwf1TAoKq6AeDEMKnTfxuu: -0.01000000 Waves 2021.06.14 09:04 [1569619] smart account 3NBtqgyogzELLtwf1TAoKq6AeDEMKnTfxuu > SELF 0.00000000 Waves
{ "type": 13, "id": "3oiW1RokM65Z5Kog6nGcWpqEWnEXnqhUedA4gDV4zo1o", "fee": 1000000, "feeAssetId": null, "timestamp": 1623650741847, "version": 2, "chainId": 84, "sender": "3NBtqgyogzELLtwf1TAoKq6AeDEMKnTfxuu", "senderPublicKey": "HhwQMNPY74tAEpbBnAfcCae8FVEChNWNTH5qFgfTyswt", "proofs": [ "uW6fqdpKZy6BfEHv5U77umGEcVfGWg3TTQtzPLr3C3PB2cVkbLojHZPVyibhDVeEDktddkWwGt1LKQUHYoGSTv7" ], "script": "base64:AAIEAAAAAAAAAEAIAhIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgUKAwgICBIECgIICBIFCgMICAgSBQoDCAgIAAAAKgAAAAAIdW5pdFRlc3QGAAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAACHNpZ25EYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQzI4aFNpdnJtc1RVWGFZRDF4NkwzNjJKNFpwVW5vVGRCAAAAAAxhcnR3b3Jrc0RhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05CeW5mYlhDMkthc3RVeGh1a2NNVWFFNThLOWNCZEI5VVkAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHADBQAAAAh1bml0VGVzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXQ0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QAAAAIFAAAADnJlcXVlc3REYXRhQXJyAAAAAAAAAAACBQAAAANuaWwAAAAAVFvxGw==", "height": 1569619, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let unitTest = true | |
5 | + | ||
6 | + | let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
7 | + | ||
8 | + | let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | + | ||
10 | + | let artworksDapp = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY")) | |
11 | + | ||
12 | + | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
13 | + | ||
14 | + | let userDapp = if (unitTest) | |
15 | + | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
16 | + | else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj")) | |
17 | + | ||
18 | + | let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
19 | + | ||
20 | + | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
21 | + | ||
22 | + | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
23 | + | ||
24 | + | let wavesAssetId = base58'' | |
25 | + | ||
26 | + | let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
27 | + | ||
28 | + | let signCut = 3 | |
29 | + | ||
30 | + | let creatorCut = 10 | |
31 | + | ||
32 | + | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
33 | + | ||
34 | + | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
35 | + | ||
36 | + | let userSuspended = "SUSPENDED" | |
37 | + | ||
38 | + | let userRemoved = "REMOVED" | |
39 | + | ||
40 | + | let artIllegal = "ILLEGAL" | |
41 | + | ||
42 | + | let artSuspended = "SUSPENDED" | |
43 | + | ||
44 | + | func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error") | |
45 | + | ||
46 | + | ||
47 | + | func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "") | |
48 | + | ||
49 | + | ||
50 | + | func getStrByK (key) = valueOrElse(getString(this, key), "") | |
51 | + | ||
52 | + | ||
53 | + | func getIntByK (key) = valueOrElse(getInteger(this, key), 0) | |
54 | + | ||
55 | + | ||
56 | + | func keyUserStatus (addr) = ("user_status_" + addr) | |
57 | + | ||
58 | + | ||
59 | + | func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr) | |
60 | + | ||
61 | + | ||
62 | + | func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr) | |
63 | + | ||
64 | + | ||
65 | + | func keyNFTData (id) = ("nft_" + id) | |
66 | + | ||
67 | + | ||
68 | + | func getIntByKFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
69 | + | ||
70 | + | ||
71 | + | let currentCertificationPrice = getIntByKFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
72 | + | ||
73 | + | func idCallerDate (i) = if (!(dappRunning)) | |
74 | + | then throw(maintenanceMSG) | |
75 | + | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
76 | + | ||
77 | + | ||
78 | + | func isPayment (i) = if ((size(i.payments) == 0)) | |
79 | + | then throw("No payment attached") | |
80 | + | else { | |
81 | + | let payment = value(i.payments[0]) | |
82 | + | let amount = value(payment.amount) | |
83 | + | $Tuple2(payment, amount) | |
84 | + | } | |
85 | + | ||
86 | + | ||
87 | + | func isSignArtNFT (id) = { | |
88 | + | let assetDetails = value(assetInfo(id)) | |
89 | + | if (if (if (if ((assetDetails.quantity != 1)) | |
90 | + | then true | |
91 | + | else (assetDetails.decimals != 0)) | |
92 | + | then true | |
93 | + | else (assetDetails.reissuable != false)) | |
94 | + | then true | |
95 | + | else (assetDetails.issuer != artworksDapp)) | |
96 | + | then false | |
97 | + | else true | |
98 | + | } | |
99 | + | ||
100 | + | ||
101 | + | func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId))) | |
102 | + | then (assetId != toBase58String(wavesAssetId)) | |
103 | + | else false) | |
104 | + | then (assetId != "WAVES") | |
105 | + | else false) | |
106 | + | then (assetId != toBase58String(usdnAssetId)) | |
107 | + | else false) | |
108 | + | then false | |
109 | + | else true | |
110 | + | ||
111 | + | ||
112 | + | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
113 | + | then unit | |
114 | + | else fromBase58String(assetId) | |
115 | + | ||
116 | + | ||
117 | + | func getSaleOwnerAndStatus (nftid) = { | |
118 | + | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
119 | + | if ((size(saleOwner) == 0)) | |
120 | + | then throw("NFT not found") | |
121 | + | else { | |
122 | + | let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid)) | |
123 | + | if ((saleStatus != "OPEN")) | |
124 | + | then throw("NFT not for sale") | |
125 | + | else saleOwner | |
126 | + | } | |
127 | + | } | |
128 | + | ||
129 | + | ||
130 | + | func getBidData (key) = { | |
131 | + | let bidData = getStrByK((key + "_OPEN")) | |
132 | + | if ((bidData == "")) | |
133 | + | then throw("Offer not found") | |
134 | + | else { | |
135 | + | let bidDataArr = split(bidData, "_") | |
136 | + | let assetId = getBidAssetId(bidDataArr[2]) | |
137 | + | $Tuple3(bidDataArr, assetId, bidData) | |
138 | + | } | |
139 | + | } | |
140 | + | ||
141 | + | ||
142 | + | func checkArtStatus (addr,id) = { | |
143 | + | let artStatus = getArtStrByK(keyFlag(addr, id)) | |
144 | + | if (if ((artStatus == artIllegal)) | |
145 | + | then true | |
146 | + | else (artStatus == artSuspended)) | |
147 | + | then throw(("Original Artwork flagged as " + artStatus)) | |
148 | + | else true | |
149 | + | } | |
150 | + | ||
151 | + | ||
152 | + | func checkArtistStatus (addr) = { | |
153 | + | let artistStatus = getUserStrByK(keyUserStatus(addr)) | |
154 | + | if (containsElement([userSuspended, userRemoved], artistStatus)) | |
155 | + | then throw(("Original Artist " + artistStatus)) | |
156 | + | else true | |
157 | + | } | |
158 | + | ||
159 | + | ||
160 | + | func checkNFTInfo (assetId) = { | |
161 | + | let nftData = split(getArtStrByK(keyNFTData(assetId)), "_") | |
162 | + | let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5])) | |
163 | + | if (if (!(checkArtStatus(nftData[6], nftData[5]))) | |
164 | + | then !(checkArtistStatus(nftData[6])) | |
165 | + | else false) | |
166 | + | then $Tuple4(false, nftData[5], nftData[6], artSignID) | |
167 | + | else $Tuple4(true, nftData[5], nftData[6], artSignID) | |
168 | + | } | |
169 | + | ||
170 | + | ||
171 | + | func checkARTExist (artId,creatorAddr) = { | |
172 | + | let artSignID = getArtStrByK(keySignID(creatorAddr, artId)) | |
173 | + | if ((size(artSignID) == 0)) | |
174 | + | then throw("Artwork not found on SIGN Art") | |
175 | + | else if (if (!(checkArtStatus(creatorAddr, artId))) | |
176 | + | then !(checkArtistStatus(creatorAddr)) | |
177 | + | else false) | |
178 | + | then false | |
179 | + | else true | |
180 | + | } | |
181 | + | ||
182 | + | ||
183 | + | func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = { | |
184 | + | let amountForSign = fraction(amount, signCut, 100) | |
185 | + | let amountForCreator = fraction(amount, creatorCut, 100) | |
186 | + | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
187 | + | let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId) | |
188 | + | let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId) | |
189 | + | let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId) | |
190 | + | let collectorNFT = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid)) | |
191 | + | $Tuple4(signFee, creatorFee, ownerFee, collectorNFT) | |
192 | + | } | |
193 | + | ||
194 | + | ||
195 | + | func validateMinSell (assetId,price) = { | |
196 | + | let minSellWaves = if (unitTest) | |
197 | + | then 10 | |
198 | + | else getIntByKFromOracle("waves_min_sell") | |
199 | + | let minSellUsdn = 1000000 | |
200 | + | let minSellSign = if (unitTest) | |
201 | + | then 1 | |
202 | + | else (currentCertificationPrice * 2) | |
203 | + | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
204 | + | then (minSellUsdn > price) | |
205 | + | else false) | |
206 | + | then (price != 0) | |
207 | + | else false) | |
208 | + | then true | |
209 | + | else if (if ((assetId == toBase58String(signAssetId))) | |
210 | + | then (minSellSign > price) | |
211 | + | else false) | |
212 | + | then (price != 0) | |
213 | + | else false) | |
214 | + | then true | |
215 | + | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
216 | + | then true | |
217 | + | else (assetId == "WAVES")) | |
218 | + | then (minSellWaves > price) | |
219 | + | else false) | |
220 | + | then (price != 0) | |
221 | + | else false) | |
222 | + | then false | |
223 | + | else true | |
224 | + | } | |
225 | + | ||
226 | + | ||
227 | + | @Callable(i) | |
228 | + | func sellNFT (price,asset) = { | |
229 | + | let $t081758214 = idCallerDate(i) | |
230 | + | let id = $t081758214._1 | |
231 | + | let caller = $t081758214._2 | |
232 | + | let date = $t081758214._3 | |
233 | + | let $t082228258 = isPayment(i) | |
234 | + | let payment = $t082228258._1 | |
235 | + | let amount = $t082228258._2 | |
236 | + | let nftId = if (if (isDefined(payment.assetId)) | |
237 | + | then isSignArtNFT(value(payment.assetId)) | |
238 | + | else false) | |
239 | + | then toBase58String(value(payment.assetId)) | |
240 | + | else throw("Only SIGN Art NFT accepted.") | |
241 | + | let $t084408509 = checkNFTInfo(nftId) | |
242 | + | let isValidNFT = $t084408509._1 | |
243 | + | let artId = $t084408509._2 | |
244 | + | let creatorAddr = $t084408509._3 | |
245 | + | let artSignID = $t084408509._4 | |
246 | + | if ((size(artSignID) == 0)) | |
247 | + | then throw("Artwork not found on SIGN Art") | |
248 | + | else if (!(isValidNFT)) | |
249 | + | then throw("Something went wrong") | |
250 | + | else if (!(acceptedAssetIds(asset))) | |
251 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
252 | + | else if ((price == 0)) | |
253 | + | then throw("Wrong minimum sell price") | |
254 | + | else if (!(validateMinSell(asset, price))) | |
255 | + | then throw("Wrong minimum sell price") | |
256 | + | else [StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)] | |
257 | + | } | |
258 | + | ||
259 | + | ||
260 | + | ||
261 | + | @Callable(i) | |
262 | + | func updateSalePrice (nftid,price,asset) = { | |
263 | + | let $t094239462 = idCallerDate(i) | |
264 | + | let id = $t094239462._1 | |
265 | + | let caller = $t094239462._2 | |
266 | + | let date = $t094239462._3 | |
267 | + | let $t094709539 = checkNFTInfo(nftid) | |
268 | + | let isValidNFT = $t094709539._1 | |
269 | + | let artId = $t094709539._2 | |
270 | + | let creatorAddr = $t094709539._3 | |
271 | + | let artSignID = $t094709539._4 | |
272 | + | if ((size(artSignID) == 0)) | |
273 | + | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
274 | + | else if (!(isValidNFT)) | |
275 | + | then throw("Something went wrong") | |
276 | + | else { | |
277 | + | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
278 | + | if ((saleOwner != caller)) | |
279 | + | then throw("You don't own this NFT") | |
280 | + | else { | |
281 | + | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid)) | |
282 | + | if ((saleStatus != "OPEN")) | |
283 | + | then throw("Sale not active") | |
284 | + | else if (!(acceptedAssetIds(asset))) | |
285 | + | then throw("Only SIGN, USDN or WAVES accepted") | |
286 | + | else if ((price == 0)) | |
287 | + | then throw("Wrong minimum sell price") | |
288 | + | else if (!(validateMinSell(asset, price))) | |
289 | + | then throw("Wrong minimum sell price") | |
290 | + | else { | |
291 | + | let saleKey = ((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) | |
292 | + | let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_") | |
293 | + | [StringEntry((saleKey + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))] | |
294 | + | } | |
295 | + | } | |
296 | + | } | |
297 | + | } | |
298 | + | ||
299 | + | ||
300 | + | ||
301 | + | @Callable(i) | |
302 | + | func cancelSale (nftid) = { | |
303 | + | let $t01071510754 = idCallerDate(i) | |
304 | + | let id = $t01071510754._1 | |
305 | + | let caller = $t01071510754._2 | |
306 | + | let date = $t01071510754._3 | |
307 | + | let $t01076210987 = checkNFTInfo(nftid) | |
308 | + | let isValidNFT = $t01076210987._1 | |
309 | + | let artId = $t01076210987._2 | |
310 | + | let creatorAddr = $t01076210987._3 | |
311 | + | let artSignID = $t01076210987._4 | |
312 | + | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
313 | + | if ((saleOwner != caller)) | |
314 | + | then throw("You don't own this NFT") | |
315 | + | else { | |
316 | + | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid)) | |
317 | + | if ((saleStatus != "OPEN")) | |
318 | + | then throw("Sale not active") | |
319 | + | else { | |
320 | + | let saleKey = ((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) | |
321 | + | let saleInfo = getStrByK((saleKey + "_OPEN")) | |
322 | + | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((saleKey + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))] | |
323 | + | } | |
324 | + | } | |
325 | + | } | |
326 | + | ||
327 | + | ||
328 | + | ||
329 | + | @Callable(i) | |
330 | + | func buyNFT (nftid) = { | |
331 | + | let $t01182211861 = idCallerDate(i) | |
332 | + | let id = $t01182211861._1 | |
333 | + | let caller = $t01182211861._2 | |
334 | + | let date = $t01182211861._3 | |
335 | + | let saleOwner = getSaleOwnerAndStatus(nftid) | |
336 | + | let $t01191711986 = checkNFTInfo(nftid) | |
337 | + | let isValidNFT = $t01191711986._1 | |
338 | + | let artId = $t01191711986._2 | |
339 | + | let creatorAddr = $t01191711986._3 | |
340 | + | let artSignID = $t01191711986._4 | |
341 | + | if ((size(artSignID) == 0)) | |
342 | + | then throw("Artwork not found on SIGN Art, cancel your sale.") | |
343 | + | else if (!(isValidNFT)) | |
344 | + | then throw("Something went wrong") | |
345 | + | else { | |
346 | + | let saleKey = ((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) | |
347 | + | let saleInfo = getStrByK((saleKey + "_OPEN")) | |
348 | + | if ((size(saleInfo) == 0)) | |
349 | + | then throw("Sale Not found!") | |
350 | + | else { | |
351 | + | let saleInfoArray = split(saleInfo, "_") | |
352 | + | if ((parseInt(saleInfoArray[1]) == 0)) | |
353 | + | then throw("Offer only") | |
354 | + | else { | |
355 | + | let $t01246412500 = isPayment(i) | |
356 | + | let payment = $t01246412500._1 | |
357 | + | let amount = $t01246412500._2 | |
358 | + | let paymentAssetStr = if (isDefined(payment.assetId)) | |
359 | + | then toBase58String(value(payment.assetId)) | |
360 | + | else "" | |
361 | + | if (if ((saleInfoArray[1] != toString(amount))) | |
362 | + | then true | |
363 | + | else (saleInfoArray[2] != paymentAssetStr)) | |
364 | + | then throw("Payment infos don't match.") | |
365 | + | else { | |
366 | + | let amountForSign = fraction(amount, signCut, 100) | |
367 | + | let amountForCreator = fraction(amount, creatorCut, 100) | |
368 | + | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
369 | + | let $t01301113139 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
370 | + | let signFee = $t01301113139._1 | |
371 | + | let creatorFee = $t01301113139._2 | |
372 | + | let ownerFee = $t01301113139._3 | |
373 | + | let collectorNFT = $t01301113139._4 | |
374 | + | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), signFee, creatorFee, ownerFee, collectorNFT] | |
375 | + | } | |
376 | + | } | |
377 | + | } | |
378 | + | } | |
379 | + | } | |
380 | + | ||
381 | + | ||
382 | + | ||
383 | + | @Callable(i) | |
384 | + | func setOffer (nftid) = { | |
385 | + | let $t01355813600 = idCallerDate(i) | |
386 | + | let id = $t01355813600._1 | |
387 | + | let offerOwner = $t01355813600._2 | |
388 | + | let date = $t01355813600._3 | |
389 | + | let $t01360813644 = isPayment(i) | |
390 | + | let payment = $t01360813644._1 | |
391 | + | let amount = $t01360813644._2 | |
392 | + | let assetId = if (!(isDefined(payment.assetId))) | |
393 | + | then "WAVES" | |
394 | + | else toBase58String(value(payment.assetId)) | |
395 | + | if (!(acceptedAssetIds(assetId))) | |
396 | + | then throw("asset not accepted") | |
397 | + | else if ((amount == 0)) | |
398 | + | then throw("Offer of 0 not allowed") | |
399 | + | else if (!(validateMinSell(assetId, amount))) | |
400 | + | then throw("Wrong minimum sell price") | |
401 | + | else { | |
402 | + | let $t01398414042 = checkNFTInfo(nftid) | |
403 | + | let isValidNFT = $t01398414042._1 | |
404 | + | let artId = $t01398414042._2 | |
405 | + | let creatorAddr = $t01398414042._3 | |
406 | + | if (!(isValidNFT)) | |
407 | + | then throw("Something went wrong") | |
408 | + | else { | |
409 | + | let saleOwner = getSaleOwnerAndStatus(nftid) | |
410 | + | [StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + offerOwner) + "_") + id))] | |
411 | + | } | |
412 | + | } | |
413 | + | } | |
414 | + | ||
415 | + | ||
416 | + | ||
417 | + | @Callable(i) | |
418 | + | func acceptOffer (nftid,offerId,offerOwner) = { | |
419 | + | let $t01459114662 = idCallerDate(i) | |
420 | + | let id = $t01459114662._1 | |
421 | + | let caller = $t01459114662._2 | |
422 | + | let date = $t01459114662._3 | |
423 | + | let saleOwner = getSaleOwnerAndStatus(nftid) | |
424 | + | if ((caller != saleOwner)) | |
425 | + | then throw("You cannot do this action") | |
426 | + | else { | |
427 | + | let bidKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
428 | + | let bidValue = getStrByK((bidKey + "_OPEN")) | |
429 | + | if ((bidValue == "")) | |
430 | + | then throw("Offer not found or not for sale") | |
431 | + | else { | |
432 | + | let $t01499215050 = checkNFTInfo(nftid) | |
433 | + | let isValidNFT = $t01499215050._1 | |
434 | + | let artId = $t01499215050._2 | |
435 | + | let creatorAddr = $t01499215050._3 | |
436 | + | if (!(isValidNFT)) | |
437 | + | then throw("Something went wrong") | |
438 | + | else { | |
439 | + | let saleKey = ((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) | |
440 | + | let saleValue = getStrByK((saleKey + "_OPEN")) | |
441 | + | if ((size(saleValue) == 0)) | |
442 | + | then throw("Sale Not found!") | |
443 | + | else { | |
444 | + | let saleValArr = split(saleValue, "_") | |
445 | + | let $t01540515460 = getBidData(bidKey) | |
446 | + | let bidDataArr = $t01540515460._1 | |
447 | + | let assetId = $t01540515460._2 | |
448 | + | let bidData = $t01540515460._3 | |
449 | + | let amount = value(parseInt(bidDataArr[1])) | |
450 | + | let $t01551715644 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6]) | |
451 | + | let signFee = $t01551715644._1 | |
452 | + | let creatorFee = $t01551715644._2 | |
453 | + | let ownerFee = $t01551715644._3 | |
454 | + | let collectorNFT = $t01551715644._4 | |
455 | + | [DeleteEntry((saleKey + "_OPEN")), DeleteEntry((bidKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((bidKey + "_CLOSED"), ((((bidValue + "_CLOSED_") + toString(date)) + "_") + id)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((((((makeString(saleValArr, "_") + "_CLOSED-OFFER_") + toString(date)) + "_") + id) + "_") + offerOwner) + "_") + toString(amount)) + "_") + toBase58String(value(assetId)))), signFee, creatorFee, ownerFee, collectorNFT] | |
456 | + | } | |
457 | + | } | |
458 | + | } | |
459 | + | } | |
460 | + | } | |
461 | + | ||
462 | + | ||
463 | + | ||
464 | + | @Callable(i) | |
465 | + | func cancelOffer (nftid,offerId,saleOwner) = { | |
466 | + | let $t01631116373 = idCallerDate(i) | |
467 | + | let id = $t01631116373._1 | |
468 | + | let caller = $t01631116373._2 | |
469 | + | let date = $t01631116373._3 | |
470 | + | let bidKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
471 | + | let $t01645116506 = getBidData(bidKey) | |
472 | + | let bidDataArr = $t01645116506._1 | |
473 | + | let assetId = $t01645116506._2 | |
474 | + | let bidData = $t01645116506._3 | |
475 | + | [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
476 | + | } | |
477 | + | ||
478 | + | ||
479 | + | ||
480 | + | @Callable(i) | |
481 | + | func makeRequest (artId,creatorAddr) = { | |
482 | + | let $t01684416888 = idCallerDate(i) | |
483 | + | let id = $t01684416888._1 | |
484 | + | let requestOwner = $t01684416888._2 | |
485 | + | let date = $t01684416888._3 | |
486 | + | let $t01689616932 = isPayment(i) | |
487 | + | let payment = $t01689616932._1 | |
488 | + | let amount = $t01689616932._2 | |
489 | + | let assetId = if (!(isDefined(payment.assetId))) | |
490 | + | then "WAVES" | |
491 | + | else toBase58String(value(payment.assetId)) | |
492 | + | if (!(acceptedAssetIds(assetId))) | |
493 | + | then throw("asset not accepted") | |
494 | + | else if (!(validateMinSell(assetId, amount))) | |
495 | + | then throw("Wrong minimum sell price") | |
496 | + | else { | |
497 | + | let isValidART = checkARTExist(artId, creatorAddr) | |
498 | + | if (!(isValidART)) | |
499 | + | then throw("Something went wrong") | |
500 | + | else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))] | |
501 | + | } | |
502 | + | } | |
503 | + | ||
504 | + | ||
505 | + | ||
506 | + | @Callable(i) | |
507 | + | func fillRequest (artId,requestOwner,offerId) = { | |
508 | + | let $t01775617798 = idCallerDate(i) | |
509 | + | let id = $t01775617798._1 | |
510 | + | let saleOwner = $t01775617798._2 | |
511 | + | let date = $t01775617798._3 | |
512 | + | let $t01780417848 = isPayment(i) | |
513 | + | let payment = $t01780417848._1 | |
514 | + | let amountAttached = $t01780417848._2 | |
515 | + | let NFTid = if (if (isDefined(payment.assetId)) | |
516 | + | then isSignArtNFT(value(payment.assetId)) | |
517 | + | else false) | |
518 | + | then payment.assetId | |
519 | + | else throw("No NFT found") | |
520 | + | let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_") | |
521 | + | if ((size(NFTdata) == 0)) | |
522 | + | then throw("No NFT found") | |
523 | + | else { | |
524 | + | let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_") | |
525 | + | if ((size(requestData) == 1)) | |
526 | + | then throw("No request found") | |
527 | + | else if ((requestData[3] != NFTdata[5])) | |
528 | + | then throw("This NFT don't match the requested artwork") | |
529 | + | else { | |
530 | + | let amount = value(parseInt(requestData[1])) | |
531 | + | let $t01858118756 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4]) | |
532 | + | let signFee = $t01858118756._1 | |
533 | + | let creatorFee = $t01858118756._2 | |
534 | + | let ownerFee = $t01858118756._3 | |
535 | + | let collectorNFT = $t01858118756._4 | |
536 | + | [DeleteEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), signFee, creatorFee, ownerFee, collectorNFT] | |
537 | + | } | |
538 | + | } | |
539 | + | } | |
540 | + | ||
541 | + | ||
542 | + | ||
543 | + | @Callable(i) | |
544 | + | func cancelRequest (artId,creatorAddr,requestId) = { | |
545 | + | let $t01932119365 = idCallerDate(i) | |
546 | + | let id = $t01932119365._1 | |
547 | + | let requestOwner = $t01932119365._2 | |
548 | + | let date = $t01932119365._3 | |
549 | + | let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId) | |
550 | + | let requestData = getStrByK((requesDataKey + "_OPEN")) | |
551 | + | if ((size(requestData) == 0)) | |
552 | + | then throw("Request not found") | |
553 | + | else { | |
554 | + | let requestDataArr = split(requestData, "_") | |
555 | + | [DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))] | |
556 | + | } | |
557 | + | } | |
558 | + | ||
559 | + |
github/deemru/w8io/169f3d6 49.13 ms ◑