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