tx · 45jhS8bwM6BEqnwxZ3CTjJbePQ6mfDsHfP9o5ePtHvEn

3Mphy9ot4bAgWK7xnffSVo754yhtYAXpXwk:  -0.01400000 Waves

2021.06.04 14:37 [1555575] smart account 3Mphy9ot4bAgWK7xnffSVo754yhtYAXpXwk > SELF 0.00000000 Waves

{ "type": 13, "id": "45jhS8bwM6BEqnwxZ3CTjJbePQ6mfDsHfP9o5ePtHvEn", "fee": 1400000, "feeAssetId": null, "timestamp": 1622806675658, "version": 2, "chainId": 84, "sender": "3Mphy9ot4bAgWK7xnffSVo754yhtYAXpXwk", "senderPublicKey": "6yHEdhuT6bjBWoiyk6ZRaaM6PjzmDADqxrJD6HWGEjaL", "proofs": [ "3YZvrDpSS7HTQLCK5DMgighjaAnRjUeLroX3CGAF3usnkMgYbKGgxRdot6Eg2AGHwTTowCkFnXko6MF4ieDBN3AJ" ], "script": "base64:AAIEAAAAAAAAAEUIAhIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgUKAwgICBIECgIICBIFCgMICAgSBQoDCAgIEgMKAQgAAAAoAAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAADGFydHdvcmtzRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkJ5bmZiWEMyS2FzdFV4aHVrY01VYUU1OEs5Y0JkQjlVWQAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAEC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1ZXNEYXRhS2V5AgAAAAVfT1BFTgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAANcmVxdWVzRGF0YUtleQIAAAABXwkAAaQAAAABBQAAAARkYXRlAgAAAAFfBQAAAAJpZAIAAAAKX0NBTkNFTExFRAkAASwAAAACCQABLAAAAAIFAAAAC3JlcXVlc3REYXRhAgAAAAFfCQABpAAAAAEFAAAABGRhdGUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAADHJlcXVlc3RPd25lcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAADnJlcXVlc3REYXRhQXJyAAAAAAAAAAABCQACWQAAAAEJAAGRAAAAAgUAAAAOcmVxdWVzdERhdGFBcnIAAAAAAAAAAAIFAAAAA25pbAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFY2hyaXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAAAIn5+I", "height": 1555575, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 9Y99RCn4xTfMdTiV2doisiF5XXCAnLWjy7CJEJHdEvU Full:
OldNewDifferences
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 idCallerDate (i) = if (!(dappRunning))
71+ then throw(maintenanceMSG)
72+ else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
73+
74+
75+func isPayment (i) = if ((size(i.payments) == 0))
76+ then throw("No payment attached")
77+ else {
78+ let payment = value(i.payments[0])
79+ let amount = value(payment.amount)
80+ $Tuple2(payment, amount)
81+ }
82+
83+
84+func isSignArtNFT (id) = {
85+ let assetDetails = value(assetInfo(id))
86+ if (if (if (if ((assetDetails.quantity != 1))
87+ then true
88+ else (assetDetails.decimals != 0))
89+ then true
90+ else (assetDetails.reissuable != false))
91+ then true
92+ else (assetDetails.issuer != artworksDapp))
93+ then false
94+ else true
95+ }
96+
97+
98+func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId)))
99+ then (assetId != toBase58String(wavesAssetId))
100+ else false)
101+ then (assetId != "WAVES")
102+ else false)
103+ then (assetId != toBase58String(usdnAssetId))
104+ else false)
105+ then false
106+ else true
107+
108+
109+func getBidAssetId (assetId) = if ((assetId == "WAVES"))
110+ then unit
111+ else fromBase58String(assetId)
112+
113+
114+func getSaleOwnerAndStatus (nftid) = {
115+ let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
116+ if ((size(saleOwner) == 0))
117+ then throw("NFT not found")
118+ else {
119+ let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid))
120+ if ((saleStatus != "OPEN"))
121+ then throw("NFT not for sale")
122+ else saleOwner
123+ }
124+ }
125+
126+
127+func getBidData (key) = {
128+ let bidData = getStrByK((key + "_OPEN"))
129+ if ((bidData == ""))
130+ then throw("Offer not found")
131+ else {
132+ let bidDataArr = split(bidData, "_")
133+ let assetId = getBidAssetId(bidDataArr[2])
134+ $Tuple3(bidDataArr, assetId, bidData)
135+ }
136+ }
137+
138+
139+func checkArtStatus (addr,id) = {
140+ let artStatus = getArtStrByK(keyFlag(addr, id))
141+ if (if ((artStatus == artIllegal))
142+ then true
143+ else (artStatus == artSuspended))
144+ then throw(("Original Artwork flagged as " + artStatus))
145+ else true
146+ }
147+
148+
149+func checkArtistStatus (addr) = {
150+ let artistStatus = getUserStrByK(keyUserStatus(addr))
151+ if (containsElement([userSuspended, userRemoved], artistStatus))
152+ then throw(("Original Artist " + artistStatus))
153+ else true
154+ }
155+
156+
157+func checkNFTInfo (assetId) = {
158+ let nftData = split(getArtStrByK(keyNFTData(assetId)), "_")
159+ let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5]))
160+ if ((size(artSignID) == 0))
161+ then throw("Artwork not found on SIGN Art")
162+ else if (if (!(checkArtStatus(nftData[6], nftData[5])))
163+ then !(checkArtistStatus(nftData[6]))
164+ else false)
165+ then $Tuple3(false, nftData[5], nftData[6])
166+ else $Tuple3(true, nftData[5], nftData[6])
167+ }
168+
169+
170+func checkARTExist (artId,creatorAddr) = {
171+ let artSignID = getArtStrByK(keySignID(creatorAddr, artId))
172+ if ((size(artSignID) == 0))
173+ then throw("Artwork not found on SIGN Art")
174+ else if (if (!(checkArtStatus(creatorAddr, artId)))
175+ then !(checkArtistStatus(creatorAddr))
176+ else false)
177+ then false
178+ else true
179+ }
180+
181+
182+func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = {
183+ let amountForSign = fraction(amount, signCut, 100)
184+ let amountForCreator = fraction(amount, creatorCut, 100)
185+ let amountForOwner = (amount - (amountForSign + amountForCreator))
186+ let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)
187+ let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId)
188+ let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId)
189+ let collectorFee = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))
190+ $Tuple4(signFee, creatorFee, ownerFee, collectorFee)
191+ }
192+
193+
194+@Callable(i)
195+func sellNFT (price,asset) = {
196+ let $t071147153 = idCallerDate(i)
197+ let id = $t071147153._1
198+ let caller = $t071147153._2
199+ let date = $t071147153._3
200+ let $t071587194 = isPayment(i)
201+ let payment = $t071587194._1
202+ let amount = $t071587194._2
203+ let nftId = if (if (isDefined(payment.assetId))
204+ then isSignArtNFT(value(payment.assetId))
205+ else false)
206+ then toBase58String(value(payment.assetId))
207+ else throw("Only SIGN Art NFT accepted.")
208+ if (!(acceptedAssetIds(asset)))
209+ then throw("Only SIGN, USDN or WAVES accepted")
210+ else {
211+ let $t074957553 = checkNFTInfo(nftId)
212+ let isValidNFT = $t074957553._1
213+ let artId = $t074957553._2
214+ let creatorAddr = $t074957553._3
215+ if (!(isValidNFT))
216+ then throw("Something went wrong")
217+ else [StringEntry((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)]
218+ }
219+ }
220+
221+
222+
223+@Callable(i)
224+func updateSalePrice (nftid,price,asset) = {
225+ let $t080608099 = idCallerDate(i)
226+ let id = $t080608099._1
227+ let caller = $t080608099._2
228+ let date = $t080608099._3
229+ let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
230+ if ((saleOwner != caller))
231+ then throw("You don't own this NFT")
232+ else {
233+ let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
234+ if ((saleStatus != "OPEN"))
235+ then throw("Sale not active")
236+ else {
237+ let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
238+ let saleInfo = split(getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)), "_")
239+[StringEntry((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
240+ }
241+ }
242+ }
243+
244+
245+
246+@Callable(i)
247+func cancelSale (nftid) = {
248+ let $t090689107 = idCallerDate(i)
249+ let id = $t090689107._1
250+ let caller = $t090689107._2
251+ let date = $t090689107._3
252+ let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
253+ if ((saleOwner != caller))
254+ then throw("You don't own this NFT")
255+ else {
256+ let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
257+ if ((saleStatus != "OPEN"))
258+ then throw("Sale not active")
259+ else {
260+ let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
261+ let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus))
262+[DeleteEntry((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))]
263+ }
264+ }
265+ }
266+
267+
268+
269+@Callable(i)
270+func buyNFT (nftid) = {
271+ let $t01025310324 = idCallerDate(i)
272+ let id = $t01025310324._1
273+ let caller = $t01025310324._2
274+ let date = $t01025310324._3
275+ let saleOwner = getSaleOwnerAndStatus(nftid)
276+ let $t01037910437 = checkNFTInfo(nftid)
277+ let isValidNFT = $t01037910437._1
278+ let artId = $t01037910437._2
279+ let creatorAddr = $t01037910437._3
280+ if (!(isValidNFT))
281+ then throw("Something went wrong")
282+ else {
283+ let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"))
284+ if ((size(saleInfo) == 0))
285+ then throw("Sale Not found!")
286+ else {
287+ let saleInfoArray = split(saleInfo, "_")
288+ if ((parseInt(saleInfoArray[1]) == 0))
289+ then throw("Offer only")
290+ else {
291+ let $t01077210808 = isPayment(i)
292+ let payment = $t01077210808._1
293+ let amount = $t01077210808._2
294+ let paymentAssetStr = if (isDefined(payment.assetId))
295+ then toBase58String(value(payment.assetId))
296+ else ""
297+ if (if ((saleInfoArray[1] != toString(amount)))
298+ then true
299+ else (saleInfoArray[2] != paymentAssetStr))
300+ then throw("Payment infos don't match.")
301+ else {
302+ let amountForSign = fraction(amount, signCut, 100)
303+ let amountForCreator = fraction(amount, creatorCut, 100)
304+ let amountForOwner = (amount - (amountForSign + amountForCreator))
305+ let $t01131711445 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
306+ let signFee = $t01131711445._1
307+ let creatorFee = $t01131711445._2
308+ let ownerFee = $t01131711445._3
309+ let collectorFee = $t01131711445._4
310+[DeleteEntry((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + caller) + "_") + id)), signFee, creatorFee, ownerFee, collectorFee]
311+ }
312+ }
313+ }
314+ }
315+ }
316+
317+
318+
319+@Callable(i)
320+func setOffer (nftid) = {
321+ let $t01249512537 = idCallerDate(i)
322+ let id = $t01249512537._1
323+ let offerOwner = $t01249512537._2
324+ let date = $t01249512537._3
325+ let $t01254212578 = isPayment(i)
326+ let payment = $t01254212578._1
327+ let amount = $t01254212578._2
328+ let assetId = if (!(isDefined(payment.assetId)))
329+ then "WAVES"
330+ else toBase58String(value(payment.assetId))
331+ if (!(acceptedAssetIds(assetId)))
332+ then throw("asset not accepted")
333+ else {
334+ let $t01276412822 = checkNFTInfo(nftid)
335+ let isValidNFT = $t01276412822._1
336+ let artId = $t01276412822._2
337+ let creatorAddr = $t01276412822._3
338+ if (!(isValidNFT))
339+ then throw("Something went wrong")
340+ else {
341+ let saleOwner = getSaleOwnerAndStatus(nftid)
342+[StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + artId) + "_") + offerOwner) + "_") + id))]
343+ }
344+ }
345+ }
346+
347+
348+
349+@Callable(i)
350+func acceptOffer (nftid,offerId,offerOwner) = {
351+ let $t01338013450 = idCallerDate(i)
352+ let id = $t01338013450._1
353+ let caller = $t01338013450._2
354+ let date = $t01338013450._3
355+ let saleOwner = getSaleOwnerAndStatus(nftid)
356+ if ((caller != saleOwner))
357+ then throw("You cannot do this action")
358+ else {
359+ let offerExist = getStrByK((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) + "_OPEN"))
360+ if ((offerExist == ""))
361+ then throw("Offer not found or not for sale")
362+ else {
363+ let $t01375513813 = checkNFTInfo(nftid)
364+ let isValidNFT = $t01375513813._1
365+ let artId = $t01375513813._2
366+ let creatorAddr = $t01375513813._3
367+ if (!(isValidNFT))
368+ then throw("Something went wrong")
369+ else {
370+ let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"))
371+ if ((size(saleInfo) == 0))
372+ then throw("Sale Not found!")
373+ else {
374+ let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
375+ let $t01414914208 = getBidData(bidDataKey)
376+ let bidDataArr = $t01414914208._1
377+ let assetId = $t01414914208._2
378+ let bidData = $t01414914208._3
379+ let amount = value(parseInt(bidDataArr[1]))
380+ let $t01426214389 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3])
381+ let signFee = $t01426214389._1
382+ let creatorFee = $t01426214389._2
383+ let ownerFee = $t01426214389._3
384+ let collectorFee = $t01426214389._4
385+[DeleteEntry((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry((bidDataKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + artId) + "_") + offerOwner) + "_") + offerId)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_to_") + offerOwner)), signFee, creatorFee, ownerFee, collectorFee]
386+ }
387+ }
388+ }
389+ }
390+ }
391+
392+
393+
394+@Callable(i)
395+func cancelOffer (nftid,offerId,saleOwner) = {
396+ let $t01520915270 = idCallerDate(i)
397+ let id = $t01520915270._1
398+ let caller = $t01520915270._2
399+ let date = $t01520915270._3
400+ let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
401+ let $t01535115410 = getBidData(bidDataKey)
402+ let bidDataArr = $t01535115410._1
403+ let assetId = $t01535115410._2
404+ let bidData = $t01535115410._3
405+[DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
406+ }
407+
408+
409+
410+@Callable(i)
411+func makeRequest (artId,creatorAddr) = {
412+ let $t01574515789 = idCallerDate(i)
413+ let id = $t01574515789._1
414+ let requestOwner = $t01574515789._2
415+ let date = $t01574515789._3
416+ let $t01579415830 = isPayment(i)
417+ let payment = $t01579415830._1
418+ let amount = $t01579415830._2
419+ let assetId = if (!(isDefined(payment.assetId)))
420+ then "WAVES"
421+ else toBase58String(value(payment.assetId))
422+ if (!(acceptedAssetIds(assetId)))
423+ then throw("asset not accepted")
424+ else {
425+ let isValidART = checkARTExist(artId, creatorAddr)
426+ if (!(isValidART))
427+ then throw("Something went wrong")
428+ else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))]
429+ }
430+ }
431+
432+
433+
434+@Callable(i)
435+func fillRequest (artId,requestOwner,offerId) = {
436+ let $t01660516647 = idCallerDate(i)
437+ let id = $t01660516647._1
438+ let saleOwner = $t01660516647._2
439+ let date = $t01660516647._3
440+ let $t01665216696 = isPayment(i)
441+ let payment = $t01665216696._1
442+ let amountAttached = $t01665216696._2
443+ let NFTid = if (if (isDefined(payment.assetId))
444+ then isSignArtNFT(value(payment.assetId))
445+ else false)
446+ then payment.assetId
447+ else throw("No NFT found")
448+ let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_")
449+ if ((size(NFTdata) == 0))
450+ then throw("No NFT found")
451+ else {
452+ let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_")
453+ if ((size(requestData) == 1))
454+ then throw("No request found")
455+ else if ((requestData[3] != NFTdata[5]))
456+ then throw("This NFT don't match the requested artwork")
457+ else {
458+ let amount = value(parseInt(requestData[1]))
459+ let $t01741617591 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
460+ let signFee = $t01741617591._1
461+ let creatorFee = $t01741617591._2
462+ let ownerFee = $t01741617591._3
463+ let collectorFee = $t01741617591._4
464+[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, collectorFee]
465+ }
466+ }
467+ }
468+
469+
470+
471+@Callable(i)
472+func cancelRequest (artId,creatorAddr,requestId) = {
473+ let $t01805118095 = idCallerDate(i)
474+ let id = $t01805118095._1
475+ let requestOwner = $t01805118095._2
476+ let date = $t01805118095._3
477+ let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId)
478+ let requestData = getStrByK((requesDataKey + "_OPEN"))
479+ if ((size(requestData) == 0))
480+ then throw("Request not found")
481+ else {
482+ let requestDataArr = split(requestData, "_")
483+[DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))]
484+ }
485+ }
486+
487+
488+
489+@Callable(i)
490+func deleteEntry (entry) = {
491+ let caller = toString(addressFromPublicKey(i.callerPublicKey))
492+ if ((caller == chris))
493+ then [DeleteEntry(entry)]
494+ else throw("no")
495+ }
496+
497+

github/deemru/w8io/026f985 
39.37 ms