tx · 9kDGwgP1t1AmFViMTyAqXeptj59HjpgLnxizf5tn51tm

3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY:  -0.02500000 Waves

2023.01.20 08:50 [2412873] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves

{ "type": 13, "id": "9kDGwgP1t1AmFViMTyAqXeptj59HjpgLnxizf5tn51tm", "fee": 2500000, "feeAssetId": null, "timestamp": 1674193881642, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "274G5cp6UsWSBqPSbuP7p9P3VU5cUDnsBXeLoKmJ48bMWCF6bHvXLt8Kq9DoFAagGAP1NLNSZzx3u7JsyFHpaQPt" ], "script": "base64:BgJfCAISBAoCCAgSEAoOCAgICAgICAgICAgIAQgSDwoNCAgICAgICAgICAgBCBIGCgQICAgIEgQKAggIEggKBggBAQgBCBIECgIICBIECgIICBIGCgQICAgIEgYKBAgICAhOAAdWRVJTSU9OAgYxLjEuMTABDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgAACHVuaXRUZXN0BwAJb3JhY2xlRmVlCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECD2NvbmZfb3JhY2xlX2ZlZQAIc2lnbkRhcHAJAQV2YWx1ZQEJAKYIAQkBDmdldFN0cmluZ0J5S2V5AQIRY29uZl9zaWdud2ViX2RhcHAAC2ZlZVJlY2VpdmVyCQEOZ2V0U3RyaW5nQnlLZXkBAhFjb25mX2ZlZV9yZWNlaXZlcgAIdXNlckRhcHADBQh1bml0VGVzdAkBBXZhbHVlAQkApggBAiMzTXQ0UkdNRXlqU1dZQW9jVFBxZDU1d2RIUVFCM1BVMlVDbQkBBXZhbHVlAQkApggBCQEOZ2V0U3RyaW5nQnl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tw==", "height": 2412873, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 93JCaHiMe8d3iUnAkzqD2ThmDqzwA16MmdTgZY851yti Next: 3ZUTcCayZHYn1JFS9VeNdFqmzVTNykM65drrUGxsapRa Diff:
OldNewDifferences
376376 func idCallerDateSponsored (i,pubKey) = if (!(dappRunning))
377377 then throw(maintenanceMSG)
378378 else {
379- let isSponsored = valueOrElse(checkWhitelist((toString(addressFromPublicKey(fromBase58String(pubKey))) + "_free_txs")), 0)
379+ let isSponsored = if ((pubKey != ""))
380+ then valueOrElse(checkWhitelist((toString(addressFromPublicKey(fromBase58String(pubKey))) + "_free_txs")), 0)
381+ else 0
380382 let caller = if (if (if ((toBase58String(i.caller.bytes) == toString(this)))
381383 then (size(i.payments) == 0)
382384 else false)
399401
400402
401403 func buyMint (i,artId,issuer,bidId,bidOwner) = {
402- let $t01291912978 = idCallerDate(i)
403- let id = $t01291912978._1
404- let caller = $t01291912978._2
405- let date = $t01291912978._3
404+ let $t01294713006 = idCallerDate(i)
405+ let id = $t01294713006._1
406+ let caller = $t01294713006._2
407+ let date = $t01294713006._3
406408 let isBid = if (if (if ((caller == issuer))
407409 then (bidOwner != "")
408410 else false)
458460 then throw(checkUser)
459461 else {
460462 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
461- let $t01468114848 = if (isBid)
463+ let $t01470914876 = if (isBid)
462464 then getPriceAssetIdFromBid(bidDataKey)
463465 else validatePriceAssetId(i, priceAssetId, artworkPrice)
464- let amount = $t01468114848._1
465- let assetId = $t01468114848._2
466+ let amount = $t01470914876._1
467+ let assetId = $t01470914876._2
466468 let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver)
467469 let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShare(issuer)), 0)
468470 let isWhitelisted = checkWhitelist(issuer)
551553
552554 @Callable(i)
553555 func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = {
554- let $t01888118954 = idCallerDateSponsored(i, pubKey)
555- let artId = $t01888118954._1
556- let caller = $t01888118954._2
557- let date = $t01888118954._3
558- let isSponsored = $t01888118954._4
556+ let $t01890918982 = idCallerDateSponsored(i, pubKey)
557+ let artId = $t01890918982._1
558+ let caller = $t01890918982._2
559+ let date = $t01890918982._3
560+ let isSponsored = $t01890918982._4
559561 if (!(validateHash(sha256Hash)))
560562 then throw("Hash should be 64 characters maximum")
561563 else {
562- let $t01905519124 = setLIcence(cidLicence, sha256Licence)
563- let licenceCID = $t01905519124._1
564- let licenceHash = $t01905519124._2
564+ let $t01908319152 = setLIcence(cidLicence, sha256Licence)
565+ let licenceCID = $t01908319152._1
566+ let licenceHash = $t01908319152._2
565567 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
566568 if ((validateArtwork != ""))
567569 then throw("Something went wrong!")
568570 else {
569571 let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0)
570- let $t01942319507 = if (whitelisted_drop)
572+ let $t01945119535 = if (whitelisted_drop)
571573 then $Tuple2(0, signID)
572574 else validatePayment(i)
573- let amount = $t01942319507._1
574- let assetId = $t01942319507._2
575+ let amount = $t01945119535._1
576+ let assetId = $t01945119535._2
575577 if (!(isDefined(amount)))
576578 then throw("Something went wrong")
577579 else {
612614 func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning))
613615 then throw(maintenanceMSG)
614616 else {
615- let $t02254122611 = idCallerDateSponsored(i, pubKey)
616- let id = $t02254122611._1
617- let caller = $t02254122611._2
618- let date = $t02254122611._3
619- let isSponsored = $t02254122611._4
620- let $t02262122690 = setLIcence(cidLicence, sha256Licence)
621- let licenceCID = $t02262122690._1
622- let licenceHash = $t02262122690._2
617+ let $t02256922639 = idCallerDateSponsored(i, pubKey)
618+ let id = $t02256922639._1
619+ let caller = $t02256922639._2
620+ let date = $t02256922639._3
621+ let isSponsored = $t02256922639._4
622+ let $t02264922718 = setLIcence(cidLicence, sha256Licence)
623+ let licenceCID = $t02264922718._1
624+ let licenceHash = $t02264922718._2
623625 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
624626 if ((validateArtwork != ""))
625627 then throw("Something went wrong!")
647649
648650 @Callable(i)
649651 func flagArtwork (artId,addr,flag,note) = {
650- let $t02431724351 = idCallerDate(i)
651- let id = $t02431724351._1
652- let caller = $t02431724351._2
652+ let $t02434524379 = idCallerDate(i)
653+ let id = $t02434524379._1
654+ let caller = $t02434524379._2
653655 if (containsElement([chris, toString(this)], caller))
654656 then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
655657 then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)]
661663
662664 @Callable(i)
663665 func deleteArtwork (artId,addr) = {
664- let $t02478724821 = idCallerDate(i)
665- let id = $t02478724821._1
666- let caller = $t02478724821._2
666+ let $t02481524849 = idCallerDate(i)
667+ let id = $t02481524849._1
668+ let caller = $t02481524849._2
667669 let addrToUse = if (containsElement([chris, toString(this)], caller))
668670 then addr
669671 else caller
696698
697699 @Callable(i)
698700 func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = {
699- let $t02765727727 = idCallerDateSponsored(i, pubKey)
700- let id = $t02765727727._1
701- let caller = $t02765727727._2
702- let date = $t02765727727._3
703- let isSponsored = $t02765727727._4
701+ let $t02768527755 = idCallerDateSponsored(i, pubKey)
702+ let id = $t02768527755._1
703+ let caller = $t02768527755._2
704+ let date = $t02768527755._3
705+ let isSponsored = $t02768527755._4
704706 let artworkName = getStringByKey(keyName(caller, artId))
705707 if ((artworkName == ""))
706708 then throw("This art doesn't match your account")
774776
775777 @Callable(i)
776778 func setBid (artId,issuer) = {
777- let $t03010530145 = idCallerDate(i)
778- let id = $t03010530145._1
779- let caller = $t03010530145._2
780- let date = $t03010530145._3
781- let $t03015030186 = isPayment(i)
782- let payment = $t03015030186._1
783- let amount = $t03015030186._2
779+ let $t03013330173 = idCallerDate(i)
780+ let id = $t03013330173._1
781+ let caller = $t03013330173._2
782+ let date = $t03013330173._3
783+ let $t03017830214 = isPayment(i)
784+ let payment = $t03017830214._1
785+ let amount = $t03017830214._2
784786 let assetId = if (!(isDefined(payment.assetId)))
785787 then "WAVES"
786788 else toBase58String(value(payment.assetId))
811813
812814 @Callable(i)
813815 func acceptBid (artId,issuer,bidId,bidOwner) = {
814- let $t03134431384 = idCallerDate(i)
815- let id = $t03134431384._1
816- let caller = $t03134431384._2
817- let date = $t03134431384._3
816+ let $t03137231412 = idCallerDate(i)
817+ let id = $t03137231412._1
818+ let caller = $t03137231412._2
819+ let date = $t03137231412._3
818820 if ((caller != issuer))
819821 then throw("You cannot do this action")
820822 else buyMint(i, artId, issuer, bidId, bidOwner)
824826
825827 @Callable(i)
826828 func cancelBid (artId,issuer,bidId,bidOwner) = {
827- let $t03161031671 = idCallerDate(i)
828- let id = $t03161031671._1
829- let caller = $t03161031671._2
830- let date = $t03161031671._3
829+ let $t03163831699 = idCallerDate(i)
830+ let id = $t03163831699._1
831+ let caller = $t03163831699._2
832+ let date = $t03163831699._3
831833 if (if ((caller != bidOwner))
832834 then (caller != issuer)
833835 else false)
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 {
379- let isSponsored = valueOrElse(checkWhitelist((toString(addressFromPublicKey(fromBase58String(pubKey))) + "_free_txs")), 0)
379+ let isSponsored = if ((pubKey != ""))
380+ then valueOrElse(checkWhitelist((toString(addressFromPublicKey(fromBase58String(pubKey))) + "_free_txs")), 0)
381+ else 0
380382 let caller = if (if (if ((toBase58String(i.caller.bytes) == toString(this)))
381383 then (size(i.payments) == 0)
382384 else false)
383385 then (isSponsored > 0)
384386 else false)
385387 then toString(addressFromPublicKey(fromBase58String(pubKey)))
386388 else toBase58String(i.caller.bytes)
387389 let get_sponsored_waves = if ((pubKey != ""))
388390 then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil)
389391 else unit
390392 if ((get_sponsored_waves == get_sponsored_waves))
391393 then $Tuple4(toBase58String(i.transactionId), caller, lastBlock.timestamp, (isSponsored > 0))
392394 else throw("Strict value is not equal to itself.")
393395 }
394396
395397
396398 func idCallerDate (i) = if (!(dappRunning))
397399 then throw(maintenanceMSG)
398400 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
399401
400402
401403 func buyMint (i,artId,issuer,bidId,bidOwner) = {
402- let $t01291912978 = idCallerDate(i)
403- let id = $t01291912978._1
404- let caller = $t01291912978._2
405- let date = $t01291912978._3
404+ let $t01294713006 = idCallerDate(i)
405+ let id = $t01294713006._1
406+ let caller = $t01294713006._2
407+ let date = $t01294713006._3
406408 let isBid = if (if (if ((caller == issuer))
407409 then (bidOwner != "")
408410 else false)
409411 then (bidId != "")
410412 else false)
411413 then true
412414 else false
413415 let blockEnd = getIntegerByKey(keyEndSale(caller, artId))
414416 if (if (if ((blockEnd != 0))
415417 then (height >= blockEnd)
416418 else false)
417419 then !(isBid)
418420 else false)
419421 then throw("Sale ended.")
420422 else {
421423 let callerIsIssuer = (caller == issuer)
422424 let totalNFT = getIntegerByKey("total_nft_issued")
423425 let signID = getStringByKey(keySignID(issuer, artId))
424426 let artworkName = getStringByKey(keyName(issuer, artId))
425427 if ((artworkName == ""))
426428 then throw("Art doesn't exist")
427429 else {
428430 let isOnSale = getBooleanByKey(keyOnSale(issuer, artId))
429431 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
430432 let artworkPrice = if (callerIsIssuer)
431433 then (currentCertificationPrice * 2)
432434 else getIntegerByKey(keyPrice(issuer, artId))
433435 let priceAssetId = if (callerIsIssuer)
434436 then toBase58String(signAssetId)
435437 else getStringByKey(keyAssetIdAccepted(issuer, artId))
436438 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
437439 if (if (if (!(isBid))
438440 then !(callerIsIssuer)
439441 else false)
440442 then if (if ((0 >= artworkPrice))
441443 then true
442444 else !(isOnSale))
443445 then true
444446 else (0 >= maxCanSell)
445447 else false)
446448 then throw("Art not for sale")
447449 else if (if (if (!(isBid))
448450 then callerIsIssuer
449451 else false)
450452 then (0 >= maxCanSell)
451453 else false)
452454 then throw("Max issuable not set")
453455 else {
454456 let checkUser = validateUser(issuer)
455457 if (if (isBid)
456458 then (checkUser != "")
457459 else false)
458460 then throw(checkUser)
459461 else {
460462 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
461- let $t01468114848 = if (isBid)
463+ let $t01470914876 = if (isBid)
462464 then getPriceAssetIdFromBid(bidDataKey)
463465 else validatePriceAssetId(i, priceAssetId, artworkPrice)
464- let amount = $t01468114848._1
465- let assetId = $t01468114848._2
466+ let amount = $t01470914876._1
467+ let assetId = $t01470914876._2
466468 let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver)
467469 let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShare(issuer)), 0)
468470 let isWhitelisted = checkWhitelist(issuer)
469471 let cut = if ((isWhitelisted > height))
470472 then 0
471473 else if ((assetId == signAssetId))
472474 then signCut
473475 else usdnWaveCut
474476 let amountForSign = fraction(amount, cut, 100)
475477 let amountForAgent = if (if (if ((agent != feeReceiver))
476478 then (agentShare > 0)
477479 else false)
478480 then (height > isWhitelisted)
479481 else false)
480482 then fraction(amount, agentShare, 100)
481483 else 0
482484 let amountForCreator = (amount - amountForSign)
483485 if ((amountSold == maxCanSell))
484486 then throw("Art sold out")
485487 else {
486488 let newAmountSold = (amountSold + 1)
487489 let issueMeta = ((((((((((("Creator: " + issuer) + ",
488490 ArtID: ") + artId) + ",
489491 SignID: ") + signID) + ",
490492 Artwork name: ") + artworkName) + ",
491493 Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell))
492494 let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
493495 let idNFT = calculateAssetId(issueNFT)
494496 let sellStatus = if (if ((newAmountSold == maxCanSell))
495497 then true
496498 else !(isOnSale))
497499 then false
498500 else true
499501 let receiveNFT = if (if (if ((caller == issuer))
500502 then (bidOwner != "")
501503 else false)
502504 then (bidId != "")
503505 else false)
504506 then addressFromStringValue(bidOwner)
505507 else i.caller
506508 let assetIdBid = if (!(isDefined(assetId)))
507509 then "WAVES"
508510 else toBase58String(value(assetId))
509511 let bidData = getStringByKey((bidDataKey + "_OPEN"))
510512 let bidDelOld = DeleteEntry((bidDataKey + "_OPEN"))
511513 let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date)))
512514 let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer)
513515 let soldValue = if (!(isBid))
514516 then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT))
515517 else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT))
516518 let soldData = StringEntry(soldKey, soldValue)
517519 let commissions = if ((amountForAgent != 0))
518520 then [ScriptTransfer(Address(fromBase58String(feeReceiver)), (amountForSign - amountForAgent), assetId), ScriptTransfer(Address(fromBase58String(agent)), amountForAgent, assetId)]
519521 else [ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)]
520522 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)
521523 if (isBid)
522524 then [soldData, bidUpdate, bidDelOld] :: buyRes
523525 else soldData :: buyRes
524526 }
525527 }
526528 }
527529 }
528530 }
529531 }
530532
531533
532534 func asString (bv) = match bv {
533535 case bv0: String =>
534536 bv0
535537 case _ =>
536538 throw("Sponsored Public Key String expected")
537539 }
538540
539541
540542 @Callable(invoke)
541543 func setConf (key,val) = {
542544 let caller = toString(invoke.caller)
543545 if (containsElement([chris, toString(this)], caller))
544546 then if (contains(key, "conf_"))
545547 then [StringEntry(key, val)]
546548 else throw("Entries starting with conf_ only")
547549 else throw("You are not allowed to change this")
548550 }
549551
550552
551553
552554 @Callable(i)
553555 func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = {
554- let $t01888118954 = idCallerDateSponsored(i, pubKey)
555- let artId = $t01888118954._1
556- let caller = $t01888118954._2
557- let date = $t01888118954._3
558- let isSponsored = $t01888118954._4
556+ let $t01890918982 = idCallerDateSponsored(i, pubKey)
557+ let artId = $t01890918982._1
558+ let caller = $t01890918982._2
559+ let date = $t01890918982._3
560+ let isSponsored = $t01890918982._4
559561 if (!(validateHash(sha256Hash)))
560562 then throw("Hash should be 64 characters maximum")
561563 else {
562- let $t01905519124 = setLIcence(cidLicence, sha256Licence)
563- let licenceCID = $t01905519124._1
564- let licenceHash = $t01905519124._2
564+ let $t01908319152 = setLIcence(cidLicence, sha256Licence)
565+ let licenceCID = $t01908319152._1
566+ let licenceHash = $t01908319152._2
565567 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
566568 if ((validateArtwork != ""))
567569 then throw("Something went wrong!")
568570 else {
569571 let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0)
570- let $t01942319507 = if (whitelisted_drop)
572+ let $t01945119535 = if (whitelisted_drop)
571573 then $Tuple2(0, signID)
572574 else validatePayment(i)
573- let amount = $t01942319507._1
574- let assetId = $t01942319507._2
575+ let amount = $t01945119535._1
576+ let assetId = $t01945119535._2
575577 if (!(isDefined(amount)))
576578 then throw("Something went wrong")
577579 else {
578580 let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller))
579581 if ((entryExist != ""))
580582 then throw("You already added it")
581583 else {
582584 let hashExist = getStringByKey(keyOwnerByHash(sha256Hash))
583585 if ((hashExist != ""))
584586 then throw("Hash already registered")
585587 else {
586588 let isSignCertified = checkSignCertificate(signID, caller, sha256Hash)
587589 if (!(isSignCertified))
588590 then throw("Sign Certificate not found for this address.")
589591 else {
590592 let decrease_whitelist_drop = if (whitelisted_drop)
591593 then invoke(whitelistDapp, "useFreeDrop", [caller], nil)
592594 else unit
593595 if ((decrease_whitelist_drop == decrease_whitelist_drop))
594596 then {
595597 let txToCaller = if (isSponsored)
596598 then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)]
597599 else nil
598600 ([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)
599601 }
600602 else throw("Strict value is not equal to itself.")
601603 }
602604 }
603605 }
604606 }
605607 }
606608 }
607609 }
608610
609611
610612
611613 @Callable(i)
612614 func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning))
613615 then throw(maintenanceMSG)
614616 else {
615- let $t02254122611 = idCallerDateSponsored(i, pubKey)
616- let id = $t02254122611._1
617- let caller = $t02254122611._2
618- let date = $t02254122611._3
619- let isSponsored = $t02254122611._4
620- let $t02262122690 = setLIcence(cidLicence, sha256Licence)
621- let licenceCID = $t02262122690._1
622- let licenceHash = $t02262122690._2
617+ let $t02256922639 = idCallerDateSponsored(i, pubKey)
618+ let id = $t02256922639._1
619+ let caller = $t02256922639._2
620+ let date = $t02256922639._3
621+ let isSponsored = $t02256922639._4
622+ let $t02264922718 = setLIcence(cidLicence, sha256Licence)
623+ let licenceCID = $t02264922718._1
624+ let licenceHash = $t02264922718._2
623625 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
624626 if ((validateArtwork != ""))
625627 then throw("Something went wrong!")
626628 else {
627629 let entryExist = getStringByKey(keyName(caller, txid))
628630 if ((entryExist == ""))
629631 then throw("Entry not found")
630632 else {
631633 let flag = getStringByKey(keyFlag(caller, txid))
632634 if ((flag == "ILLEGAL"))
633635 then throw("Cannot update ILLEGAL artwork")
634636 else if (!(isArtMinted(caller, txid)))
635637 then {
636638 let txToCaller = if (isSponsored)
637639 then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)]
638640 else nil
639641 ([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)
640642 }
641643 else throw("Already minted")
642644 }
643645 }
644646 }
645647
646648
647649
648650 @Callable(i)
649651 func flagArtwork (artId,addr,flag,note) = {
650- let $t02431724351 = idCallerDate(i)
651- let id = $t02431724351._1
652- let caller = $t02431724351._2
652+ let $t02434524379 = idCallerDate(i)
653+ let id = $t02434524379._1
654+ let caller = $t02434524379._2
653655 if (containsElement([chris, toString(this)], caller))
654656 then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
655657 then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)]
656658 else throw(("Unknow status " + flag))
657659 else throw("You are not allowed")
658660 }
659661
660662
661663
662664 @Callable(i)
663665 func deleteArtwork (artId,addr) = {
664- let $t02478724821 = idCallerDate(i)
665- let id = $t02478724821._1
666- let caller = $t02478724821._2
666+ let $t02481524849 = idCallerDate(i)
667+ let id = $t02481524849._1
668+ let caller = $t02481524849._2
667669 let addrToUse = if (containsElement([chris, toString(this)], caller))
668670 then addr
669671 else caller
670672 let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address")
671673 if ((entryExist == ""))
672674 then throw("No art matching for this address")
673675 else {
674676 let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId))
675677 if ((sha256Hash == ""))
676678 then throw("No art hash matching for this address")
677679 else {
678680 let signID = getStringByKey(keySignID(addrToUse, artId))
679681 if ((signID == ""))
680682 then throw("No SIGN ID matching")
681683 else {
682684 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))]
683685 if (!(isArtMinted(addrToUse, artId)))
684686 then if (!(dappRunning))
685687 then throw(maintenanceMSG)
686688 else dataToDelete
687689 else if (containsElement([chris, toString(this)], caller))
688690 then dataToDelete
689691 else throw("Art already minted, you cannot delete it")
690692 }
691693 }
692694 }
693695 }
694696
695697
696698
697699 @Callable(i)
698700 func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = {
699- let $t02765727727 = idCallerDateSponsored(i, pubKey)
700- let id = $t02765727727._1
701- let caller = $t02765727727._2
702- let date = $t02765727727._3
703- let isSponsored = $t02765727727._4
701+ let $t02768527755 = idCallerDateSponsored(i, pubKey)
702+ let id = $t02768527755._1
703+ let caller = $t02768527755._2
704+ let date = $t02768527755._3
705+ let isSponsored = $t02768527755._4
704706 let artworkName = getStringByKey(keyName(caller, artId))
705707 if ((artworkName == ""))
706708 then throw("This art doesn't match your account")
707709 else {
708710 let flag = getStringByKey(keyFlag(caller, artId))
709711 if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
710712 then throw("Flagged artwork")
711713 else {
712714 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
713715 if ((0 > blockEnd))
714716 then throw("Negative end")
715717 else if (if ((blockEnd > 0))
716718 then if ((maxMint != 1))
717719 then true
718720 else (price != 0)
719721 else false)
720722 then throw("Timed offer only allowed for unique edition and offer only")
721723 else {
722724 let baseHeight = if ((blockEnd == 0))
723725 then 0
724726 else height
725727 if (!(acceptedAssetIds(assetId)))
726728 then throw("Something went wrong!")
727729 else if (!(validateMinSell(assetId, price)))
728730 then throw("Something went wrong!")
729731 else {
730732 let checkUser = validateUser(caller)
731733 if ((checkUser != ""))
732734 then throw(checkUser)
733735 else {
734736 let amountSold = getIntegerByKey(keyIssued(caller, artId))
735737 let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId))
736738 if ((maxMint > 100))
737739 then throw("100 editions max per artwork")
738740 else if (if ((amountSold != 0))
739741 then (amountSold == maxCanSell)
740742 else false)
741743 then throw("Max edition reached.")
742744 else if (if ((amountSold > 0))
743745 then (maxCanSell != maxMint)
744746 else false)
745747 then throw("Cannot change maximum issuable anymore")
746748 else if (if ((bidNbr > 0))
747749 then (maxCanSell != maxMint)
748750 else false)
749751 then throw("Cannot change maximum issuable with active orders")
750752 else {
751753 let sellStatus = if (if ((price > 0))
752754 then (maxMint > 0)
753755 else false)
754756 then true
755757 else false
756758 let txToCaller = if (isSponsored)
757759 then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)]
758760 else nil
759761 ([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)
760762 }
761763 }
762764 }
763765 }
764766 }
765767 }
766768 }
767769
768770
769771
770772 @Callable(i)
771773 func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "")
772774
773775
774776
775777 @Callable(i)
776778 func setBid (artId,issuer) = {
777- let $t03010530145 = idCallerDate(i)
778- let id = $t03010530145._1
779- let caller = $t03010530145._2
780- let date = $t03010530145._3
781- let $t03015030186 = isPayment(i)
782- let payment = $t03015030186._1
783- let amount = $t03015030186._2
779+ let $t03013330173 = idCallerDate(i)
780+ let id = $t03013330173._1
781+ let caller = $t03013330173._2
782+ let date = $t03013330173._3
783+ let $t03017830214 = isPayment(i)
784+ let payment = $t03017830214._1
785+ let amount = $t03017830214._2
784786 let assetId = if (!(isDefined(payment.assetId)))
785787 then "WAVES"
786788 else toBase58String(value(payment.assetId))
787789 let blockEnd = getIntegerByKey(keyEndSale(issuer, artId))
788790 if (if ((blockEnd != 0))
789791 then (height >= blockEnd)
790792 else false)
791793 then throw("Sale ended.")
792794 else {
793795 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
794796 if (!(acceptedAssetIds(assetId)))
795797 then throw("asset not accepted")
796798 else if (!(validateMinSell(assetId, amount)))
797799 then throw("Wrong min sell")
798800 else {
799801 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
800802 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
801803 if ((0 >= maxCanSell))
802804 then throw("No max edition set for this artwork")
803805 else if ((amountSold >= maxCanSell))
804806 then throw("Sold out, you cannot bid")
805807 else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))]
806808 }
807809 }
808810 }
809811
810812
811813
812814 @Callable(i)
813815 func acceptBid (artId,issuer,bidId,bidOwner) = {
814- let $t03134431384 = idCallerDate(i)
815- let id = $t03134431384._1
816- let caller = $t03134431384._2
817- let date = $t03134431384._3
816+ let $t03137231412 = idCallerDate(i)
817+ let id = $t03137231412._1
818+ let caller = $t03137231412._2
819+ let date = $t03137231412._3
818820 if ((caller != issuer))
819821 then throw("You cannot do this action")
820822 else buyMint(i, artId, issuer, bidId, bidOwner)
821823 }
822824
823825
824826
825827 @Callable(i)
826828 func cancelBid (artId,issuer,bidId,bidOwner) = {
827- let $t03161031671 = idCallerDate(i)
828- let id = $t03161031671._1
829- let caller = $t03161031671._2
830- let date = $t03161031671._3
829+ let $t03163831699 = idCallerDate(i)
830+ let id = $t03163831699._1
831+ let caller = $t03163831699._2
832+ let date = $t03163831699._3
831833 if (if ((caller != bidOwner))
832834 then (caller != issuer)
833835 else false)
834836 then throw("You cannot do this action")
835837 else {
836838 let returnMoneyTo = if ((caller == issuer))
837839 then bidOwner
838840 else caller
839841 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
840842 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
841843 let bidData = getStringByKey((bidDataKey + "_OPEN"))
842844 if ((bidData == ""))
843845 then throw("Bid not found")
844846 else {
845847 let bidDataArr = split(bidData, "_")
846848 let assetId = getBidAssetId(bidDataArr[0])
847849 let bidStatus = "CANCELED"
848850 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(returnMoneyTo)), parseIntValue(bidDataArr[1]), assetId)]
849851 }
850852 }
851853 }
852854
853855
854856 @Verifier(tx)
855857 func verifier () = match tx {
856858 case inv: InvokeScriptTransaction =>
857859 if (if (if ((inv.function == "addArtwork"))
858860 then (inv.dApp == this)
859861 else false)
860862 then (inv.fee == 500000)
861863 else false)
862864 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[13])))
863865 else if (if (if ((inv.function == "updateArtwork"))
864866 then (inv.dApp == this)
865867 else false)
866868 then (inv.fee == 500000)
867869 else false)
868870 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[12])))
869871 else if (if (if ((inv.function == "sellArtwork"))
870872 then (inv.dApp == this)
871873 else false)
872874 then (inv.fee == 500000)
873875 else false)
874876 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[5])))
875877 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
876878 case _ =>
877879 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
878880 }
879881

github/deemru/w8io/169f3d6 
132.18 ms