tx · FALumfLkJyJPbAKTSkxsihqa8dT2VThSf3QhnU8xYYNt

3N8jKcYWjJn5GjrJV94rxzVk42TPk1rPLeu:  -0.01000000 Waves

2022.05.15 18:31 [2052974] smart account 3N8jKcYWjJn5GjrJV94rxzVk42TPk1rPLeu > SELF 0.00000000 Waves

{ "type": 13, "id": "FALumfLkJyJPbAKTSkxsihqa8dT2VThSf3QhnU8xYYNt", "fee": 1000000, "feeAssetId": null, "timestamp": 1652628735165, "version": 2, "chainId": 84, "sender": "3N8jKcYWjJn5GjrJV94rxzVk42TPk1rPLeu", "senderPublicKey": "914UmzBhcoS4onGGVcBRgb4VPV88m9VCFjsj5WWck5vm", "proofs": [ "3PL3L6mRdnwyznuB5pQHyVLRKKf2CvW2gcYKs8Wj6WRRjLCPXxqRjJ8R2xX6Sg6sUShUMMLwL5EeUtM2jpj4vaz6" ], "script": "base64:AAIFAAAAAAAAAFgIAhIDCgEIEgMKAQgSBQoDAQgIEgwKCggICAgICAgICAgSDgoMCAEBCAgBCAgIAQEBEgQKAggIEgUKAwgICBIDCgEIEgQKAggIEgYKBAgICAgSBQoDCAgIAAAAUwAAAAAIdW5pdFRlc3QHAAAAAAlvcmFjbGVLZXkCAAAACW9yYWNsZUtleQEAAAAGZ2V0U3RyAAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWICAAAAAAAAAAAGb3JhY2xlCQEAAAAGZ2V0U3RyAAAAAQUAAAAJb3JhY2xlS2V5AAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQUAAAAGb3JhY2xlAAAAAAZvd25lcnMJAARMAAAAAgkABB0AAAACBQAAAAlvcmFjbGVGZWUCAAAABm93bmVyMQkABEwAAAACCQAEHQAAAAIFAAAACW9yYWNsZUZlZQIAAAAGb3duZX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Y3Rpb25UeXBlMgkBAAAAFGFjY2VwdEJpZFRyYWRpdGlvbmFsAAAABQUAAAABaQUAAAAFYXJ0SWQFAAAABmlzc3VlcgUAAAAFYmlkSWQFAAAACGJpZE93bmVyCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAABZVbmtub3duIGF1Y3Rpb24gdHlwZSA6BQAAAAthdWN0aW9uVHlwZQIAAAAbLCBwbGVhc2UgY29udGFjdCB0aGUgYWRtaW5zAAAAAWkBAAAACWNhbmNlbEJpZAAAAAMAAAAFYXJ0SWQAAAAGaXNzdWVyAAAABWJpZElkBAAAAAthdWN0aW9uVHlwZQkBAAAADmdldFN0cmluZ0J5S2V5AAAAAQkBAAAADmtleUF1Y3Rpb25UeXBlAAAAAgUAAAAGaXNzdWVyBQAAAAVhcnRJZAMJAAAAAAAAAgUAAAALYXVjdGlvblR5cGUFAAAADGF1Y3Rpb25UeXBlMQkBAAAADWNhbmNlbEJpZEltcGwAAAAEBQAAAAFpBQAAAAVhcnRJZAUAAAAGaXNzdWVyBQAAAAViaWRJZAkBAAAAGGNhbmNlbEJpZEltcGxUcmFkaXRpb25hbAAAAAQFAAAAAWkFAAAABWFydElkBQAAAAZpc3N1ZXIFAAAABWJpZElkAAAAACrsy34=", "height": 2052974, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8N7iQ2n5oVYdySCAgb1kSWgbucjXaDXesw7S9gY937xQ Next: 6kN3k5vWgeEYS2HuJRcprVFXfctPQuwtYggEyA2W5TSD Diff:
OldNewDifferences
201201 }
202202
203203
204-func isPayment (i) = if ((size(i.payments) == 0))
204+func isPayment (i,index) = if ((size(i.payments) == 0))
205205 then throw("No payment attached")
206206 else {
207- let payment = value(i.payments[0])
207+ let payment = value(i.payments[index])
208208 let amount = value(payment.amount)
209209 $Tuple2(payment, amount)
210210 }
211-
212-
213-func validatePayment (i) = {
214- let t089829018 = isPayment(i)
215- let payment = t089829018._1
216- let amount = t089829018._2
217- let assetId = if (if (isDefined(payment.assetId))
218- then (payment.assetId == SconexAssetId)
219- else false)
220- then payment.assetId
221- else throw((("Only " + toBase58String(SconexAssetId)) + " token accepted as transaction fee"))
222- if ((amount != currentFeeSconex))
223- then throw(((("Payment amount should be " + toString(currentFeeSconex)) + " but is: ") + toString(amount)))
224- else $Tuple2(amount, assetId)
225- }
226211
227212
228213 func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) {
236221
237222
238223 func validatePriceAssetId (i,priceAssetId,artworkPrice) = {
239- let pData = isPayment(i)
224+ let pData = isPayment(i, 1)
240225 let payment = pData._1
241226 let amount = pData._2
242227 let assetId = if (!(isDefined(payment.assetId)))
416401 then {
417402 let soldData = StringEntry(soldKey, soldValue)
418403 let buyRes = [IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + idNFT), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyOnSale(issuer, artId), sellStatus), StringEntry(KeyNftIssuer(idNFT), issuer), StringEntry(KeyNftArtId(idNFT), artId)]
419- let res = invoke(addressFromStringValue(certDapp), "createCert", [toString(receiveNFT), idNFT, issuer], nil)
420- if ((res == res))
421- then if (isBid)
422- then (((buyRes :+ soldData) :+ bidUpdate) :+ bidDelOld)
423- else soldData :: buyRes
404+ let validateAndProcessPaymentInvoke = invoke(valueOrErrorMessage(stakeDapp, "this not found"), "validateAndProcessPayment", nil, [i.payments[0]])
405+ if ((validateAndProcessPaymentInvoke == validateAndProcessPaymentInvoke))
406+ then {
407+ let res = invoke(addressFromStringValue(certDapp), "createCert", [toString(receiveNFT), idNFT, issuer], nil)
408+ if ((res == res))
409+ then if (isBid)
410+ then (((buyRes :+ soldData) :+ bidUpdate) :+ bidDelOld)
411+ else soldData :: buyRes
412+ else throw("Strict value is not equal to itself.")
413+ }
424414 else throw("Strict value is not equal to itself.")
425415 }
426416 else throw("Strict value is not equal to itself.")
434424 let id = t02770927747._1
435425 let caller = t02770927747._2
436426 let date = t02770927747._3
437- let t02775227788 = isPayment(i)
427+ let t02775227788 = isPayment(i, 0)
438428 let payment = t02775227788._1
439429 let amount = t02775227788._2
440430 let assetId = if (!(isDefined(payment.assetId)))
450440 then throw("No max edition set for this artwork")
451441 else if ((amountSold >= maxCanSell))
452442 then throw("Sold out, you cannot bid")
453- else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))]
443+ else {
444+ let validateAndProcessPaymentInvoke = invoke(valueOrErrorMessage(stakeDapp, "this not found"), "validateAndProcessPayment", nil, [i.payments[1]])
445+ if ((validateAndProcessPaymentInvoke == validateAndProcessPaymentInvoke))
446+ then [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))]
447+ else throw("Strict value is not equal to itself.")
448+ }
454449 }
455450 }
456451
465460 let id = callderData._1
466461 let caller = callderData._2
467462 let date = callderData._3
468- let isPaymentVar = isPayment(i)
463+ let isPaymentVar = isPayment(i, 0)
469464 let payment = isPaymentVar._1
470465 let amount = isPaymentVar._2
471466 if ((highestBid >= amount))
487482 then throw("No max edition set for this artwork")
488483 else if ((amountSold >= maxCanSell))
489484 then throw("Sold out, you cannot bid")
490- 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)]
485+ else {
486+ let validateAndProcessPaymentInvoke = invoke(valueOrErrorMessage(stakeDapp, "this not found"), "validateAndProcessPayment", nil, [i.payments[1]])
487+ if ((validateAndProcessPaymentInvoke == validateAndProcessPaymentInvoke))
488+ then [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)]
489+ else throw("Strict value is not equal to itself.")
490+ }
491491 }
492492 }
493493 }
606606 if ((validateArtwork != ""))
607607 then throw("Something went wrong!")
608608 else {
609- let validP = validatePayment(i)
610- let amount = validP._1
611- let assetId = validP._2
612- if (!(isDefined(amount)))
613- then throw("Something went wrong")
614- else {
609+ let validateAndProcessPaymentInvoke = invoke(valueOrErrorMessage(stakeDapp, "this not found"), "validateAndProcessPayment", nil, [i.payments[0]])
610+ if ((validateAndProcessPaymentInvoke == validateAndProcessPaymentInvoke))
611+ then {
615612 let previewData = if (containsElement(Previewtypes, type))
616613 then [StringEntry(keyPreviewCid(caller, artId), preview)]
617614 else nil
618- let invokeTeamFeeSplit = invoke(valueOrErrorMessage(stakeDapp, "stakeDapp not found"), "topUpReward", nil, [AttachedPayment(assetId, amount)])
619- if ((invokeTeamFeeSplit == invokeTeamFeeSplit))
615+ let invokeCollectionCreate = invoke(valueOrErrorMessage(addressFromString(collectionsDapp), (collectionsDapp + " not found")), "collectionProcess", [collection, subcollection, caller], nil)
616+ if ((invokeCollectionCreate == invokeCollectionCreate))
620617 then {
621- let invokeCollectionCreate = invoke(valueOrErrorMessage(addressFromString(collectionsDapp), (collectionsDapp + " not found")), "collectionProcess", [collection, subcollection, caller], nil)
622- if ((invokeCollectionCreate == invokeCollectionCreate))
623- then {
624- let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller))
625- if ((entryExist != ""))
626- then throw("You already added it")
627- else {
628- let hashExist = getStringByKey(keyOwnerByHash(sha256Hash))
629- if ((hashExist != ""))
630- then throw("This hash is already registered")
631- else (previewData ++ [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)])
632- }
618+ let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller))
619+ if ((entryExist != ""))
620+ then throw("You already added it")
621+ else {
622+ let hashExist = getStringByKey(keyOwnerByHash(sha256Hash))
623+ if ((hashExist != ""))
624+ then throw("This hash is already registered")
625+ else (previewData ++ [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)])
633626 }
634- else throw("Strict value is not equal to itself.")
635627 }
636628 else throw("Strict value is not equal to itself.")
637629 }
630+ else throw("Strict value is not equal to itself.")
638631 }
639632 }
640633 }
648641 let caller = callData._2
649642 let amountSold = getIntegerByKey(keyIssued(caller, artId))
650643 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
651- let validP = validatePayment(i)
652- let amountP = validP._1
653- let assetIdP = validP._2
654- if (!(isDefined(amountP)))
655- then throw("Something went wrong")
656- else {
657- let invokeTeamFeeSplit = invoke(valueOrErrorMessage(stakeDapp, "stakeDapp not found"), "topUpReward", nil, [AttachedPayment(assetIdP, amountP)])
658- if ((invokeTeamFeeSplit == invokeTeamFeeSplit))
659- then if (if ((bidNbr > 0))
660- then true
661- else (amountSold > 0))
662- then throw("There are bids or items sold, you can not edit anything!")
663- else {
664- let artworkName = getStringByKey(keyName(caller, artId))
665- if (!(containsElement([auctionType1, auctionType2, auctionType3], auctionType)))
666- then throw("We don't know this auction type")
667- else if ((artworkName == ""))
668- then throw("This art doesn't match your account")
669- else if (!(acceptedAssetIds(assetId)))
670- then throw("Something went wrong!")
671- else if (!(validateMinSell(assetId, price)))
672- then throw("Something went wrong!")
673- else {
674- let checkUser = validateUser(caller)
675- if ((checkUser != ""))
676- then throw(checkUser)
677- else if ((maxMint > 10000))
678- then throw("10000 editions max per artwork")
679- else {
680- let sellStatus = if ((price > 0))
681- then (maxMint > 0)
682- else false
683- let teamFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "teamSplitFee", [artId, feeReceiver, "", "", 15, 0, 0], nil)
684- if ((teamFee == teamFee))
644+ let validateAndProcessPaymentInvoke = invoke(valueOrErrorMessage(stakeDapp, "this not found"), "validateAndProcessPayment", nil, [i.payments[0]])
645+ if ((validateAndProcessPaymentInvoke == validateAndProcessPaymentInvoke))
646+ then if (if ((bidNbr > 0))
647+ then true
648+ else (amountSold > 0))
649+ then throw("There are bids or items sold, you can not edit anything!")
650+ else {
651+ let artworkName = getStringByKey(keyName(caller, artId))
652+ if (!(containsElement([auctionType1, auctionType2, auctionType3], auctionType)))
653+ then throw("We don't know this auction type")
654+ else if ((artworkName == ""))
655+ then throw("This art doesn't match your account")
656+ else if (!(acceptedAssetIds(assetId)))
657+ then throw("Something went wrong!")
658+ else if (!(validateMinSell(assetId, price)))
659+ then throw("Something went wrong!")
660+ else {
661+ let checkUser = validateUser(caller)
662+ if ((checkUser != ""))
663+ then throw(checkUser)
664+ else if ((maxMint > 10000))
665+ then throw("10000 editions max per artwork")
666+ else {
667+ let sellStatus = if ((price > 0))
668+ then (maxMint > 0)
669+ else false
670+ let teamFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "teamSplitFee", [artId, feeReceiver, "", "", 15, 0, 0], nil)
671+ if ((teamFee == teamFee))
672+ then {
673+ let creatorFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "creatorSplitFee", [artId, add1, add2, add3, add1Sh, add2Sh, add3Sh], nil)
674+ if ((creatorFee == creatorFee))
685675 then {
686- let creatorFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "creatorSplitFee", [artId, add1, add2, add3, add1Sh, add2Sh, add3Sh], nil)
687- if ((creatorFee == creatorFee))
688- then {
689- let endHeight = (duration + height)
676+ let endHeight = (duration + height)
690677 [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)]
691- }
692- else throw("Strict value is not equal to itself.")
693678 }
694679 else throw("Strict value is not equal to itself.")
695680 }
696- }
697- }
698- else throw("Strict value is not equal to itself.")
699- }
681+ else throw("Strict value is not equal to itself.")
682+ }
683+ }
684+ }
685+ else throw("Strict value is not equal to itself.")
700686 }
701687
702688
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let unitTest = false
55
66 let oracleKey = "oracleKey"
77
88 func getStr (key) = match getString(this, key) {
99 case b: String =>
1010 b
1111 case _ =>
1212 ""
1313 }
1414
1515
1616 let oracle = getStr(oracleKey)
1717
1818 let oracleFee = value(addressFromString(oracle))
1919
2020 let owners = [getString(oracleFee, "owner1"), getString(oracleFee, "owner2")]
2121
2222 let collectionsDapp = valueOrErrorMessage(getString(oracleFee, "collectionsDapp"), "collectionDapp not found")
2323
2424 let feeReceiver = valueOrErrorMessage(getString(oracleFee, "feeReceiver"), "feeReceiver not found")
2525
2626 let certDapp = valueOrErrorMessage(getString(oracleFee, "certDapp"), "certDapp not found")
2727
2828 let feeDapp = valueOrErrorMessage(getString(oracleFee, "feeDapp"), "feeDapp not found")
2929
3030 let userDapp = value(addressFromString(valueOrErrorMessage(getString(oracleFee, "userDapp"), "userdapp not found")))
3131
3232 let stakeDapp = addressFromString(valueOrErrorMessage(getString(oracleFee, "stakeDapp"), "sconexDapp not found"))
3333
3434 let USDNAssetId = fromBase58String(getStringValue(oracleFee, "USDNAssetId"))
3535
3636 let SconexAssetId = fromBase58String(getStringValue(oracleFee, "SconexAssetId"))
3737
3838 let types = ["IMAGE", "PDF", "VIDEO"]
3939
4040 let Previewtypes = ["PDF"]
4141
4242 let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true)
4343
4444 let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "")
4545
4646 let userSuspended = "SUSPENDED"
4747
4848 let userRemoved = "REMOVED"
4949
5050 let userUnregistered = "UNREGISTERED"
5151
5252 let auctionType1 = "BIDTYPE"
5353
5454 let auctionType2 = "TRADITIONAL"
5555
5656 let auctionType3 = "DIRECT"
5757
5858 func getStringByKeyFromUsers (key) = valueOrElse(getString(userDapp, key), "")
5959
6060
6161 func getStringByKey (key) = valueOrElse(getString(this, key), "")
6262
6363
6464 func getStringByKeyOrError (key,error) = valueOrErrorMessage(getString(this, key), error)
6565
6666
6767 func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle")
6868
6969
7070 func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
7171
7272
7373 func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false)
7474
7575
7676 func validateHash (hash) = (size(hash) == 64)
7777
7878
7979 func keyUserStatus (caller) = ("user_status_" + caller)
8080
8181
8282 func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller)
8383
8484
8585 func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller)
8686
8787
8888 func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller)
8989
9090
9191 func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller)
9292
9393
9494 func keyPreviewCid (caller,artId) = ((("art_preview_cid_" + artId) + "_") + caller)
9595
9696
9797 func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller)
9898
9999
100100 func keyHighestBidBidId (artId) = ("art_highestBidBidId_" + artId)
101101
102102
103103 func keyBidId (bidId) = ("bid_" + bidId)
104104
105105
106106 func keyDuration (caller,artId) = ((("art_duration_" + artId) + "_") + caller)
107107
108108
109109 func keyEndHeight (caller,artId) = ((("art_endheight_" + artId) + "_") + caller)
110110
111111
112112 func keyAuctionType (caller,artId) = ((("art_auctiontype_" + artId) + "_") + caller)
113113
114114
115115 func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller)
116116
117117
118118 func KeyNftIssuer (nftId) = ("nft_issued_" + nftId)
119119
120120
121121 func KeyNftArtId (nftId) = ("nft_artId_" + nftId)
122122
123123
124124 func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller)
125125
126126
127127 func keyEntitlement (caller,artId) = ((("art_entitlement_" + artId) + "_") + caller)
128128
129129
130130 func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller)
131131
132132
133133 func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller)
134134
135135
136136 func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller)
137137
138138
139139 func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller)
140140
141141
142142 func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller)
143143
144144
145145 func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash)
146146
147147
148148 func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller)))))
149149
150150
151151 func keyCollection (caller,artId) = ((("collection_" + artId) + "_") + caller)
152152
153153
154154 let minUSDNPrice = getIntegerByKeyFromOracle(("min_" + toBase58String(USDNAssetId)))
155155
156156 let currentFeeSconex = getIntegerByKeyFromOracle(("fee_" + toBase58String(SconexAssetId)))
157157
158158 func getAmountByBidId (bidId) = valueOrElse(getIntegerByKey(keyBidId(bidId)), 0)
159159
160160
161161 func getAmountHighestBidByArtId (artId) = {
162162 let bidId = getStringByKey(keyHighestBidBidId(artId))
163163 getAmountByBidId(bidId)
164164 }
165165
166166
167167 func validateString (str,max) = if ((size(str) == 0))
168168 then throw("Field cannot be is empty")
169169 else if ((size(str) > max))
170170 then throw((str + " is too long"))
171171 else true
172172
173173
174174 func validateUser (caller) = {
175175 let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered)
176176 if ((userStatus == userUnregistered))
177177 then "Register this account first with 'Account' tab"
178178 else if ((userStatus == userSuspended))
179179 then "Account suspended"
180180 else if ((userStatus == userRemoved))
181181 then "Account removed"
182182 else ""
183183 }
184184
185185
186186 func validateArtworkData (caller,cidDisplay,name,description,tags) = {
187187 let checkUser = validateUser(caller)
188188 if ((checkUser != ""))
189189 then throw(checkUser)
190190 else if ((size(cidDisplay) == 0))
191191 then throw("Display CID cannot be empty")
192192 else if ((size(cidDisplay) != 46))
193193 then throw("This doesn't seem a valid CID!")
194194 else if (!(validateString(name, 100)))
195195 then throw("100 Char. max name")
196196 else if (!(validateString(description, 1000)))
197197 then throw("1000 Char. max description")
198198 else if ((size(split(tags, ",")) > 5))
199199 then throw("5 tags max.")
200200 else ""
201201 }
202202
203203
204-func isPayment (i) = if ((size(i.payments) == 0))
204+func isPayment (i,index) = if ((size(i.payments) == 0))
205205 then throw("No payment attached")
206206 else {
207- let payment = value(i.payments[0])
207+ let payment = value(i.payments[index])
208208 let amount = value(payment.amount)
209209 $Tuple2(payment, amount)
210210 }
211-
212-
213-func validatePayment (i) = {
214- let t089829018 = isPayment(i)
215- let payment = t089829018._1
216- let amount = t089829018._2
217- let assetId = if (if (isDefined(payment.assetId))
218- then (payment.assetId == SconexAssetId)
219- else false)
220- then payment.assetId
221- else throw((("Only " + toBase58String(SconexAssetId)) + " token accepted as transaction fee"))
222- if ((amount != currentFeeSconex))
223- then throw(((("Payment amount should be " + toString(currentFeeSconex)) + " but is: ") + toString(amount)))
224- else $Tuple2(amount, assetId)
225- }
226211
227212
228213 func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) {
229214 case b: Int =>
230215 if ((b != 0))
231216 then true
232217 else false
233218 case _ =>
234219 false
235220 }
236221
237222
238223 func validatePriceAssetId (i,priceAssetId,artworkPrice) = {
239- let pData = isPayment(i)
224+ let pData = isPayment(i, 1)
240225 let payment = pData._1
241226 let amount = pData._2
242227 let assetId = if (!(isDefined(payment.assetId)))
243228 then throw("Asset Id is not defined")
244229 else if (if ((size(priceAssetId) > 0))
245230 then (toBase58String(value(payment.assetId)) == priceAssetId)
246231 else false)
247232 then payment.assetId
248233 else throw("Wrong asset id")
249234 if ((artworkPrice != amount))
250235 then throw(((("Payment don't match " + toString(artworkPrice)) + " ") + toString(amount)))
251236 else $Tuple2(amount, assetId)
252237 }
253238
254239
255240 func acceptedAssetIds (assetId) = if ((assetId != toBase58String(USDNAssetId)))
256241 then throw("Only USDN accepted")
257242 else true
258243
259244
260245 func validateMinSell (assetId,price) = {
261246 let minSellSconex = minUSDNPrice
262247 if (if ((minSellSconex > price))
263248 then true
264249 else (assetId != toBase58String(USDNAssetId)))
265250 then throw(("Wrong minimum sell price " + toString(minSellSconex)))
266251 else true
267252 }
268253
269254
270255 func getBidAssetId (assetId) = if ((assetId == "WAVES"))
271256 then throw("Only USDN is accepted!")
272257 else fromBase58String(assetId)
273258
274259
275260 func getPriceAssetIdFromBid (bidDataKey) = {
276261 let bidData = getStringByKey((bidDataKey + "_OPEN"))
277262 if ((bidData == ""))
278263 then throw("Bid not found")
279264 else {
280265 let bidDataArr = split(bidData, "_")
281266 let bidAmount = parseIntValue(bidDataArr[1])
282267 let bidAssetId = getBidAssetId(bidDataArr[0])
283268 if ((0 >= bidAmount))
284269 then throw("Wrong amount")
285270 else $Tuple2(bidAmount, bidAssetId)
286271 }
287272 }
288273
289274
290275 func idCallerDate (i) = if (!(dappRunning))
291276 then throw(maintenanceMSG)
292277 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
293278
294279
295280 func getArtData (i,issuer,artId,isBid) = {
296281 let callerIsIssuer = (toBase58String(i.caller.bytes) == issuer)
297282 let totalNFT = getIntegerByKey("total_nft_issued")
298283 let artworkName = getStringByKey(keyName(issuer, artId))
299284 if ((artworkName == ""))
300285 then throw("Art doesn't exist")
301286 else {
302287 let isOnSale = getBooleanByKey(keyOnSale(issuer, artId))
303288 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
304289 let artworkPrice = valueOrElse(getIntegerByKey(keyPrice(issuer, artId)), minUSDNPrice)
305290 let priceAssetId = if (callerIsIssuer)
306291 then toBase58String(USDNAssetId)
307292 else getStringByKey(keyAssetIdAccepted(issuer, artId))
308293 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
309294 if (if (if (!(isBid))
310295 then !(callerIsIssuer)
311296 else false)
312297 then if (if ((0 >= artworkPrice))
313298 then true
314299 else !(isOnSale))
315300 then true
316301 else (0 >= maxCanSell)
317302 else false)
318303 then throw("Art not for sale")
319304 else if (if (if (!(isBid))
320305 then callerIsIssuer
321306 else false)
322307 then (0 >= maxCanSell)
323308 else false)
324309 then throw("Max issuable not set")
325310 else $Tuple7(totalNFT, artworkName, amountSold, artworkPrice, priceAssetId, maxCanSell, isOnSale)
326311 }
327312 }
328313
329314
330315 func getBidData (i,caller,issuer,artId,bidOwner,bidId,priceAssetId,artworkPrice,isBid) = {
331316 let checkUser = validateUser(issuer)
332317 if (if (isBid)
333318 then (checkUser != "")
334319 else false)
335320 then throw(checkUser)
336321 else {
337322 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
338323 let t01351913648 = if (isBid)
339324 then getPriceAssetIdFromBid(bidDataKey)
340325 else validatePriceAssetId(i, priceAssetId, artworkPrice)
341326 let amount = t01351913648._1
342327 let assetId = t01351913648._2
343328 $Tuple3(bidDataKey, amount, assetId)
344329 }
345330 }
346331
347332
348333 func getIssueData (issuer,artId,artworkName,newAmountSold,maxCanSell,totalNFT,caller,bidOwner,bidId,i,isOnSale) = {
349334 let issueMeta = ((((((((("Creator: " + issuer) + ",ArtID: ") + artId) + ",Artwork name: ") + artworkName) + ",Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell))
350335 let sellStatus = if (if ((newAmountSold == maxCanSell))
351336 then true
352337 else !(isOnSale))
353338 then false
354339 else true
355340 let receiveNFT = if ((bidOwner != ""))
356341 then addressFromStringValue(bidOwner)
357342 else i.caller
358343 $Tuple3(sellStatus, receiveNFT, issueMeta)
359344 }
360345
361346
362347 func getBidKeyVal (assetId,bidDataKey,date) = {
363348 let assetIdBid = if (!(isDefined(assetId)))
364349 then throw("Only USDN is accepted")
365350 else toBase58String(value(assetId))
366351 let bidData = getStringByKey((bidDataKey + "_OPEN"))
367352 let bidDelOld = DeleteEntry((bidDataKey + "_OPEN"))
368353 let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date)))
369354 $Tuple3(assetIdBid, bidDelOld, bidUpdate)
370355 }
371356
372357
373358 func buyMint (i,artId,issuer,bidId,bidOwner,isBid) = {
374359 let callerData = idCallerDate(i)
375360 let id = callerData._1
376361 let caller = callerData._2
377362 let date = callerData._3
378363 let artData = getArtData(i, issuer, artId, isBid)
379364 let totalNFT = artData._1
380365 let artworkName = artData._2
381366 let amountSold = artData._3
382367 let artworkPrice = artData._4
383368 let priceAssetId = artData._5
384369 let maxCanSell = artData._6
385370 let isOnSale = artData._7
386371 let bidData = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid)
387372 let bidDataKey = bidData._1
388373 let amount = bidData._2
389374 let assetId = bidData._3
390375 let newAmountSold = if ((amountSold == maxCanSell))
391376 then throw("Max items sold")
392377 else (amountSold + 1)
393378 let issuerData = getIssueData(issuer, artId, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i, isOnSale)
394379 let sellStatus = issuerData._1
395380 let receiveNFT = issuerData._2
396381 let issueMeta = issuerData._3
397382 let idNFTInvoke = invoke(this, "mintNft", [totalNFT, issueMeta, toString(receiveNFT)], nil)
398383 if ((idNFTInvoke == idNFTInvoke))
399384 then {
400385 let idNFT = match idNFTInvoke {
401386 case r: String =>
402387 r
403388 case _ =>
404389 throw("Incorrect invoke result")
405390 }
406391 let bidKeyValue = getBidKeyVal(assetId, bidDataKey, date)
407392 let assetIdBid = bidKeyValue._1
408393 let bidDelOld = bidKeyValue._2
409394 let bidUpdate = bidKeyValue._3
410395 let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer)
411396 let soldValue = if (!(isBid))
412397 then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + idNFT)
413398 else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + idNFT)
414399 let invokeTeamFeeSplit = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "payFee", [artId, issuer], [AttachedPayment(assetId, amount)])
415400 if ((invokeTeamFeeSplit == invokeTeamFeeSplit))
416401 then {
417402 let soldData = StringEntry(soldKey, soldValue)
418403 let buyRes = [IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + idNFT), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyOnSale(issuer, artId), sellStatus), StringEntry(KeyNftIssuer(idNFT), issuer), StringEntry(KeyNftArtId(idNFT), artId)]
419- let res = invoke(addressFromStringValue(certDapp), "createCert", [toString(receiveNFT), idNFT, issuer], nil)
420- if ((res == res))
421- then if (isBid)
422- then (((buyRes :+ soldData) :+ bidUpdate) :+ bidDelOld)
423- else soldData :: buyRes
404+ let validateAndProcessPaymentInvoke = invoke(valueOrErrorMessage(stakeDapp, "this not found"), "validateAndProcessPayment", nil, [i.payments[0]])
405+ if ((validateAndProcessPaymentInvoke == validateAndProcessPaymentInvoke))
406+ then {
407+ let res = invoke(addressFromStringValue(certDapp), "createCert", [toString(receiveNFT), idNFT, issuer], nil)
408+ if ((res == res))
409+ then if (isBid)
410+ then (((buyRes :+ soldData) :+ bidUpdate) :+ bidDelOld)
411+ else soldData :: buyRes
412+ else throw("Strict value is not equal to itself.")
413+ }
424414 else throw("Strict value is not equal to itself.")
425415 }
426416 else throw("Strict value is not equal to itself.")
427417 }
428418 else throw("Strict value is not equal to itself.")
429419 }
430420
431421
432422 func setBidNonTraditional (i,artId,issuer) = {
433423 let t02770927747 = idCallerDate(i)
434424 let id = t02770927747._1
435425 let caller = t02770927747._2
436426 let date = t02770927747._3
437- let t02775227788 = isPayment(i)
427+ let t02775227788 = isPayment(i, 0)
438428 let payment = t02775227788._1
439429 let amount = t02775227788._2
440430 let assetId = if (!(isDefined(payment.assetId)))
441431 then throw("Only USDN is accepted!")
442432 else toBase58String(value(payment.assetId))
443433 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
444434 if (!(acceptedAssetIds(assetId)))
445435 then throw("asset not accepted")
446436 else {
447437 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
448438 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
449439 if ((0 >= maxCanSell))
450440 then throw("No max edition set for this artwork")
451441 else if ((amountSold >= maxCanSell))
452442 then throw("Sold out, you cannot bid")
453- else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))]
443+ else {
444+ let validateAndProcessPaymentInvoke = invoke(valueOrErrorMessage(stakeDapp, "this not found"), "validateAndProcessPayment", nil, [i.payments[1]])
445+ if ((validateAndProcessPaymentInvoke == validateAndProcessPaymentInvoke))
446+ then [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))]
447+ else throw("Strict value is not equal to itself.")
448+ }
454449 }
455450 }
456451
457452
458453 func setBidTraditional (i,artId,issuer) = {
459454 let endHeight = getIntegerByKey(keyEndHeight(issuer, artId))
460455 let highestBid = getAmountHighestBidByArtId(artId)
461456 if ((height > endHeight))
462457 then throw("This auction is finished already!")
463458 else {
464459 let callderData = idCallerDate(i)
465460 let id = callderData._1
466461 let caller = callderData._2
467462 let date = callderData._3
468- let isPaymentVar = isPayment(i)
463+ let isPaymentVar = isPayment(i, 0)
469464 let payment = isPaymentVar._1
470465 let amount = isPaymentVar._2
471466 if ((highestBid >= amount))
472467 then throw(("Please place a bid higher than: " + toString(highestBid)))
473468 else {
474469 let assetId = if (!(isDefined(payment.assetId)))
475470 then throw("Only USDN is accepted!")
476471 else toBase58String(value(payment.assetId))
477472 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
478473 let minArtworkPrice = valueOrElse(getIntegerByKey(keyPrice(issuer, artId)), minUSDNPrice)
479474 if (!(acceptedAssetIds(assetId)))
480475 then throw("asset not accepted")
481476 else if ((minArtworkPrice > amount))
482477 then throw("Bid is below min price!")
483478 else {
484479 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
485480 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
486481 if ((0 >= maxCanSell))
487482 then throw("No max edition set for this artwork")
488483 else if ((amountSold >= maxCanSell))
489484 then throw("Sold out, you cannot bid")
490- 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)]
485+ else {
486+ let validateAndProcessPaymentInvoke = invoke(valueOrErrorMessage(stakeDapp, "this not found"), "validateAndProcessPayment", nil, [i.payments[1]])
487+ if ((validateAndProcessPaymentInvoke == validateAndProcessPaymentInvoke))
488+ then [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)]
489+ else throw("Strict value is not equal to itself.")
490+ }
491491 }
492492 }
493493 }
494494 }
495495
496496
497497 func acceptBidNonTraditional (i,artId,issuer,bidId,bidOwner) = {
498498 let caller = toBase58String(i.caller.bytes)
499499 if ((caller != issuer))
500500 then throw("You cannot do this action")
501501 else buyMint(i, artId, issuer, bidId, bidOwner, true)
502502 }
503503
504504
505505 func restartAuction (artId,issuer) = {
506506 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
507507 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
508508 let oldEndHeight = getIntegerByKey(keyEndHeight(issuer, artId))
509509 let duration = getIntegerByKey(keyDuration(issuer, artId))
510510 let endHeight = (duration + height)
511511 if ((oldEndHeight >= height))
512512 then throw("Previous auction isn't completed yet")
513513 else if ((amountSold == maxCanSell))
514514 then throw("Can't restart auction, max amount sold")
515515 else [IntegerEntry(keyEndHeight(issuer, artId), endHeight), DeleteEntry(keyHighestBidBidId(artId))]
516516 }
517517
518518
519519 func acceptBidTraditional (i,artId,issuer,bidId,bidOwner) = {
520520 let endHeight = getIntegerByKey(keyEndHeight(issuer, artId))
521521 let highestBidId = getStringByKey(keyHighestBidBidId(artId))
522522 if ((endHeight >= height))
523523 then throw("This auction is not yet finished!")
524524 else if ((bidId != highestBidId))
525525 then throw("This is not the winning bid!")
526526 else {
527527 let buyMintData = buyMint(i, artId, issuer, bidId, bidOwner, true)
528528 let restartAuctionData = restartAuction(artId, issuer)
529529 (restartAuctionData ++ buyMintData)
530530 }
531531 }
532532
533533
534534 func cancelBidImpl (i,artId,issuer,bidId) = {
535535 let t02894229094 = idCallerDate(i)
536536 let id = t02894229094._1
537537 let caller = t02894229094._2
538538 let date = t02894229094._3
539539 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
540540 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId)
541541 let bidData = getStringByKeyOrError((bidDataKey + "_OPEN"), "Bid not found")
542542 let bidDataArr = split(bidData, "_")
543543 let assetId = getBidAssetId(bidDataArr[0])
544544 let bidStatus = "CANCELED"
545545 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
546546 }
547547
548548
549549 func cancelBidImplTraditional (i,artId,issuer,bidId) = {
550550 let t02894229094 = idCallerDate(i)
551551 let id = t02894229094._1
552552 let caller = t02894229094._2
553553 let date = t02894229094._3
554554 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
555555 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId)
556556 let bidData = getStringByKeyOrError((bidDataKey + "_OPEN"), "Bid not found")
557557 let bidDataArr = split(bidData, "_")
558558 let assetId = getBidAssetId(bidDataArr[0])
559559 let bidStatus = "CANCELED"
560560 let bidAmount = parseIntValue(bidDataArr[1])
561561 let highestBidId = getStringByKey(keyHighestBidBidId(artId))
562562 if ((bidId == highestBidId))
563563 then throw("You can't cancel the highest bid!")
564564 else [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), bidAmount, assetId)]
565565 }
566566
567567
568568 @Callable(i)
569569 func initDapp (dappKey) = if ((i.caller != this))
570570 then throw("You cannot do this action")
571571 else if ((oracle != ""))
572572 then throw("oracle already set, you can't override!")
573573 else [StringEntry(oracleKey, dappKey)]
574574
575575
576576
577577 @Callable(i)
578578 func restartAuctionManual (artId) = if ((getAmountHighestBidByArtId(artId) != 0))
579579 then throw("Please accept the highest bid!")
580580 else restartAuction(artId, toBase58String(i.caller.bytes))
581581
582582
583583
584584 @Callable(i)
585585 func mintNft (totalNFT,issueMeta,receiveNFT) = if ((i.caller != this))
586586 then throw("Only the dApp can mint NFT's")
587587 else {
588588 let receiveNFTAddy = Address(fromBase58String(receiveNFT))
589589 let issueNFT = Issue(("SCONEX_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
590590 let idNFT = calculateAssetId(issueNFT)
591591 $Tuple2([issueNFT, ScriptTransfer(receiveNFTAddy, 1, idNFT)], toBase58String(idNFT))
592592 }
593593
594594
595595
596596 @Callable(i)
597597 func addArtwork (sha256Hash,name,description,tags,type,cidDisplay,entitlement,preview,collection,subcollection) = {
598598 let t01774017781 = idCallerDate(i)
599599 let artId = t01774017781._1
600600 let caller = t01774017781._2
601601 let date = t01774017781._3
602602 if (!(containsElement(types, type)))
603603 then throw("Unknown type")
604604 else {
605605 let validateArtwork = validateArtworkData(caller, cidDisplay, name, description, tags)
606606 if ((validateArtwork != ""))
607607 then throw("Something went wrong!")
608608 else {
609- let validP = validatePayment(i)
610- let amount = validP._1
611- let assetId = validP._2
612- if (!(isDefined(amount)))
613- then throw("Something went wrong")
614- else {
609+ let validateAndProcessPaymentInvoke = invoke(valueOrErrorMessage(stakeDapp, "this not found"), "validateAndProcessPayment", nil, [i.payments[0]])
610+ if ((validateAndProcessPaymentInvoke == validateAndProcessPaymentInvoke))
611+ then {
615612 let previewData = if (containsElement(Previewtypes, type))
616613 then [StringEntry(keyPreviewCid(caller, artId), preview)]
617614 else nil
618- let invokeTeamFeeSplit = invoke(valueOrErrorMessage(stakeDapp, "stakeDapp not found"), "topUpReward", nil, [AttachedPayment(assetId, amount)])
619- if ((invokeTeamFeeSplit == invokeTeamFeeSplit))
615+ let invokeCollectionCreate = invoke(valueOrErrorMessage(addressFromString(collectionsDapp), (collectionsDapp + " not found")), "collectionProcess", [collection, subcollection, caller], nil)
616+ if ((invokeCollectionCreate == invokeCollectionCreate))
620617 then {
621- let invokeCollectionCreate = invoke(valueOrErrorMessage(addressFromString(collectionsDapp), (collectionsDapp + " not found")), "collectionProcess", [collection, subcollection, caller], nil)
622- if ((invokeCollectionCreate == invokeCollectionCreate))
623- then {
624- let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller))
625- if ((entryExist != ""))
626- then throw("You already added it")
627- else {
628- let hashExist = getStringByKey(keyOwnerByHash(sha256Hash))
629- if ((hashExist != ""))
630- then throw("This hash is already registered")
631- else (previewData ++ [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)])
632- }
618+ let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller))
619+ if ((entryExist != ""))
620+ then throw("You already added it")
621+ else {
622+ let hashExist = getStringByKey(keyOwnerByHash(sha256Hash))
623+ if ((hashExist != ""))
624+ then throw("This hash is already registered")
625+ else (previewData ++ [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)])
633626 }
634- else throw("Strict value is not equal to itself.")
635627 }
636628 else throw("Strict value is not equal to itself.")
637629 }
630+ else throw("Strict value is not equal to itself.")
638631 }
639632 }
640633 }
641634
642635
643636
644637 @Callable(i)
645638 func sellArtwork (artId,price,maxMint,assetId,auctionType,duration,add1,add2,add3,add1Sh,add2Sh,add3Sh) = {
646639 let callData = idCallerDate(i)
647640 let id = callData._1
648641 let caller = callData._2
649642 let amountSold = getIntegerByKey(keyIssued(caller, artId))
650643 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
651- let validP = validatePayment(i)
652- let amountP = validP._1
653- let assetIdP = validP._2
654- if (!(isDefined(amountP)))
655- then throw("Something went wrong")
656- else {
657- let invokeTeamFeeSplit = invoke(valueOrErrorMessage(stakeDapp, "stakeDapp not found"), "topUpReward", nil, [AttachedPayment(assetIdP, amountP)])
658- if ((invokeTeamFeeSplit == invokeTeamFeeSplit))
659- then if (if ((bidNbr > 0))
660- then true
661- else (amountSold > 0))
662- then throw("There are bids or items sold, you can not edit anything!")
663- else {
664- let artworkName = getStringByKey(keyName(caller, artId))
665- if (!(containsElement([auctionType1, auctionType2, auctionType3], auctionType)))
666- then throw("We don't know this auction type")
667- else if ((artworkName == ""))
668- then throw("This art doesn't match your account")
669- else if (!(acceptedAssetIds(assetId)))
670- then throw("Something went wrong!")
671- else if (!(validateMinSell(assetId, price)))
672- then throw("Something went wrong!")
673- else {
674- let checkUser = validateUser(caller)
675- if ((checkUser != ""))
676- then throw(checkUser)
677- else if ((maxMint > 10000))
678- then throw("10000 editions max per artwork")
679- else {
680- let sellStatus = if ((price > 0))
681- then (maxMint > 0)
682- else false
683- let teamFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "teamSplitFee", [artId, feeReceiver, "", "", 15, 0, 0], nil)
684- if ((teamFee == teamFee))
644+ let validateAndProcessPaymentInvoke = invoke(valueOrErrorMessage(stakeDapp, "this not found"), "validateAndProcessPayment", nil, [i.payments[0]])
645+ if ((validateAndProcessPaymentInvoke == validateAndProcessPaymentInvoke))
646+ then if (if ((bidNbr > 0))
647+ then true
648+ else (amountSold > 0))
649+ then throw("There are bids or items sold, you can not edit anything!")
650+ else {
651+ let artworkName = getStringByKey(keyName(caller, artId))
652+ if (!(containsElement([auctionType1, auctionType2, auctionType3], auctionType)))
653+ then throw("We don't know this auction type")
654+ else if ((artworkName == ""))
655+ then throw("This art doesn't match your account")
656+ else if (!(acceptedAssetIds(assetId)))
657+ then throw("Something went wrong!")
658+ else if (!(validateMinSell(assetId, price)))
659+ then throw("Something went wrong!")
660+ else {
661+ let checkUser = validateUser(caller)
662+ if ((checkUser != ""))
663+ then throw(checkUser)
664+ else if ((maxMint > 10000))
665+ then throw("10000 editions max per artwork")
666+ else {
667+ let sellStatus = if ((price > 0))
668+ then (maxMint > 0)
669+ else false
670+ let teamFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "teamSplitFee", [artId, feeReceiver, "", "", 15, 0, 0], nil)
671+ if ((teamFee == teamFee))
672+ then {
673+ let creatorFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "creatorSplitFee", [artId, add1, add2, add3, add1Sh, add2Sh, add3Sh], nil)
674+ if ((creatorFee == creatorFee))
685675 then {
686- let creatorFee = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "creatorSplitFee", [artId, add1, add2, add3, add1Sh, add2Sh, add3Sh], nil)
687- if ((creatorFee == creatorFee))
688- then {
689- let endHeight = (duration + height)
676+ let endHeight = (duration + height)
690677 [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)]
691- }
692- else throw("Strict value is not equal to itself.")
693678 }
694679 else throw("Strict value is not equal to itself.")
695680 }
696- }
697- }
698- else throw("Strict value is not equal to itself.")
699- }
681+ else throw("Strict value is not equal to itself.")
682+ }
683+ }
684+ }
685+ else throw("Strict value is not equal to itself.")
700686 }
701687
702688
703689
704690 @Callable(i)
705691 func buyArtwork (artId,issuer) = {
706692 let auctionType = getStringByKey(keyAuctionType(issuer, artId))
707693 if ((auctionType == auctionType3))
708694 then buyMint(i, artId, issuer, "", "", false)
709695 else throw("Direct buy only allowed when no auction type is set!")
710696 }
711697
712698
713699
714700 @Callable(i)
715701 func updateTags (artist,artId,tags) = {
716702 let caller = toString(addressFromPublicKey(i.callerPublicKey))
717703 if (!(containsElement(owners, caller)))
718704 then throw("no")
719705 else if ((size(split(tags, ",")) > 5))
720706 then throw("5 tags max.")
721707 else {
722708 let tagsOld = getStringByKeyOrError(keyTags(artist, artId), "No tags created with this key, so can't update!")
723709 if ((tags == tagsOld))
724710 then throw("Tags are the same as old tags!")
725711 else [StringEntry(keyTags(artist, artId), tags)]
726712 }
727713 }
728714
729715
730716
731717 @Callable(i)
732718 func deleteEntry (entry) = {
733719 let caller = toString(addressFromPublicKey(i.callerPublicKey))
734720 if (!(containsElement(owners, caller)))
735721 then throw("no")
736722 else [DeleteEntry(entry)]
737723 }
738724
739725
740726
741727 @Callable(i)
742728 func setBid (artId,issuer) = {
743729 let auctionType = getStringByKey(keyAuctionType(issuer, artId))
744730 if ((auctionType == auctionType1))
745731 then setBidNonTraditional(i, artId, issuer)
746732 else if ((auctionType == auctionType2))
747733 then setBidTraditional(i, artId, issuer)
748734 else throw((("Unknown auction type :" + auctionType) + ", please contact the admins"))
749735 }
750736
751737
752738
753739 @Callable(i)
754740 func acceptBid (artId,issuer,bidId,bidOwner) = {
755741 let auctionType = getStringByKey(keyAuctionType(issuer, artId))
756742 if ((auctionType == auctionType1))
757743 then acceptBidNonTraditional(i, artId, issuer, bidId, bidOwner)
758744 else if ((auctionType == auctionType2))
759745 then acceptBidTraditional(i, artId, issuer, bidId, bidOwner)
760746 else throw((("Unknown auction type :" + auctionType) + ", please contact the admins"))
761747 }
762748
763749
764750
765751 @Callable(i)
766752 func cancelBid (artId,issuer,bidId) = {
767753 let auctionType = getStringByKey(keyAuctionType(issuer, artId))
768754 if ((auctionType == auctionType1))
769755 then cancelBidImpl(i, artId, issuer, bidId)
770756 else cancelBidImplTraditional(i, artId, issuer, bidId)
771757 }
772758
773759

github/deemru/w8io/026f985 
90.08 ms