tx · 3ZUTcCayZHYn1JFS9VeNdFqmzVTNykM65drrUGxsapRa

3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY:  -0.02500000 Waves

2023.01.21 04:32 [2414083] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves

{ "type": 13, "id": "3ZUTcCayZHYn1JFS9VeNdFqmzVTNykM65drrUGxsapRa", "fee": 2500000, "feeAssetId": null, "timestamp": 1674264765326, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "3hU4j7ZCHPmedtVQVEfdoohVVhyWs66GjkT6r1os46X5toxhghvpnrRdtC2bFpjcH6FKpYT9kjpw1NXesKXaMYri" ], "script": "base64:BgJfCAISBAoCCAgSEAoOCAgICAgICAgICAgIAQgSDwoNCAgICAgICAgICAgBCBIGCgQICAgIEgQKAggIEggKBggBAQgBCBIECgIICBIECgIICBIGCgQICAgIEgYKBAgICAhOAAdWRVJTSU9OAgYxLjEuMTABDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgAACHVuaXRUZXN0BwAJb3JhY2xlRmVlCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECD2NvbmZfb3JhY2xlX2ZlZQAIc2lnbkRhcHAJAQV2YWx1ZQEJAKYIAQkBDmdldFN0cmluZ0J5S2V5AQIRY29uZl9zaWdud2ViX2RhcHAAC2ZlZVJlY2VpdmVyCQEOZ2V0U3RyaW5nQnlLZXkBAhFjb25mX2ZlZV9yZWNlaXZlcgAIdXNlckRhcHADBQh1bml0VGVzdAkBBXZhbHVlAQkApggBAiMzTXQ0UkdNRXlqU1dZQW9jVFBxZDU1d2RIUVFCM1BVMlVDbQkBBXZhbHVlAQkApggBCQEOZ2V0U3RyaW5nQnlLZXk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AUCdHgPc2VuZGVyUHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5GEmtiQ==", "height": 2414083, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9kDGwgP1t1AmFViMTyAqXeptj59HjpgLnxizf5tn51tm Next: 95hwbseM9xcgD9okmMz28TUXuxgEPeypbegasREnTzx4 Diff:
OldNewDifferences
856856 @Verifier(tx)
857857 func verifier () = match tx {
858858 case inv: InvokeScriptTransaction =>
859- if (if (if ((inv.function == "addArtwork"))
859+ if (if (if (if ((inv.function == "addArtwork"))
860860 then (inv.dApp == this)
861861 else false)
862862 then (inv.fee == 500000)
863863 else false)
864+ then (inv.feeAssetId == unit)
865+ else false)
864866 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[13])))
865- else if (if (if ((inv.function == "updateArtwork"))
867+ else if (if (if (if ((inv.function == "updateArtwork"))
866868 then (inv.dApp == this)
867869 else false)
868870 then (inv.fee == 500000)
869871 else false)
872+ then (inv.feeAssetId == unit)
873+ else false)
870874 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[12])))
871- else if (if (if ((inv.function == "sellArtwork"))
875+ else if (if (if (if ((inv.function == "sellArtwork"))
872876 then (inv.dApp == this)
873877 else false)
874878 then (inv.fee == 500000)
879+ else false)
880+ then (inv.feeAssetId == unit)
875881 else false)
876882 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[5])))
877883 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let VERSION = "1.1.10"
55
66 func getStringByKey (key) = valueOrElse(getString(this, key), "")
77
88
99 let unitTest = false
1010
1111 let oracleFee = value(addressFromString(getStringByKey("conf_oracle_fee")))
1212
1313 let signDapp = value(addressFromString(getStringByKey("conf_signweb_dapp")))
1414
1515 let feeReceiver = getStringByKey("conf_fee_receiver")
1616
1717 let userDapp = if (unitTest)
1818 then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm"))
1919 else value(addressFromString(getStringByKey("conf_users_dapp")))
2020
2121 let whitelistDapp = value(addressFromString(getStringByKey("conf_whitelist_dapp")))
2222
2323 let signAssetId = fromBase58String(getStringByKey("conf_accepted_asset_SIGN"))
2424
2525 let usdnAssetId = fromBase58String(getStringByKey("conf_accepted_asset_USDN"))
2626
2727 let usdtAssetId = fromBase58String(getStringByKey("conf_accepted_asset_USDT"))
2828
2929 let wavesAssetId = base58''
3030
3131 let chris = getStringByKey("conf_admin_1")
3232
3333 func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle")
3434
3535
3636 func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
3737
3838
3939 func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0)
4040
4141
4242 func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false)
4343
4444
4545 let signCut = 7
4646
4747 let usdnWaveCut = 10
4848
4949 let defaultLicence = getStringByKey("conf_default_licence")
5050
5151 let defaultHashLicence = getStringByKey("conf_default_licence_hash")
5252
5353 let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true)
5454
5555 let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "")
5656
5757 let userSuspended = "SUSPENDED"
5858
5959 let userRemoved = "REMOVED"
6060
6161 let userUnregistered = "UNREGISTERED"
6262
6363 let userAllowed = "ALLOWED"
6464
6565 let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId)))
6666
6767 func getArtworkRoyalties (key) = valueOrElse(getInteger(this, key), 1000)
6868
6969
7070 func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) {
7171 case a: String =>
7272 if (contains(a, sha256Hash))
7373 then true
7474 else false
7575 case _ =>
7676 false
7777 }
7878
7979
8080 func validateCID (cid) = if (contains(cid, "/"))
8181 then if (if ((76 > size(cid)))
8282 then (size(split(cid, "/")[0]) == 59)
8383 else false)
8484 then (16 > size(split(cid, "/")[1]))
8585 else false
8686 else false
8787
8888
8989 func validateHash (hash) = (size(hash) == 64)
9090
9191
9292 func keyUserStatus (caller) = ("user_status_" + caller)
9393
9494
9595 func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller)
9696
9797
9898 func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller)
9999
100100
101101 func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller)
102102
103103
104104 func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller)
105105
106106
107107 func keyExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller)
108108
109109
110110 func keyExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller)
111111
112112
113113 func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller)
114114
115115
116116 func keySignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller)
117117
118118
119119 func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller)
120120
121121
122122 func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller)
123123
124124
125125 func keyLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller)
126126
127127
128128 func keyLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller)
129129
130130
131131 func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller)
132132
133133
134134 func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller)
135135
136136
137137 func keyNote (caller,artId) = ((("art_note_" + artId) + "_") + caller)
138138
139139
140140 func keyCrawler (caller,artId) = ((("art_crawler_cid_" + artId) + "_") + caller)
141141
142142
143143 func keyRoyalties (caller,artId) = ((("art_royalties_" + artId) + "_") + caller)
144144
145145
146146 func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller)
147147
148148
149149 func keyEndSale (caller,artId) = ((("art_endsale_" + artId) + "_") + caller)
150150
151151
152152 func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller)
153153
154154
155155 func keyFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller)
156156
157157
158158 func keyArtistAgentAddr (artistAddr) = ("artist_agent_" + artistAddr)
159159
160160
161161 func keyPrimaryShare (artistAddr) = ("artist_agent_primary_" + artistAddr)
162162
163163
164164 func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller)
165165
166166
167167 func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash)
168168
169169
170170 func keyidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller)
171171
172172
173173 func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller)))))
174174
175175
176176 func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay)))
177177 then throw("Wrong Display CID")
178178 else if (!(validateCID(cidExport)))
179179 then throw("Wrong Export CID")
180180 else if (if ((cidLicence != ""))
181181 then !(validateCID(cidLicence))
182182 else false)
183183 then throw("Wrong Licence CID")
184184 else true
185185
186186
187187 func validateAllHash (sha256Export,sha256Licence) = if (!(validateHash(sha256Export)))
188188 then throw("Export Hash 64 char. max")
189189 else if (!(validateHash(sha256Licence)))
190190 then throw("Licence Hash 64 char. max")
191191 else true
192192
193193
194194 func validateString (str,max) = if ((size(str) == 0))
195195 then throw("Field cannot be is empty")
196196 else if ((size(str) > max))
197197 then throw((str + " is too long"))
198198 else true
199199
200200
201201 func validateUser (caller) = {
202202 let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered)
203203 if (if ((userStatus == userUnregistered))
204204 then true
205205 else (userStatus == userAllowed))
206206 then "Register this account first with \"Account\" tab"
207207 else if ((userStatus == userSuspended))
208208 then "Account suspended"
209209 else if ((userStatus == userRemoved))
210210 then "Account removed"
211211 else ""
212212 }
213213
214214
215215 func setLIcence (cidLicence,sha256Licence) = {
216216 let cid = if ((size(cidLicence) == 0))
217217 then defaultLicence
218218 else cidLicence
219219 let hash = if ((size(sha256Licence) == 0))
220220 then defaultHashLicence
221221 else sha256Licence
222222 $Tuple2(cid, hash)
223223 }
224224
225225
226226 func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags,royalties) = {
227227 let checkUser = validateUser(caller)
228228 if ((checkUser != ""))
229229 then throw(checkUser)
230230 else if ((size(cidDisplay) == 0))
231231 then throw("Display CID cannot be empty")
232232 else if (!(validateAllCID(cidDisplay, cidExport, licenceCID)))
233233 then throw("Problem with CID")
234234 else if (!(validateAllHash(sha256Export, licenceHash)))
235235 then throw("Problem with Hashes")
236236 else if (!(validateString(name, 100)))
237237 then throw("100 Char. max name")
238238 else if (!(validateString(description, 1000)))
239239 then throw("1000 Char. max description")
240240 else if (if ((0 > royalties))
241241 then true
242242 else (royalties > 1000))
243243 then throw("Royalties cannot be less than 0% or higher than 10%")
244244 else if ((size(split(tags, ",")) > 5))
245245 then throw("5 tags max.")
246246 else ""
247247 }
248248
249249
250250 func isPayment (i) = if ((size(i.payments) == 0))
251251 then throw("No payment attached")
252252 else {
253253 let payment = value(i.payments[0])
254254 let amount = value(payment.amount)
255255 $Tuple2(payment, amount)
256256 }
257257
258258
259259 func validatePayment (i) = {
260260 let $t089078943 = isPayment(i)
261261 let payment = $t089078943._1
262262 let amount = $t089078943._2
263263 let assetId = if (if (isDefined(payment.assetId))
264264 then (payment.assetId == signAssetId)
265265 else false)
266266 then payment.assetId
267267 else throw("Only SIGN token accepted as transaction fee")
268268 if ((amount != currentCertificationPrice))
269269 then throw(("Payment amount should be " + toString(currentCertificationPrice)))
270270 else $Tuple2(amount, assetId)
271271 }
272272
273273
274274 func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) {
275275 case b: Int =>
276276 if ((b != 0))
277277 then true
278278 else false
279279 case _ =>
280280 false
281281 }
282282
283283
284284 func validatePriceAssetId (i,priceAssetId,artworkPrice) = {
285285 let $t095319567 = isPayment(i)
286286 let payment = $t095319567._1
287287 let amount = $t095319567._2
288288 let assetId = if (!(isDefined(payment.assetId)))
289289 then unit
290290 else if (if ((size(priceAssetId) > 0))
291291 then (toBase58String(value(payment.assetId)) == priceAssetId)
292292 else false)
293293 then payment.assetId
294294 else throw("Wrong asset id")
295295 if (if ((assetId == unit))
296296 then (priceAssetId != "")
297297 else false)
298298 then throw("Wrong asset id")
299299 else if ((artworkPrice != amount))
300300 then throw("Payment don't match")
301301 else $Tuple2(amount, assetId)
302302 }
303303
304304
305305 func acceptedAssetIds (assetId) = if (if (if (if (if ((assetId != toBase58String(signAssetId)))
306306 then (assetId != toBase58String(wavesAssetId))
307307 else false)
308308 then (assetId != "WAVES")
309309 else false)
310310 then (assetId != toBase58String(usdnAssetId))
311311 else false)
312312 then (assetId != toBase58String(usdtAssetId))
313313 else false)
314314 then throw("Only SIGN, USDN,USDT or WAVES accepted")
315315 else true
316316
317317
318318 func validateMinSell (assetId,price) = {
319319 let minSellWaves = if (unitTest)
320320 then 10
321321 else getIntegerByKeyFromOracle("waves_min_sell")
322322 let minSellUsdn = 1000000
323323 let minSellSign = if (unitTest)
324324 then 1
325325 else (currentCertificationPrice * 2)
326326 if (if (if (if (if (if ((assetId == toBase58String(usdnAssetId)))
327327 then (minSellUsdn > price)
328328 else false)
329329 then (price != 0)
330330 else false)
331331 then true
332332 else if (if ((assetId == toBase58String(usdtAssetId)))
333333 then (minSellUsdn > price)
334334 else false)
335335 then (price != 0)
336336 else false)
337337 then true
338338 else if (if ((assetId == toBase58String(signAssetId)))
339339 then (minSellSign > price)
340340 else false)
341341 then (price != 0)
342342 else false)
343343 then true
344344 else if (if (if ((assetId == toBase58String(wavesAssetId)))
345345 then true
346346 else (assetId == "WAVES"))
347347 then (minSellWaves > price)
348348 else false)
349349 then (price != 0)
350350 else false)
351351 then throw("Wrong minimum sell price")
352352 else true
353353 }
354354
355355
356356 func getBidAssetId (assetId) = if ((assetId == "WAVES"))
357357 then unit
358358 else fromBase58String(assetId)
359359
360360
361361 func getPriceAssetIdFromBid (bidDataKey) = {
362362 let bidData = getStringByKey((bidDataKey + "_OPEN"))
363363 if ((bidData == ""))
364364 then throw("Bid not found")
365365 else {
366366 let bidDataArr = split(bidData, "_")
367367 let bidAmount = parseIntValue(bidDataArr[1])
368368 let bidAssetId = getBidAssetId(bidDataArr[0])
369369 if ((0 >= bidAmount))
370370 then throw("Wrong amount")
371371 else $Tuple2(bidAmount, bidAssetId)
372372 }
373373 }
374374
375375
376376 func idCallerDateSponsored (i,pubKey) = if (!(dappRunning))
377377 then throw(maintenanceMSG)
378378 else {
379379 let isSponsored = if ((pubKey != ""))
380380 then valueOrElse(checkWhitelist((toString(addressFromPublicKey(fromBase58String(pubKey))) + "_free_txs")), 0)
381381 else 0
382382 let caller = if (if (if ((toBase58String(i.caller.bytes) == toString(this)))
383383 then (size(i.payments) == 0)
384384 else false)
385385 then (isSponsored > 0)
386386 else false)
387387 then toString(addressFromPublicKey(fromBase58String(pubKey)))
388388 else toBase58String(i.caller.bytes)
389389 let get_sponsored_waves = if ((pubKey != ""))
390390 then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil)
391391 else unit
392392 if ((get_sponsored_waves == get_sponsored_waves))
393393 then $Tuple4(toBase58String(i.transactionId), caller, lastBlock.timestamp, (isSponsored > 0))
394394 else throw("Strict value is not equal to itself.")
395395 }
396396
397397
398398 func idCallerDate (i) = if (!(dappRunning))
399399 then throw(maintenanceMSG)
400400 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
401401
402402
403403 func buyMint (i,artId,issuer,bidId,bidOwner) = {
404404 let $t01294713006 = idCallerDate(i)
405405 let id = $t01294713006._1
406406 let caller = $t01294713006._2
407407 let date = $t01294713006._3
408408 let isBid = if (if (if ((caller == issuer))
409409 then (bidOwner != "")
410410 else false)
411411 then (bidId != "")
412412 else false)
413413 then true
414414 else false
415415 let blockEnd = getIntegerByKey(keyEndSale(caller, artId))
416416 if (if (if ((blockEnd != 0))
417417 then (height >= blockEnd)
418418 else false)
419419 then !(isBid)
420420 else false)
421421 then throw("Sale ended.")
422422 else {
423423 let callerIsIssuer = (caller == issuer)
424424 let totalNFT = getIntegerByKey("total_nft_issued")
425425 let signID = getStringByKey(keySignID(issuer, artId))
426426 let artworkName = getStringByKey(keyName(issuer, artId))
427427 if ((artworkName == ""))
428428 then throw("Art doesn't exist")
429429 else {
430430 let isOnSale = getBooleanByKey(keyOnSale(issuer, artId))
431431 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
432432 let artworkPrice = if (callerIsIssuer)
433433 then (currentCertificationPrice * 2)
434434 else getIntegerByKey(keyPrice(issuer, artId))
435435 let priceAssetId = if (callerIsIssuer)
436436 then toBase58String(signAssetId)
437437 else getStringByKey(keyAssetIdAccepted(issuer, artId))
438438 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
439439 if (if (if (!(isBid))
440440 then !(callerIsIssuer)
441441 else false)
442442 then if (if ((0 >= artworkPrice))
443443 then true
444444 else !(isOnSale))
445445 then true
446446 else (0 >= maxCanSell)
447447 else false)
448448 then throw("Art not for sale")
449449 else if (if (if (!(isBid))
450450 then callerIsIssuer
451451 else false)
452452 then (0 >= maxCanSell)
453453 else false)
454454 then throw("Max issuable not set")
455455 else {
456456 let checkUser = validateUser(issuer)
457457 if (if (isBid)
458458 then (checkUser != "")
459459 else false)
460460 then throw(checkUser)
461461 else {
462462 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
463463 let $t01470914876 = if (isBid)
464464 then getPriceAssetIdFromBid(bidDataKey)
465465 else validatePriceAssetId(i, priceAssetId, artworkPrice)
466466 let amount = $t01470914876._1
467467 let assetId = $t01470914876._2
468468 let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver)
469469 let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShare(issuer)), 0)
470470 let isWhitelisted = checkWhitelist(issuer)
471471 let cut = if ((isWhitelisted > height))
472472 then 0
473473 else if ((assetId == signAssetId))
474474 then signCut
475475 else usdnWaveCut
476476 let amountForSign = fraction(amount, cut, 100)
477477 let amountForAgent = if (if (if ((agent != feeReceiver))
478478 then (agentShare > 0)
479479 else false)
480480 then (height > isWhitelisted)
481481 else false)
482482 then fraction(amount, agentShare, 100)
483483 else 0
484484 let amountForCreator = (amount - amountForSign)
485485 if ((amountSold == maxCanSell))
486486 then throw("Art sold out")
487487 else {
488488 let newAmountSold = (amountSold + 1)
489489 let issueMeta = ((((((((((("Creator: " + issuer) + ",
490490 ArtID: ") + artId) + ",
491491 SignID: ") + signID) + ",
492492 Artwork name: ") + artworkName) + ",
493493 Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell))
494494 let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
495495 let idNFT = calculateAssetId(issueNFT)
496496 let sellStatus = if (if ((newAmountSold == maxCanSell))
497497 then true
498498 else !(isOnSale))
499499 then false
500500 else true
501501 let receiveNFT = if (if (if ((caller == issuer))
502502 then (bidOwner != "")
503503 else false)
504504 then (bidId != "")
505505 else false)
506506 then addressFromStringValue(bidOwner)
507507 else i.caller
508508 let assetIdBid = if (!(isDefined(assetId)))
509509 then "WAVES"
510510 else toBase58String(value(assetId))
511511 let bidData = getStringByKey((bidDataKey + "_OPEN"))
512512 let bidDelOld = DeleteEntry((bidDataKey + "_OPEN"))
513513 let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date)))
514514 let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer)
515515 let soldValue = if (!(isBid))
516516 then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT))
517517 else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT))
518518 let soldData = StringEntry(soldKey, soldValue)
519519 let commissions = if ((amountForAgent != 0))
520520 then [ScriptTransfer(Address(fromBase58String(feeReceiver)), (amountForSign - amountForAgent), assetId), ScriptTransfer(Address(fromBase58String(agent)), amountForAgent, assetId)]
521521 else [ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)]
522522 let buyRes = ([IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), IntegerEntry(keyEndSale(issuer, artId), 0), BooleanEntry(keyOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(receiveNFT, 1, idNFT)] ++ commissions)
523523 if (isBid)
524524 then [soldData, bidUpdate, bidDelOld] :: buyRes
525525 else soldData :: buyRes
526526 }
527527 }
528528 }
529529 }
530530 }
531531 }
532532
533533
534534 func asString (bv) = match bv {
535535 case bv0: String =>
536536 bv0
537537 case _ =>
538538 throw("Sponsored Public Key String expected")
539539 }
540540
541541
542542 @Callable(invoke)
543543 func setConf (key,val) = {
544544 let caller = toString(invoke.caller)
545545 if (containsElement([chris, toString(this)], caller))
546546 then if (contains(key, "conf_"))
547547 then [StringEntry(key, val)]
548548 else throw("Entries starting with conf_ only")
549549 else throw("You are not allowed to change this")
550550 }
551551
552552
553553
554554 @Callable(i)
555555 func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = {
556556 let $t01890918982 = idCallerDateSponsored(i, pubKey)
557557 let artId = $t01890918982._1
558558 let caller = $t01890918982._2
559559 let date = $t01890918982._3
560560 let isSponsored = $t01890918982._4
561561 if (!(validateHash(sha256Hash)))
562562 then throw("Hash should be 64 characters maximum")
563563 else {
564564 let $t01908319152 = setLIcence(cidLicence, sha256Licence)
565565 let licenceCID = $t01908319152._1
566566 let licenceHash = $t01908319152._2
567567 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
568568 if ((validateArtwork != ""))
569569 then throw("Something went wrong!")
570570 else {
571571 let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0)
572572 let $t01945119535 = if (whitelisted_drop)
573573 then $Tuple2(0, signID)
574574 else validatePayment(i)
575575 let amount = $t01945119535._1
576576 let assetId = $t01945119535._2
577577 if (!(isDefined(amount)))
578578 then throw("Something went wrong")
579579 else {
580580 let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller))
581581 if ((entryExist != ""))
582582 then throw("You already added it")
583583 else {
584584 let hashExist = getStringByKey(keyOwnerByHash(sha256Hash))
585585 if ((hashExist != ""))
586586 then throw("Hash already registered")
587587 else {
588588 let isSignCertified = checkSignCertificate(signID, caller, sha256Hash)
589589 if (!(isSignCertified))
590590 then throw("Sign Certificate not found for this address.")
591591 else {
592592 let decrease_whitelist_drop = if (whitelisted_drop)
593593 then invoke(whitelistDapp, "useFreeDrop", [caller], nil)
594594 else unit
595595 if ((decrease_whitelist_drop == decrease_whitelist_drop))
596596 then {
597597 let txToCaller = if (isSponsored)
598598 then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)]
599599 else nil
600600 ([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(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), StringEntry(keySignID(caller, artId), signID), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyidBySignid(caller, signID), artId), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyCrawler(caller, artId), crawler), IntegerEntry(keyRoyalties(caller, artId), royalties), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, signAssetId)] ++ txToCaller)
601601 }
602602 else throw("Strict value is not equal to itself.")
603603 }
604604 }
605605 }
606606 }
607607 }
608608 }
609609 }
610610
611611
612612
613613 @Callable(i)
614614 func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning))
615615 then throw(maintenanceMSG)
616616 else {
617617 let $t02256922639 = idCallerDateSponsored(i, pubKey)
618618 let id = $t02256922639._1
619619 let caller = $t02256922639._2
620620 let date = $t02256922639._3
621621 let isSponsored = $t02256922639._4
622622 let $t02264922718 = setLIcence(cidLicence, sha256Licence)
623623 let licenceCID = $t02264922718._1
624624 let licenceHash = $t02264922718._2
625625 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
626626 if ((validateArtwork != ""))
627627 then throw("Something went wrong!")
628628 else {
629629 let entryExist = getStringByKey(keyName(caller, txid))
630630 if ((entryExist == ""))
631631 then throw("Entry not found")
632632 else {
633633 let flag = getStringByKey(keyFlag(caller, txid))
634634 if ((flag == "ILLEGAL"))
635635 then throw("Cannot update ILLEGAL artwork")
636636 else if (!(isArtMinted(caller, txid)))
637637 then {
638638 let txToCaller = if (isSponsored)
639639 then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)]
640640 else nil
641641 ([StringEntry(keyName(caller, txid), name), StringEntry(keyDesc(caller, txid), description), StringEntry(keyDisplayCid(caller, txid), cidDisplay), StringEntry(keyExportCid(caller, txid), cidExport), StringEntry(keyExportHash(caller, txid), sha256Export), StringEntry(keyLicenceCid(caller, txid), licenceCID), StringEntry(keyLicenceHash(caller, txid), licenceHash), StringEntry(keyTags(caller, txid), tags), StringEntry(keyType(caller, txid), type), StringEntry(keyCrawler(caller, txid), crawler), IntegerEntry(keyRoyalties(caller, txid), royalties)] ++ txToCaller)
642642 }
643643 else throw("Already minted")
644644 }
645645 }
646646 }
647647
648648
649649
650650 @Callable(i)
651651 func flagArtwork (artId,addr,flag,note) = {
652652 let $t02434524379 = idCallerDate(i)
653653 let id = $t02434524379._1
654654 let caller = $t02434524379._2
655655 if (containsElement([chris, toString(this)], caller))
656656 then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
657657 then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)]
658658 else throw(("Unknow status " + flag))
659659 else throw("You are not allowed")
660660 }
661661
662662
663663
664664 @Callable(i)
665665 func deleteArtwork (artId,addr) = {
666666 let $t02481524849 = idCallerDate(i)
667667 let id = $t02481524849._1
668668 let caller = $t02481524849._2
669669 let addrToUse = if (containsElement([chris, toString(this)], caller))
670670 then addr
671671 else caller
672672 let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address")
673673 if ((entryExist == ""))
674674 then throw("No art matching for this address")
675675 else {
676676 let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId))
677677 if ((sha256Hash == ""))
678678 then throw("No art hash matching for this address")
679679 else {
680680 let signID = getStringByKey(keySignID(addrToUse, artId))
681681 if ((signID == ""))
682682 then throw("No SIGN ID matching")
683683 else {
684684 let dataToDelete = [DeleteEntry(keyDate(addrToUse, artId)), DeleteEntry(keyName(addrToUse, artId)), DeleteEntry(keyDesc(addrToUse, artId)), DeleteEntry(keyDisplayCid(addrToUse, artId)), DeleteEntry(keyExportCid(addrToUse, artId)), DeleteEntry(keyExportHash(addrToUse, artId)), DeleteEntry(keyLicenceHash(addrToUse, artId)), DeleteEntry(keyLicenceCid(addrToUse, artId)), DeleteEntry(keyType(addrToUse, artId)), DeleteEntry(keyTags(addrToUse, artId)), DeleteEntry(keyMaxMint(addrToUse, artId)), DeleteEntry(keySignID(addrToUse, artId)), DeleteEntry(keyIssued(addrToUse, artId)), DeleteEntry(keyOnSale(addrToUse, artId)), DeleteEntry(keyFlag(addrToUse, artId)), DeleteEntry(keyPrice(addrToUse, artId)), DeleteEntry(keyAssetIdAccepted(addrToUse, artId)), DeleteEntry(keyOwnerByHash(sha256Hash)), DeleteEntry(keyidBySignid(addrToUse, signID)), DeleteEntry(keyTxidByHashOwner(sha256Hash, addrToUse)), DeleteEntry(keyEndSale(addrToUse, artId)), DeleteEntry(keyNote(addrToUse, artId)), DeleteEntry(keyCrawler(addrToUse, artId)), DeleteEntry(keyRoyalties(addrToUse, artId))]
685685 if (!(isArtMinted(addrToUse, artId)))
686686 then if (!(dappRunning))
687687 then throw(maintenanceMSG)
688688 else dataToDelete
689689 else if (containsElement([chris, toString(this)], caller))
690690 then dataToDelete
691691 else throw("Art already minted, you cannot delete it")
692692 }
693693 }
694694 }
695695 }
696696
697697
698698
699699 @Callable(i)
700700 func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = {
701701 let $t02768527755 = idCallerDateSponsored(i, pubKey)
702702 let id = $t02768527755._1
703703 let caller = $t02768527755._2
704704 let date = $t02768527755._3
705705 let isSponsored = $t02768527755._4
706706 let artworkName = getStringByKey(keyName(caller, artId))
707707 if ((artworkName == ""))
708708 then throw("This art doesn't match your account")
709709 else {
710710 let flag = getStringByKey(keyFlag(caller, artId))
711711 if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
712712 then throw("Flagged artwork")
713713 else {
714714 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
715715 if ((0 > blockEnd))
716716 then throw("Negative end")
717717 else if (if ((blockEnd > 0))
718718 then if ((maxMint != 1))
719719 then true
720720 else (price != 0)
721721 else false)
722722 then throw("Timed offer only allowed for unique edition and offer only")
723723 else {
724724 let baseHeight = if ((blockEnd == 0))
725725 then 0
726726 else height
727727 if (!(acceptedAssetIds(assetId)))
728728 then throw("Something went wrong!")
729729 else if (!(validateMinSell(assetId, price)))
730730 then throw("Something went wrong!")
731731 else {
732732 let checkUser = validateUser(caller)
733733 if ((checkUser != ""))
734734 then throw(checkUser)
735735 else {
736736 let amountSold = getIntegerByKey(keyIssued(caller, artId))
737737 let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId))
738738 if ((maxMint > 100))
739739 then throw("100 editions max per artwork")
740740 else if (if ((amountSold != 0))
741741 then (amountSold == maxCanSell)
742742 else false)
743743 then throw("Max edition reached.")
744744 else if (if ((amountSold > 0))
745745 then (maxCanSell != maxMint)
746746 else false)
747747 then throw("Cannot change maximum issuable anymore")
748748 else if (if ((bidNbr > 0))
749749 then (maxCanSell != maxMint)
750750 else false)
751751 then throw("Cannot change maximum issuable with active orders")
752752 else {
753753 let sellStatus = if (if ((price > 0))
754754 then (maxMint > 0)
755755 else false)
756756 then true
757757 else false
758758 let txToCaller = if (isSponsored)
759759 then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)]
760760 else nil
761761 ([BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId), IntegerEntry(keyEndSale(caller, artId), (baseHeight + blockEnd))] ++ txToCaller)
762762 }
763763 }
764764 }
765765 }
766766 }
767767 }
768768 }
769769
770770
771771
772772 @Callable(i)
773773 func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "")
774774
775775
776776
777777 @Callable(i)
778778 func setBid (artId,issuer) = {
779779 let $t03013330173 = idCallerDate(i)
780780 let id = $t03013330173._1
781781 let caller = $t03013330173._2
782782 let date = $t03013330173._3
783783 let $t03017830214 = isPayment(i)
784784 let payment = $t03017830214._1
785785 let amount = $t03017830214._2
786786 let assetId = if (!(isDefined(payment.assetId)))
787787 then "WAVES"
788788 else toBase58String(value(payment.assetId))
789789 let blockEnd = getIntegerByKey(keyEndSale(issuer, artId))
790790 if (if ((blockEnd != 0))
791791 then (height >= blockEnd)
792792 else false)
793793 then throw("Sale ended.")
794794 else {
795795 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
796796 if (!(acceptedAssetIds(assetId)))
797797 then throw("asset not accepted")
798798 else if (!(validateMinSell(assetId, amount)))
799799 then throw("Wrong min sell")
800800 else {
801801 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
802802 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
803803 if ((0 >= maxCanSell))
804804 then throw("No max edition set for this artwork")
805805 else if ((amountSold >= maxCanSell))
806806 then throw("Sold out, you cannot bid")
807807 else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))]
808808 }
809809 }
810810 }
811811
812812
813813
814814 @Callable(i)
815815 func acceptBid (artId,issuer,bidId,bidOwner) = {
816816 let $t03137231412 = idCallerDate(i)
817817 let id = $t03137231412._1
818818 let caller = $t03137231412._2
819819 let date = $t03137231412._3
820820 if ((caller != issuer))
821821 then throw("You cannot do this action")
822822 else buyMint(i, artId, issuer, bidId, bidOwner)
823823 }
824824
825825
826826
827827 @Callable(i)
828828 func cancelBid (artId,issuer,bidId,bidOwner) = {
829829 let $t03163831699 = idCallerDate(i)
830830 let id = $t03163831699._1
831831 let caller = $t03163831699._2
832832 let date = $t03163831699._3
833833 if (if ((caller != bidOwner))
834834 then (caller != issuer)
835835 else false)
836836 then throw("You cannot do this action")
837837 else {
838838 let returnMoneyTo = if ((caller == issuer))
839839 then bidOwner
840840 else caller
841841 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
842842 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
843843 let bidData = getStringByKey((bidDataKey + "_OPEN"))
844844 if ((bidData == ""))
845845 then throw("Bid not found")
846846 else {
847847 let bidDataArr = split(bidData, "_")
848848 let assetId = getBidAssetId(bidDataArr[0])
849849 let bidStatus = "CANCELED"
850850 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(returnMoneyTo)), parseIntValue(bidDataArr[1]), assetId)]
851851 }
852852 }
853853 }
854854
855855
856856 @Verifier(tx)
857857 func verifier () = match tx {
858858 case inv: InvokeScriptTransaction =>
859- if (if (if ((inv.function == "addArtwork"))
859+ if (if (if (if ((inv.function == "addArtwork"))
860860 then (inv.dApp == this)
861861 else false)
862862 then (inv.fee == 500000)
863863 else false)
864+ then (inv.feeAssetId == unit)
865+ else false)
864866 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[13])))
865- else if (if (if ((inv.function == "updateArtwork"))
867+ else if (if (if (if ((inv.function == "updateArtwork"))
866868 then (inv.dApp == this)
867869 else false)
868870 then (inv.fee == 500000)
869871 else false)
872+ then (inv.feeAssetId == unit)
873+ else false)
870874 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[12])))
871- else if (if (if ((inv.function == "sellArtwork"))
875+ else if (if (if (if ((inv.function == "sellArtwork"))
872876 then (inv.dApp == this)
873877 else false)
874878 then (inv.fee == 500000)
879+ else false)
880+ then (inv.feeAssetId == unit)
875881 else false)
876882 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[5])))
877883 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
878884 case _ =>
879885 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
880886 }
881887

github/deemru/w8io/169f3d6 
663.50 ms