tx · FVC58Wazb9odxubs8ZnKFXRKFzEc2xXgXYXmkXb3vRKB

3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA:  -0.01000000 Waves

2021.10.10 15:41 [1740185] smart account 3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA > SELF 0.00000000 Waves

{ "type": 13, "id": "FVC58Wazb9odxubs8ZnKFXRKFzEc2xXgXYXmkXb3vRKB", "fee": 1000000, "feeAssetId": null, "timestamp": 1633869775020, "version": 2, "chainId": 84, "sender": "3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA", "senderPublicKey": "9abKuN1XmLjjire2feZH26PmcEWhEXxiHToWSmii3Gn2", "proofs": [ "RAVFsBXbXS5zh5b8GEH1CZffFLPYuHBoCixJHZrTcHsj8cGcLMtPKyPHfXa6pVHrGqaf3GhbpNuF2S3ZT8mVR3t" ], "script": "base64:AAIFAAAAAAAAAEUIAhIFCgMBCAgSCQoHCAgICAgICBIICgYIAQEICAESBAoCCAgSBQoDCAgIEgMKAQgSBAoCCAgSBgoECAgICBIFCgMICAgAAABOAAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXBaUWp6R29nbWlmY0VLZThtRGQ2cmliTDdueFQ5QUN5ZQAAAAALZmVlUmVjZWl2ZXICAAAAIzNONjV4THE4SmNDZWFFaVIxVEpRN2RCcVhCdkV5NkU0OFd6AAAAAAhjZXJ0RGFwcAIAAAAjM014Y1hyTmJNWktZYVNyaGNmZU1tMmhabkJlQ3UzeVJXc3cAAAAACHVzZXJEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOOWNRZ1pGUEhIVnU4d3FzbjJEa1FGZWhnM2g4Q05pb29BAAAAAA13aGl0ZWxpc3REYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOOXhaWUdwek1GRFh2WHVjdG1VNnpWOHFTem0yWmZGMzFmAAAAAAtV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wZQUAAAAMYXVjdGlvblR5cGUxCQEAAAAXYWNjZXB0QmlkTm9uVHJhZGl0aW9uYWwAAAAFBQAAAAFpBQAAAAVhcnRJZAUAAAAGaXNzdWVyBQAAAAViaWRJZAUAAAAIYmlkT3duZXIDCQAAAAAAAAIFAAAAC2F1Y3Rpb25UeXBlBQAAAAxhdWN0aW9uVHlwZTIJAQAAABRhY2NlcHRCaWRUcmFkaXRpb25hbAAAAAUFAAAAAWkFAAAABWFydElkBQAAAAZpc3N1ZXIFAAAABWJpZElkBQAAAAhiaWRPd25lcgkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAWVW5rbm93biBhdWN0aW9uIHR5cGUgOgUAAAALYXVjdGlvblR5cGUCAAAAGywgcGxlYXNlIGNvbnRhY3QgdGhlIGFkbWlucwAAAAFpAQAAAAljYW5jZWxCaWQAAAADAAAABWFydElkAAAABmlzc3VlcgAAAAViaWRJZAQAAAALYXVjdGlvblR5cGUJAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEJAQAAAA5rZXlBdWN0aW9uVHlwZQAAAAIFAAAABmlzc3VlcgUAAAAFYXJ0SWQDCQAAAAAAAAIFAAAAC2F1Y3Rpb25UeXBlBQAAAAxhdWN0aW9uVHlwZTEJAQAAAA1jYW5jZWxCaWRJbXBsAAAABAUAAAABaQUAAAAFYXJ0SWQFAAAABmlzc3VlcgUAAAAFYmlkSWQJAQAAABhjYW5jZWxCaWRJbXBsVHJhZGl0aW9uYWwAAAAEBQAAAAFpBQAAAAVhcnRJZAUAAAAGaXNzdWVyBQAAAAViaWRJZAAAAADfGEMm", "height": 1740185, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2CdVoqS9tPHRqkHUTveMhdsq3nf9Dx92jUtLhSkxuXke Next: FgSf1iBWVKaUeSvMZqtZs1gaReA4WsGAEtKUZp7eusTh Diff:
OldNewDifferences
1818 let owners = [getString(oracleFee, "owner1"), getString(oracleFee, "owner2")]
1919
2020 let USDNFirstSellCut = 150
21-
22-let USDNSecondSellCut = 30
23-
24-let originalCreatorCut = 70
2521
2622 let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true)
2723
696692
697693
698694 @Callable(i)
695+func updateTags (artist,artId,tags) = if ((size(split(tags, ",")) > 5))
696+ then throw("5 tags max.")
697+ else {
698+ let tagsOld = getStringByKeyOrError(keyTags(artist, artId), "No tags created with this key, so can't update!")
699+ if ((tags == tagsOld))
700+ then throw("Tags are the same as old tags!")
701+ else [StringEntry(keyTags(artist, artId), tags)]
702+ }
703+
704+
705+
706+@Callable(i)
699707 func deleteEntry (entry) = {
700708 let caller = toString(addressFromPublicKey(i.callerPublicKey))
701709 if (containsElement(owners, caller))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let unitTest = false
55
66 let oracleFee = value(addressFromString("3MpZQjzGogmifcEKe8mDd6ribL7nxT9ACye"))
77
88 let feeReceiver = "3N65xLq8JcCeaEiR1TJQ7dBqXBvEy6E48Wz"
99
1010 let certDapp = "3MxcXrNbMZKYaSrhcfeMm2hZnBeCu3yRWsw"
1111
1212 let userDapp = value(addressFromString("3N9cQgZFPHHVu8wqsn2DkQFehg3h8CNiooA"))
1313
1414 let whitelistDapp = value(addressFromString("3N9xZYGpzMFDXvXuctmU6zV8qSzm2ZfF31f"))
1515
1616 let USDNAssetId = base58'132maRL3uF35tc2bpRih9D6MYq5DR6H28zkop786dKyu'
1717
1818 let owners = [getString(oracleFee, "owner1"), getString(oracleFee, "owner2")]
1919
2020 let USDNFirstSellCut = 150
21-
22-let USDNSecondSellCut = 30
23-
24-let originalCreatorCut = 70
2521
2622 let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true)
2723
2824 let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "")
2925
3026 let userSuspended = "SUSPENDED"
3127
3228 let userRemoved = "REMOVED"
3329
3430 let userUnregistered = "UNREGISTERED"
3531
3632 let userAllowed = "ALLOWED"
3733
3834 let auctionType1 = "BIDTYPE"
3935
4036 let auctionType2 = "TRADITIONAL"
4137
4238 let auctionType3 = "DIRECT"
4339
4440 func getStringByKeyFromUsers (key) = valueOrElse(getString(userDapp, key), "")
4541
4642
4743 func getStringByKey (key) = valueOrElse(getString(this, key), "")
4844
4945
5046 func getStringByKeyOrError (key,error) = valueOrErrorMessage(getString(this, key), error)
5147
5248
5349 func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle")
5450
5551
5652 func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
5753
5854
5955 func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0)
6056
6157
6258 func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false)
6359
6460
6561 func validateHash (hash) = (size(hash) == 64)
6662
6763
6864 func keyUserStatus (caller) = ("user_status_" + caller)
6965
7066
7167 func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller)
7268
7369
7470 func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller)
7571
7672
7773 func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller)
7874
7975
8076 func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller)
8177
8278
8379 func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller)
8480
8581
8682 func keyHighestBidBidId (artId) = ("art_highestBidBidId_" + artId)
8783
8884
8985 func keyBidId (bidId) = ("bid_" + bidId)
9086
9187
9288 func keyDuration (caller,artId) = ((("art_duration_" + artId) + "_") + caller)
9389
9490
9591 func keyEndHeight (caller,artId) = ((("art_endheight_" + artId) + "_") + caller)
9692
9793
9894 func keyAuctionType (caller,artId) = ((("art_auctiontype_" + artId) + "_") + caller)
9995
10096
10197 func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller)
10298
10399
104100 func KeyNftIssuer (nftId) = ("nft_issued_" + nftId)
105101
106102
107103 func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller)
108104
109105
110106 func keyEntitlement (caller,artId) = ((("art_entitlement_" + artId) + "_") + caller)
111107
112108
113109 func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller)
114110
115111
116112 func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller)
117113
118114
119115 func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller)
120116
121117
122118 func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller)
123119
124120
125121 func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller)
126122
127123
128124 func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash)
129125
130126
131127 func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller)))))
132128
133129
134130 let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(USDNAssetId)))
135131
136132 func getAmountByBidId (bidId) = valueOrElse(getIntegerByKey(keyBidId(bidId)), 0)
137133
138134
139135 func getAmountHighestBidByArtId (artId) = {
140136 let bidId = getStringByKey(keyHighestBidBidId(artId))
141137 if ((bidId == ""))
142138 then 0
143139 else getAmountByBidId(bidId)
144140 }
145141
146142
147143 func validateString (str,max) = if ((size(str) == 0))
148144 then throw("Field cannot be is empty")
149145 else if ((size(str) > max))
150146 then throw((str + " is too long"))
151147 else true
152148
153149
154150 func validateUser (caller) = {
155151 let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered)
156152 if (if ((userStatus == userUnregistered))
157153 then true
158154 else (userStatus == userAllowed))
159155 then "Register this account first with 'Account' tab"
160156 else if ((userStatus == userSuspended))
161157 then "Account suspended"
162158 else if ((userStatus == userRemoved))
163159 then "Account removed"
164160 else ""
165161 }
166162
167163
168164 func validateArtworkData (caller,cidDisplay,name,description,tags) = {
169165 let checkUser = validateUser(caller)
170166 if ((checkUser != ""))
171167 then throw(checkUser)
172168 else if ((size(cidDisplay) == 0))
173169 then throw("Display CID cannot be empty")
174170 else if ((size(cidDisplay) != 46))
175171 then throw("This doesn't seem a valid CID!")
176172 else if (!(validateString(name, 100)))
177173 then throw("100 Char. max name")
178174 else if (!(validateString(description, 1000)))
179175 then throw("1000 Char. max description")
180176 else if ((size(split(tags, ",")) > 5))
181177 then throw("5 tags max.")
182178 else ""
183179 }
184180
185181
186182 func isPayment (i) = if ((size(i.payments) == 0))
187183 then throw("No payment attached")
188184 else {
189185 let payment = value(i.payments[0])
190186 let amount = value(payment.amount)
191187 $Tuple2(payment, amount)
192188 }
193189
194190
195191 func validatePayment (i) = {
196192 let t089829018 = isPayment(i)
197193 let payment = t089829018._1
198194 let amount = t089829018._2
199195 let assetId = if (if (isDefined(payment.assetId))
200196 then (payment.assetId == USDNAssetId)
201197 else false)
202198 then payment.assetId
203199 else throw("Only USDN token accepted as transaction fee")
204200 if ((amount != currentCertificationPrice))
205201 then throw(((("Payment amount should be " + toString(currentCertificationPrice)) + " but is: ") + toString(amount)))
206202 else $Tuple2(amount, assetId)
207203 }
208204
209205
210206 func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) {
211207 case b: Int =>
212208 if ((b != 0))
213209 then true
214210 else false
215211 case _ =>
216212 false
217213 }
218214
219215
220216 func validatePriceAssetId (i,priceAssetId,artworkPrice) = {
221217 let t096119647 = isPayment(i)
222218 let payment = t096119647._1
223219 let amount = t096119647._2
224220 let assetId = if (!(isDefined(payment.assetId)))
225221 then throw("Wrong asset id")
226222 else if (if ((size(priceAssetId) > 0))
227223 then (toBase58String(value(payment.assetId)) == priceAssetId)
228224 else false)
229225 then payment.assetId
230226 else throw("Wrong asset id")
231227 if (if ((assetId == unit))
232228 then (priceAssetId != "")
233229 else false)
234230 then throw("Wrong asset id")
235231 else if ((artworkPrice != amount))
236232 then throw(((("Payment don't match " + toString(artworkPrice)) + " ") + toString(amount)))
237233 else $Tuple2(amount, assetId)
238234 }
239235
240236
241237 func acceptedAssetIds (assetId) = if ((assetId != toBase58String(USDNAssetId)))
242238 then throw("Only USDN accepted")
243239 else true
244240
245241
246242 func validateMinSell (assetId,price) = {
247243 let minSellSconex = if (unitTest)
248244 then 1
249245 else (currentCertificationPrice * 2)
250246 if (if (if ((assetId == toBase58String(USDNAssetId)))
251247 then (minSellSconex > price)
252248 else false)
253249 then (price != 0)
254250 else false)
255251 then throw(("Wrong minimum sell price " + toString(minSellSconex)))
256252 else true
257253 }
258254
259255
260256 func getBidAssetId (assetId) = if ((assetId == "WAVES"))
261257 then throw("Only USDN is accepted!")
262258 else fromBase58String(assetId)
263259
264260
265261 func getPriceAssetIdFromBid (bidDataKey) = {
266262 let bidData = getStringByKey((bidDataKey + "_OPEN"))
267263 if ((bidData == ""))
268264 then throw("Bid not found")
269265 else {
270266 let bidDataArr = split(bidData, "_")
271267 let bidAmount = parseIntValue(bidDataArr[1])
272268 let bidAssetId = getBidAssetId(bidDataArr[0])
273269 if ((0 >= bidAmount))
274270 then throw("Wrong amount")
275271 else $Tuple2(bidAmount, bidAssetId)
276272 }
277273 }
278274
279275
280276 func idCallerDate (i) = if (!(dappRunning))
281277 then throw(maintenanceMSG)
282278 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
283279
284280
285281 func isBidCheck (i,issuer,bidOwner,bidId) = if (if (if ((toBase58String(i.caller.bytes) == issuer))
286282 then (bidOwner != "")
287283 else false)
288284 then (bidId != "")
289285 else false)
290286 then true
291287 else false
292288
293289
294290 func getArtData (i,issuer,artId,isBid) = {
295291 let callerIsIssuer = (toBase58String(i.caller.bytes) == issuer)
296292 let totalNFT = getIntegerByKey("total_nft_issued")
297293 let artworkName = getStringByKey(keyName(issuer, artId))
298294 if ((artworkName == ""))
299295 then throw("Art doesn't exist")
300296 else {
301297 let isOnSale = getBooleanByKey(keyOnSale(issuer, artId))
302298 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
303299 let artworkPrice = valueOrElse(getIntegerByKey(keyPrice(issuer, artId)), (currentCertificationPrice * 2))
304300 let priceAssetId = if (callerIsIssuer)
305301 then toBase58String(USDNAssetId)
306302 else getStringByKey(keyAssetIdAccepted(issuer, artId))
307303 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
308304 if (if (if (!(isBid))
309305 then !(callerIsIssuer)
310306 else false)
311307 then if (if ((0 >= artworkPrice))
312308 then true
313309 else !(isOnSale))
314310 then true
315311 else (0 >= maxCanSell)
316312 else false)
317313 then throw("Art not for sale")
318314 else if (if (if (!(isBid))
319315 then callerIsIssuer
320316 else false)
321317 then (0 >= maxCanSell)
322318 else false)
323319 then throw("Max issuable not set")
324320 else $Tuple7(totalNFT, artworkName, amountSold, artworkPrice, priceAssetId, maxCanSell, isOnSale)
325321 }
326322 }
327323
328324
329325 func getBidData (i,caller,issuer,artId,bidOwner,bidId,priceAssetId,artworkPrice,isBid) = {
330326 let checkUser = validateUser(issuer)
331327 if (if (isBid)
332328 then (checkUser != "")
333329 else false)
334330 then throw(checkUser)
335331 else {
336332 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
337333 let t01351913648 = if (isBid)
338334 then getPriceAssetIdFromBid(bidDataKey)
339335 else validatePriceAssetId(i, priceAssetId, artworkPrice)
340336 let amount = t01351913648._1
341337 let assetId = t01351913648._2
342338 $Tuple3(bidDataKey, amount, assetId)
343339 }
344340 }
345341
346342
347343 func getCommissionData (issuer,assetId,amount,amountSold,maxCanSell) = {
348344 let isWhitelisted = checkWhitelist(issuer)
349345 let cut = if ((isWhitelisted > height))
350346 then 0
351347 else if ((assetId == USDNAssetId))
352348 then USDNFirstSellCut
353349 else throw("Only USDN is accepted!")
354350 let amountForSconex = fraction(amount, cut, 1000)
355351 let amountForCreator = (amount - amountForSconex)
356352 if ((amountSold == maxCanSell))
357353 then throw("Art sold out")
358354 else {
359355 let newAmountSold = (amountSold + 1)
360356 $Tuple3(amountForSconex, amountForCreator, newAmountSold)
361357 }
362358 }
363359
364360
365361 func getIssueData (issuer,artId,artworkName,newAmountSold,maxCanSell,totalNFT,caller,bidOwner,bidId,i,isOnSale) = {
366362 let issueMeta = ((((((((("Creator: " + issuer) + ",ArtID: ") + artId) + ",Artwork name: ") + artworkName) + ",Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell))
367363 let sellStatus = if (if ((newAmountSold == maxCanSell))
368364 then true
369365 else !(isOnSale))
370366 then false
371367 else true
372368 let receiveNFT = if ((bidOwner != ""))
373369 then addressFromStringValue(bidOwner)
374370 else i.caller
375371 $Tuple3(sellStatus, receiveNFT, issueMeta)
376372 }
377373
378374
379375 func calculateRarity (mintIndex) = if ((4 > mintIndex))
380376 then "SSR"
381377 else if ((11 > mintIndex))
382378 then "SR"
383379 else if ((101 > mintIndex))
384380 then "R"
385381 else "N"
386382
387383
388384 func getBidKeyVal (assetId,bidDataKey,date) = {
389385 let assetIdBid = if (!(isDefined(assetId)))
390386 then throw("Only USDN is accepted")
391387 else toBase58String(value(assetId))
392388 let bidData = getStringByKey((bidDataKey + "_OPEN"))
393389 let bidDelOld = DeleteEntry((bidDataKey + "_OPEN"))
394390 let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date)))
395391 $Tuple3(assetIdBid, bidDelOld, bidUpdate)
396392 }
397393
398394
399395 func buyMint (i,artId,issuer,bidId,bidOwner,isBid) = {
400396 let callerData = idCallerDate(i)
401397 let id = callerData._1
402398 let caller = callerData._2
403399 let date = callerData._3
404400 let artData = getArtData(i, issuer, artId, isBid)
405401 let totalNFT = artData._1
406402 let artworkName = artData._2
407403 let amountSold = artData._3
408404 let artworkPrice = artData._4
409405 let priceAssetId = artData._5
410406 let maxCanSell = artData._6
411407 let isOnSale = artData._7
412408 let bidData = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid)
413409 let bidDataKey = bidData._1
414410 let amount = bidData._2
415411 let assetId = bidData._3
416412 let commisionData = getCommissionData(issuer, value(assetId), amount, amountSold, maxCanSell)
417413 let amountForSconex = commisionData._1
418414 let amountForCreator = commisionData._2
419415 let newAmountSold = commisionData._3
420416 let issuerData = getIssueData(issuer, artId, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i, isOnSale)
421417 let sellStatus = issuerData._1
422418 let receiveNFT = issuerData._2
423419 let issueMeta = issuerData._3
424420 let idNFTInvoke = invoke(this, "mintNft", [totalNFT, issueMeta, toString(receiveNFT)], nil)
425421 if ((idNFTInvoke == idNFTInvoke))
426422 then {
427423 let idNFT = match idNFTInvoke {
428424 case r: String =>
429425 r
430426 case _ =>
431427 throw("Incorrect invoke result")
432428 }
433429 let bidKeyValue = getBidKeyVal(assetId, bidDataKey, date)
434430 let assetIdBid = bidKeyValue._1
435431 let bidDelOld = bidKeyValue._2
436432 let bidUpdate = bidKeyValue._3
437433 let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer)
438434 let rarity = calculateRarity(newAmountSold)
439435 let soldValue = if (!(isBid))
440436 then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + idNFT)
441437 else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + idNFT)
442438 let soldData = StringEntry(soldKey, soldValue)
443439 let buyRes = [IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + idNFT), soldKey), StringEntry(("nft_rarity_" + idNFT), rarity), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyOnSale(issuer, artId), sellStatus), ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSconex, assetId), StringEntry(KeyNftIssuer(idNFT), issuer)]
444440 let res = invoke(addressFromStringValue(certDapp), "createCert", [toString(receiveNFT), idNFT, issuer], nil)
445441 if ((res == res))
446442 then if (isBid)
447443 then (((buyRes :+ soldData) :+ bidUpdate) :+ bidDelOld)
448444 else soldData :: buyRes
449445 else throw("Strict value is not equal to itself.")
450446 }
451447 else throw("Strict value is not equal to itself.")
452448 }
453449
454450
455451 func setBidNonTraditional (i,artId,issuer) = {
456452 let t02770927747 = idCallerDate(i)
457453 let id = t02770927747._1
458454 let caller = t02770927747._2
459455 let date = t02770927747._3
460456 let t02775227788 = isPayment(i)
461457 let payment = t02775227788._1
462458 let amount = t02775227788._2
463459 let assetId = if (!(isDefined(payment.assetId)))
464460 then throw("Only USDN is accepted!")
465461 else toBase58String(value(payment.assetId))
466462 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
467463 if (!(acceptedAssetIds(assetId)))
468464 then throw("asset not accepted")
469465 else if (!(validateMinSell(assetId, amount)))
470466 then throw("Wrong min sell")
471467 else {
472468 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
473469 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
474470 if ((0 >= maxCanSell))
475471 then throw("No max edition set for this artwork")
476472 else if ((amountSold >= maxCanSell))
477473 then throw("Sold out, you cannot bid")
478474 else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))]
479475 }
480476 }
481477
482478
483479 func setBidTraditional (i,artId,issuer) = {
484480 let endHeight = getIntegerByKey(keyEndHeight(issuer, artId))
485481 let highestBid = getAmountHighestBidByArtId(artId)
486482 if ((height > endHeight))
487483 then throw("This auction is finished already!")
488484 else {
489485 let callderData = idCallerDate(i)
490486 let id = callderData._1
491487 let caller = callderData._2
492488 let date = callderData._3
493489 let isPaymentVar = isPayment(i)
494490 let payment = isPaymentVar._1
495491 let amount = isPaymentVar._2
496492 if ((highestBid >= amount))
497493 then throw(("Please place a bid higher than: " + toString(highestBid)))
498494 else {
499495 let assetId = if (!(isDefined(payment.assetId)))
500496 then throw("Only USDN is accepted!")
501497 else toBase58String(value(payment.assetId))
502498 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
503499 if (!(acceptedAssetIds(assetId)))
504500 then throw("asset not accepted")
505501 else if (!(validateMinSell(assetId, amount)))
506502 then throw("Wrong min sell")
507503 else {
508504 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
509505 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
510506 if ((0 >= maxCanSell))
511507 then throw("No max edition set for this artwork")
512508 else if ((amountSold >= maxCanSell))
513509 then throw("Sold out, you cannot bid")
514510 else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1)), StringEntry(keyHighestBidBidId(artId), toBase58String(i.transactionId)), IntegerEntry(keyBidId(toBase58String(i.transactionId)), amount)]
515511 }
516512 }
517513 }
518514 }
519515
520516
521517 func acceptBidNonTraditional (i,artId,issuer,bidId,bidOwner) = {
522518 let caller = toBase58String(i.caller.bytes)
523519 if ((caller != issuer))
524520 then throw("You cannot do this action")
525521 else buyMint(i, artId, issuer, bidId, bidOwner, true)
526522 }
527523
528524
529525 func restartAuction (artId,issuer) = {
530526 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
531527 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
532528 let oldEndHeight = getIntegerByKey(keyEndHeight(issuer, artId))
533529 let duration = getIntegerByKey(keyDuration(issuer, artId))
534530 let endHeight = (duration + height)
535531 if ((height > oldEndHeight))
536532 then if ((amountSold == maxCanSell))
537533 then throw("Can't restart auction, max amount sold")
538534 else [IntegerEntry(keyEndHeight(issuer, artId), endHeight), DeleteEntry(keyHighestBidBidId(artId))]
539535 else throw("Previous auction isn't completed yet")
540536 }
541537
542538
543539 func acceptBidTraditional (i,artId,issuer,bidId,bidOwner) = {
544540 let endHeight = getIntegerByKey(keyEndHeight(issuer, artId))
545541 let highestBidId = getStringByKey(keyHighestBidBidId(artId))
546542 if ((height > endHeight))
547543 then if ((bidId == highestBidId))
548544 then {
549545 let buyMintData = buyMint(i, artId, issuer, bidId, bidOwner, true)
550546 let restartAuctionData = restartAuction(artId, issuer)
551547 (restartAuctionData ++ buyMintData)
552548 }
553549 else throw("This is not the winning bid!")
554550 else throw("This auction is not yet finished!")
555551 }
556552
557553
558554 func cancelBidImpl (i,artId,issuer,bidId) = {
559555 let t02894229094 = idCallerDate(i)
560556 let id = t02894229094._1
561557 let caller = t02894229094._2
562558 let date = t02894229094._3
563559 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
564560 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId)
565561 let bidData = getStringByKeyOrError((bidDataKey + "_OPEN"), "Bid not found")
566562 let bidDataArr = split(bidData, "_")
567563 let assetId = getBidAssetId(bidDataArr[0])
568564 let bidStatus = "CANCELED"
569565 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
570566 }
571567
572568
573569 func cancelBidImplTraditional (i,artId,issuer,bidId) = {
574570 let t02894229094 = idCallerDate(i)
575571 let id = t02894229094._1
576572 let caller = t02894229094._2
577573 let date = t02894229094._3
578574 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
579575 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId)
580576 let bidData = getStringByKeyOrError((bidDataKey + "_OPEN"), "Bid not found")
581577 let bidDataArr = split(bidData, "_")
582578 let assetId = getBidAssetId(bidDataArr[0])
583579 let bidStatus = "CANCELED"
584580 let bidAmount = parseIntValue(bidDataArr[1])
585581 let highestBidId = getStringByKey(keyHighestBidBidId(artId))
586582 if ((bidId == highestBidId))
587583 then throw("You can't cancel the highest bid!")
588584 else [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), bidAmount, assetId)]
589585 }
590586
591587
592588 @Callable(i)
593589 func mintNft (totalNFT,issueMeta,receiveNFT) = if ((i.caller == this))
594590 then {
595591 let receiveNFTAddy = Address(fromBase58String(receiveNFT))
596592 let issueNFT = Issue(("SCONEX_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
597593 let idNFT = calculateAssetId(issueNFT)
598594 $Tuple2([issueNFT, ScriptTransfer(receiveNFTAddy, 1, idNFT)], toBase58String(idNFT))
599595 }
600596 else throw("Only the dApp can mint NFT's")
601597
602598
603599
604600 @Callable(i)
605601 func addArtwork (sha256Hash,name,description,tags,type,cidDisplay,entitlement) = {
606602 let t01774017781 = idCallerDate(i)
607603 let artId = t01774017781._1
608604 let caller = t01774017781._2
609605 let date = t01774017781._3
610606 let validateArtwork = validateArtworkData(caller, cidDisplay, name, description, tags)
611607 if ((validateArtwork != ""))
612608 then throw("Something went wrong!")
613609 else {
614610 let t01817018212 = validatePayment(i)
615611 let amount = t01817018212._1
616612 let assetId = t01817018212._2
617613 if (!(isDefined(amount)))
618614 then throw("Something went wrong")
619615 else {
620616 let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller))
621617 if ((entryExist != ""))
622618 then throw("You already added it")
623619 else {
624620 let hashExist = getStringByKey(keyOwnerByHash(sha256Hash))
625621 if ((hashExist != ""))
626622 then throw("This hash is already registered")
627623 else [StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyEntitlement(caller, artId), entitlement), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]
628624 }
629625 }
630626 }
631627 }
632628
633629
634630
635631 @Callable(i)
636632 func sellArtwork (artId,price,maxMint,assetId,auctionType,duration) = {
637633 let t02571425747 = idCallerDate(i)
638634 let id = t02571425747._1
639635 let caller = t02571425747._2
640636 let artworkName = getStringByKey(keyName(caller, artId))
641637 if (!(containsElement([auctionType1, auctionType2, auctionType3], auctionType)))
642638 then throw("We don't know this auction type")
643639 else if ((artworkName == ""))
644640 then throw("This art doesn't match your account")
645641 else {
646642 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
647643 if (!(acceptedAssetIds(assetId)))
648644 then throw("Something went wrong!")
649645 else if (!(validateMinSell(assetId, price)))
650646 then throw("Something went wrong!")
651647 else {
652648 let checkUser = validateUser(caller)
653649 if ((checkUser != ""))
654650 then throw(checkUser)
655651 else {
656652 let amountSold = getIntegerByKey(keyIssued(caller, artId))
657653 let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId))
658654 if ((maxMint > 5000))
659655 then throw("5000 editions max per artwork")
660656 else if (if ((amountSold != 0))
661657 then (amountSold == maxCanSell)
662658 else false)
663659 then throw("Max edition reached.")
664660 else if (if ((amountSold > 0))
665661 then (maxCanSell != maxMint)
666662 else false)
667663 then throw("Cannot change maximum issuable anymore")
668664 else if (if ((bidNbr > 0))
669665 then (maxCanSell != maxMint)
670666 else false)
671667 then throw("Cannot change maximum issuable with active orders")
672668 else {
673669 let sellStatus = if (if ((price > 0))
674670 then (maxMint > 0)
675671 else false)
676672 then true
677673 else false
678674 let endHeight = (duration + height)
679675 [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), IntegerEntry(keyDuration(caller, artId), duration), IntegerEntry(keyEndHeight(caller, artId), endHeight), StringEntry(keyAssetIdAccepted(caller, artId), assetId), StringEntry(keyAuctionType(caller, artId), auctionType)]
680676 }
681677 }
682678 }
683679 }
684680 }
685681
686682
687683
688684 @Callable(i)
689685 func buyArtwork (artId,issuer) = {
690686 let auctionType = getStringByKey(keyAuctionType(issuer, artId))
691687 if ((auctionType == auctionType3))
692688 then buyMint(i, artId, issuer, "", "", false)
693689 else throw("Direct buy only allowed when no auction type is set!")
694690 }
695691
696692
697693
698694 @Callable(i)
695+func updateTags (artist,artId,tags) = if ((size(split(tags, ",")) > 5))
696+ then throw("5 tags max.")
697+ else {
698+ let tagsOld = getStringByKeyOrError(keyTags(artist, artId), "No tags created with this key, so can't update!")
699+ if ((tags == tagsOld))
700+ then throw("Tags are the same as old tags!")
701+ else [StringEntry(keyTags(artist, artId), tags)]
702+ }
703+
704+
705+
706+@Callable(i)
699707 func deleteEntry (entry) = {
700708 let caller = toString(addressFromPublicKey(i.callerPublicKey))
701709 if (containsElement(owners, caller))
702710 then [DeleteEntry(entry)]
703711 else throw("no")
704712 }
705713
706714
707715
708716 @Callable(i)
709717 func setBid (artId,issuer) = {
710718 let auctionType = getStringByKey(keyAuctionType(issuer, artId))
711719 if ((auctionType == auctionType1))
712720 then setBidNonTraditional(i, artId, issuer)
713721 else if ((auctionType == auctionType2))
714722 then setBidTraditional(i, artId, issuer)
715723 else throw((("Unknown auction type :" + auctionType) + ", please contact the admins"))
716724 }
717725
718726
719727
720728 @Callable(i)
721729 func acceptBid (artId,issuer,bidId,bidOwner) = {
722730 let auctionType = getStringByKey(keyAuctionType(issuer, artId))
723731 if ((auctionType == auctionType1))
724732 then acceptBidNonTraditional(i, artId, issuer, bidId, bidOwner)
725733 else if ((auctionType == auctionType2))
726734 then acceptBidTraditional(i, artId, issuer, bidId, bidOwner)
727735 else throw((("Unknown auction type :" + auctionType) + ", please contact the admins"))
728736 }
729737
730738
731739
732740 @Callable(i)
733741 func cancelBid (artId,issuer,bidId) = {
734742 let auctionType = getStringByKey(keyAuctionType(issuer, artId))
735743 if ((auctionType == auctionType1))
736744 then cancelBidImpl(i, artId, issuer, bidId)
737745 else cancelBidImplTraditional(i, artId, issuer, bidId)
738746 }
739747
740748

github/deemru/w8io/026f985 
86.04 ms