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