tx · 7Uq4o6TrBXEsGXdeSQZ5gpFh5196qPEokpLM3beUmZbg

3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY:  -0.02400000 Waves

2023.01.19 10:08 [2411486] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves

{ "type": 13, "id": "7Uq4o6TrBXEsGXdeSQZ5gpFh5196qPEokpLM3beUmZbg", "fee": 2400000, "feeAssetId": null, "timestamp": 1674112117334, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "2h51s3suXTygYqvqQpyEFryDgBV38ED98uYL8SVLVkKfujw4gZVpsvKYSdzenYFaHAerBaT2CBiTdR8LAgYDcuNc" ], "script": "base64:BgJfCAISBAoCCAgSEAoOCAgICAgICAgICAgIAQgSDwoNCAgICAgICAgICAgBCBIGCgQICAgIEgQKAggIEggKBggBAQgBCBIECgIICBIECgIICBIGCgQICAgIEgYKBAgICAhOAAdWRVJTSU9OAgUxLjEuOQEOZ2V0U3RyaW5nQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAnQgCBQR0aGlzBQNrZXkCAAAIdW5pdFRlc3QHAAlvcmFjbGVGZWUJAQV2YWx1ZQEJAKYIAQkBDmdldFN0cmluZ0J5S2V5AQIPY29uZl9vcmFjbGVfZmVlAAhzaWduRGFwcAkBBXZhbHVlAQkApggBCQEOZ2V0U3RyaW5nQnlLZXkBAhFjb25mX3NpZ253ZWJfZGFwcAALZmVlUmVjZWl2ZXIJAQ5nZXRTdHJpbmdCeUtleQECEWNvbmZfZmVlX3JlY2VpdmVyAAh1c2VyRGFwcAMFCHVuaXRUZXN0CQEFdmFsdWUBCQCmCAECIzNNdDRSR01FeWpTV1lBb2NUUHFkNTV3ZEhRUUIzUFUyVUNtCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeU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CdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleZe+xkM=", "height": 2411486, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 87L8dGvEc9mUNihKiTqheLZdDgkcKVsyFEGunbGspmXq Next: EJy6MdgfSmi2A6ca7SQhvhLGu9rco1oz4Gt6H16Y3sSC Diff:
OldNewDifferences
377377
378378 func idCallerDateSponsored (i,pubKey) = if (!(dappRunning))
379379 then throw(maintenanceMSG)
380- else if (true)
381- then throw(((toBase58String(i.caller.bytes) + " ") + toString(this)))
382- else {
383- let caller = if (if ((toBase58String(i.caller.bytes) == toString(this)))
384- then !(isDefined(i.payments))
385- else false)
386- then toString(addressFromPublicKey(fromBase58String(pubKey)))
387- else toBase58String(i.caller.bytes)
388- let get_sponsored_waves = if ((pubKey != ""))
389- then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil)
390- else unit
391- if ((get_sponsored_waves == get_sponsored_waves))
392- then $Tuple3(toBase58String(i.transactionId), caller, lastBlock.timestamp)
393- else throw("Strict value is not equal to itself.")
394- }
380+ else {
381+ let caller = if (if ((toBase58String(i.caller.bytes) == toString(this)))
382+ then !(isDefined(i.payments))
383+ else false)
384+ then toString(addressFromPublicKey(fromBase58String(pubKey)))
385+ else toBase58String(i.caller.bytes)
386+ let get_sponsored_waves = if ((pubKey != ""))
387+ then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil)
388+ else unit
389+ if ((get_sponsored_waves == get_sponsored_waves))
390+ then $Tuple3(toBase58String(i.transactionId), caller, lastBlock.timestamp)
391+ else throw("Strict value is not equal to itself.")
392+ }
395393
396394
397395 func idCallerDate (i) = if (!(dappRunning))
400398
401399
402400 func buyMint (i,artId,issuer,bidId,bidOwner) = {
403- let $t01277512834 = idCallerDate(i)
404- let id = $t01277512834._1
405- let caller = $t01277512834._2
406- let date = $t01277512834._3
401+ let $t01269212751 = idCallerDate(i)
402+ let id = $t01269212751._1
403+ let caller = $t01269212751._2
404+ let date = $t01269212751._3
407405 let isBid = if (if (if ((caller == issuer))
408406 then (bidOwner != "")
409407 else false)
459457 then throw(checkUser)
460458 else {
461459 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
462- let $t01453714704 = if (isBid)
460+ let $t01445414621 = if (isBid)
463461 then getPriceAssetIdFromBid(bidDataKey)
464462 else validatePriceAssetId(i, priceAssetId, artworkPrice)
465- let amount = $t01453714704._1
466- let assetId = $t01453714704._2
463+ let amount = $t01445414621._1
464+ let assetId = $t01445414621._2
467465 let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver)
468466 let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShare(issuer)), 0)
469467 let isWhitelisted = checkWhitelist(issuer)
552550
553551 @Callable(i)
554552 func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = {
555- let $t01873718797 = idCallerDateSponsored(i, pubKey)
556- let artId = $t01873718797._1
557- let caller = $t01873718797._2
558- let date = $t01873718797._3
553+ let $t01865418714 = idCallerDateSponsored(i, pubKey)
554+ let artId = $t01865418714._1
555+ let caller = $t01865418714._2
556+ let date = $t01865418714._3
559557 if (true)
560558 then throw(caller)
561559 else if (!(validateHash(sha256Hash)))
562560 then throw("Hash should be 64 characters maximum")
563561 else {
564- let $t01892918998 = setLIcence(cidLicence, sha256Licence)
565- let licenceCID = $t01892918998._1
566- let licenceHash = $t01892918998._2
562+ let $t01884618915 = setLIcence(cidLicence, sha256Licence)
563+ let licenceCID = $t01884618915._1
564+ let licenceHash = $t01884618915._2
567565 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
568566 if ((validateArtwork != ""))
569567 then throw("Something went wrong!")
570568 else {
571569 let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0)
572- let $t01929719381 = if (whitelisted_drop)
570+ let $t01921419298 = if (whitelisted_drop)
573571 then $Tuple2(0, signID)
574572 else validatePayment(i)
575- let amount = $t01929719381._1
576- let assetId = $t01929719381._2
573+ let amount = $t01921419298._1
574+ let assetId = $t01921419298._2
577575 if (!(isDefined(amount)))
578576 then throw("Something went wrong")
579577 else {
609607 func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning))
610608 then throw(maintenanceMSG)
611609 else {
612- let $t02232322380 = idCallerDateSponsored(i, pubKey)
613- let id = $t02232322380._1
614- let caller = $t02232322380._2
615- let date = $t02232322380._3
616- let $t02239022459 = setLIcence(cidLicence, sha256Licence)
617- let licenceCID = $t02239022459._1
618- let licenceHash = $t02239022459._2
610+ let $t02224022297 = idCallerDateSponsored(i, pubKey)
611+ let id = $t02224022297._1
612+ let caller = $t02224022297._2
613+ let date = $t02224022297._3
614+ let $t02230722376 = setLIcence(cidLicence, sha256Licence)
615+ let licenceCID = $t02230722376._1
616+ let licenceHash = $t02230722376._2
619617 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
620618 if ((validateArtwork != ""))
621619 then throw("Something went wrong!")
638636
639637 @Callable(i)
640638 func flagArtwork (artId,addr,flag,note) = {
641- let $t02396023994 = idCallerDate(i)
642- let id = $t02396023994._1
643- let caller = $t02396023994._2
639+ let $t02387723911 = idCallerDate(i)
640+ let id = $t02387723911._1
641+ let caller = $t02387723911._2
644642 if (containsElement([chris, toString(this)], caller))
645643 then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
646644 then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)]
652650
653651 @Callable(i)
654652 func deleteArtwork (artId,addr) = {
655- let $t02443024464 = idCallerDate(i)
656- let id = $t02443024464._1
657- let caller = $t02443024464._2
653+ let $t02434724381 = idCallerDate(i)
654+ let id = $t02434724381._1
655+ let caller = $t02434724381._2
658656 let addrToUse = if (containsElement([chris, toString(this)], caller))
659657 then addr
660658 else caller
687685
688686 @Callable(i)
689687 func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = {
690- let $t02730027351 = idCallerDateSponsored(i, pubKey)
691- let id = $t02730027351._1
692- let caller = $t02730027351._2
688+ let $t02721727268 = idCallerDateSponsored(i, pubKey)
689+ let id = $t02721727268._1
690+ let caller = $t02721727268._2
693691 let artworkName = getStringByKey(keyName(caller, artId))
694692 if ((artworkName == ""))
695693 then throw("This art doesn't match your account")
760758
761759 @Callable(i)
762760 func setBid (artId,issuer) = {
763- let $t02960829648 = idCallerDate(i)
764- let id = $t02960829648._1
765- let caller = $t02960829648._2
766- let date = $t02960829648._3
767- let $t02965329689 = isPayment(i)
768- let payment = $t02965329689._1
769- let amount = $t02965329689._2
761+ let $t02952529565 = idCallerDate(i)
762+ let id = $t02952529565._1
763+ let caller = $t02952529565._2
764+ let date = $t02952529565._3
765+ let $t02957029606 = isPayment(i)
766+ let payment = $t02957029606._1
767+ let amount = $t02957029606._2
770768 let assetId = if (!(isDefined(payment.assetId)))
771769 then "WAVES"
772770 else toBase58String(value(payment.assetId))
797795
798796 @Callable(i)
799797 func acceptBid (artId,issuer,bidId,bidOwner) = {
800- let $t03084730887 = idCallerDate(i)
801- let id = $t03084730887._1
802- let caller = $t03084730887._2
803- let date = $t03084730887._3
798+ let $t03076430804 = idCallerDate(i)
799+ let id = $t03076430804._1
800+ let caller = $t03076430804._2
801+ let date = $t03076430804._3
804802 if ((caller != issuer))
805803 then throw("You cannot do this action")
806804 else buyMint(i, artId, issuer, bidId, bidOwner)
810808
811809 @Callable(i)
812810 func cancelBid (artId,issuer,bidId,bidOwner) = {
813- let $t03111331174 = idCallerDate(i)
814- let id = $t03111331174._1
815- let caller = $t03111331174._2
816- let date = $t03111331174._3
811+ let $t03103031091 = idCallerDate(i)
812+ let id = $t03103031091._1
813+ let caller = $t03103031091._2
814+ let date = $t03103031091._3
817815 if (if ((caller != bidOwner))
818816 then (caller != issuer)
819817 else false)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let VERSION = "1.1.9"
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) = if (true)
202202 then throw(caller)
203203 else {
204204 let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered)
205205 if (if ((userStatus == userUnregistered))
206206 then true
207207 else (userStatus == userAllowed))
208208 then "Register this account first with \"Account\" tab"
209209 else if ((userStatus == userSuspended))
210210 then "Account suspended"
211211 else if ((userStatus == userRemoved))
212212 then "Account removed"
213213 else ""
214214 }
215215
216216
217217 func setLIcence (cidLicence,sha256Licence) = {
218218 let cid = if ((size(cidLicence) == 0))
219219 then defaultLicence
220220 else cidLicence
221221 let hash = if ((size(sha256Licence) == 0))
222222 then defaultHashLicence
223223 else sha256Licence
224224 $Tuple2(cid, hash)
225225 }
226226
227227
228228 func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags,royalties) = {
229229 let checkUser = validateUser(caller)
230230 if ((checkUser != ""))
231231 then throw(checkUser)
232232 else if ((size(cidDisplay) == 0))
233233 then throw("Display CID cannot be empty")
234234 else if (!(validateAllCID(cidDisplay, cidExport, licenceCID)))
235235 then throw("Problem with CID")
236236 else if (!(validateAllHash(sha256Export, licenceHash)))
237237 then throw("Problem with Hashes")
238238 else if (!(validateString(name, 100)))
239239 then throw("100 Char. max name")
240240 else if (!(validateString(description, 1000)))
241241 then throw("1000 Char. max description")
242242 else if (if ((0 > royalties))
243243 then true
244244 else (royalties > 1000))
245245 then throw("Royalties cannot be less than 0% or higher than 10%")
246246 else if ((size(split(tags, ",")) > 5))
247247 then throw("5 tags max.")
248248 else ""
249249 }
250250
251251
252252 func isPayment (i) = if ((size(i.payments) == 0))
253253 then throw("No payment attached")
254254 else {
255255 let payment = value(i.payments[0])
256256 let amount = value(payment.amount)
257257 $Tuple2(payment, amount)
258258 }
259259
260260
261261 func validatePayment (i) = {
262262 let $t089108946 = isPayment(i)
263263 let payment = $t089108946._1
264264 let amount = $t089108946._2
265265 let assetId = if (if (isDefined(payment.assetId))
266266 then (payment.assetId == signAssetId)
267267 else false)
268268 then payment.assetId
269269 else throw("Only SIGN token accepted as transaction fee")
270270 if ((amount != currentCertificationPrice))
271271 then throw(("Payment amount should be " + toString(currentCertificationPrice)))
272272 else $Tuple2(amount, assetId)
273273 }
274274
275275
276276 func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) {
277277 case b: Int =>
278278 if ((b != 0))
279279 then true
280280 else false
281281 case _ =>
282282 false
283283 }
284284
285285
286286 func validatePriceAssetId (i,priceAssetId,artworkPrice) = {
287287 let $t095349570 = isPayment(i)
288288 let payment = $t095349570._1
289289 let amount = $t095349570._2
290290 let assetId = if (!(isDefined(payment.assetId)))
291291 then unit
292292 else if (if ((size(priceAssetId) > 0))
293293 then (toBase58String(value(payment.assetId)) == priceAssetId)
294294 else false)
295295 then payment.assetId
296296 else throw("Wrong asset id")
297297 if (if ((assetId == unit))
298298 then (priceAssetId != "")
299299 else false)
300300 then throw("Wrong asset id")
301301 else if ((artworkPrice != amount))
302302 then throw("Payment don't match")
303303 else $Tuple2(amount, assetId)
304304 }
305305
306306
307307 func acceptedAssetIds (assetId) = if (if (if (if (if ((assetId != toBase58String(signAssetId)))
308308 then (assetId != toBase58String(wavesAssetId))
309309 else false)
310310 then (assetId != "WAVES")
311311 else false)
312312 then (assetId != toBase58String(usdnAssetId))
313313 else false)
314314 then (assetId != toBase58String(usdtAssetId))
315315 else false)
316316 then throw("Only SIGN, USDN,USDT or WAVES accepted")
317317 else true
318318
319319
320320 func validateMinSell (assetId,price) = {
321321 let minSellWaves = if (unitTest)
322322 then 10
323323 else getIntegerByKeyFromOracle("waves_min_sell")
324324 let minSellUsdn = 1000000
325325 let minSellSign = if (unitTest)
326326 then 1
327327 else (currentCertificationPrice * 2)
328328 if (if (if (if (if (if ((assetId == toBase58String(usdnAssetId)))
329329 then (minSellUsdn > price)
330330 else false)
331331 then (price != 0)
332332 else false)
333333 then true
334334 else if (if ((assetId == toBase58String(usdtAssetId)))
335335 then (minSellUsdn > price)
336336 else false)
337337 then (price != 0)
338338 else false)
339339 then true
340340 else if (if ((assetId == toBase58String(signAssetId)))
341341 then (minSellSign > price)
342342 else false)
343343 then (price != 0)
344344 else false)
345345 then true
346346 else if (if (if ((assetId == toBase58String(wavesAssetId)))
347347 then true
348348 else (assetId == "WAVES"))
349349 then (minSellWaves > price)
350350 else false)
351351 then (price != 0)
352352 else false)
353353 then throw("Wrong minimum sell price")
354354 else true
355355 }
356356
357357
358358 func getBidAssetId (assetId) = if ((assetId == "WAVES"))
359359 then unit
360360 else fromBase58String(assetId)
361361
362362
363363 func getPriceAssetIdFromBid (bidDataKey) = {
364364 let bidData = getStringByKey((bidDataKey + "_OPEN"))
365365 if ((bidData == ""))
366366 then throw("Bid not found")
367367 else {
368368 let bidDataArr = split(bidData, "_")
369369 let bidAmount = parseIntValue(bidDataArr[1])
370370 let bidAssetId = getBidAssetId(bidDataArr[0])
371371 if ((0 >= bidAmount))
372372 then throw("Wrong amount")
373373 else $Tuple2(bidAmount, bidAssetId)
374374 }
375375 }
376376
377377
378378 func idCallerDateSponsored (i,pubKey) = if (!(dappRunning))
379379 then throw(maintenanceMSG)
380- else if (true)
381- then throw(((toBase58String(i.caller.bytes) + " ") + toString(this)))
382- else {
383- let caller = if (if ((toBase58String(i.caller.bytes) == toString(this)))
384- then !(isDefined(i.payments))
385- else false)
386- then toString(addressFromPublicKey(fromBase58String(pubKey)))
387- else toBase58String(i.caller.bytes)
388- let get_sponsored_waves = if ((pubKey != ""))
389- then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil)
390- else unit
391- if ((get_sponsored_waves == get_sponsored_waves))
392- then $Tuple3(toBase58String(i.transactionId), caller, lastBlock.timestamp)
393- else throw("Strict value is not equal to itself.")
394- }
380+ else {
381+ let caller = if (if ((toBase58String(i.caller.bytes) == toString(this)))
382+ then !(isDefined(i.payments))
383+ else false)
384+ then toString(addressFromPublicKey(fromBase58String(pubKey)))
385+ else toBase58String(i.caller.bytes)
386+ let get_sponsored_waves = if ((pubKey != ""))
387+ then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil)
388+ else unit
389+ if ((get_sponsored_waves == get_sponsored_waves))
390+ then $Tuple3(toBase58String(i.transactionId), caller, lastBlock.timestamp)
391+ else throw("Strict value is not equal to itself.")
392+ }
395393
396394
397395 func idCallerDate (i) = if (!(dappRunning))
398396 then throw(maintenanceMSG)
399397 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
400398
401399
402400 func buyMint (i,artId,issuer,bidId,bidOwner) = {
403- let $t01277512834 = idCallerDate(i)
404- let id = $t01277512834._1
405- let caller = $t01277512834._2
406- let date = $t01277512834._3
401+ let $t01269212751 = idCallerDate(i)
402+ let id = $t01269212751._1
403+ let caller = $t01269212751._2
404+ let date = $t01269212751._3
407405 let isBid = if (if (if ((caller == issuer))
408406 then (bidOwner != "")
409407 else false)
410408 then (bidId != "")
411409 else false)
412410 then true
413411 else false
414412 let blockEnd = getIntegerByKey(keyEndSale(caller, artId))
415413 if (if (if ((blockEnd != 0))
416414 then (height >= blockEnd)
417415 else false)
418416 then !(isBid)
419417 else false)
420418 then throw("Sale ended.")
421419 else {
422420 let callerIsIssuer = (caller == issuer)
423421 let totalNFT = getIntegerByKey("total_nft_issued")
424422 let signID = getStringByKey(keySignID(issuer, artId))
425423 let artworkName = getStringByKey(keyName(issuer, artId))
426424 if ((artworkName == ""))
427425 then throw("Art doesn't exist")
428426 else {
429427 let isOnSale = getBooleanByKey(keyOnSale(issuer, artId))
430428 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
431429 let artworkPrice = if (callerIsIssuer)
432430 then (currentCertificationPrice * 2)
433431 else getIntegerByKey(keyPrice(issuer, artId))
434432 let priceAssetId = if (callerIsIssuer)
435433 then toBase58String(signAssetId)
436434 else getStringByKey(keyAssetIdAccepted(issuer, artId))
437435 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
438436 if (if (if (!(isBid))
439437 then !(callerIsIssuer)
440438 else false)
441439 then if (if ((0 >= artworkPrice))
442440 then true
443441 else !(isOnSale))
444442 then true
445443 else (0 >= maxCanSell)
446444 else false)
447445 then throw("Art not for sale")
448446 else if (if (if (!(isBid))
449447 then callerIsIssuer
450448 else false)
451449 then (0 >= maxCanSell)
452450 else false)
453451 then throw("Max issuable not set")
454452 else {
455453 let checkUser = validateUser(issuer)
456454 if (if (isBid)
457455 then (checkUser != "")
458456 else false)
459457 then throw(checkUser)
460458 else {
461459 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
462- let $t01453714704 = if (isBid)
460+ let $t01445414621 = if (isBid)
463461 then getPriceAssetIdFromBid(bidDataKey)
464462 else validatePriceAssetId(i, priceAssetId, artworkPrice)
465- let amount = $t01453714704._1
466- let assetId = $t01453714704._2
463+ let amount = $t01445414621._1
464+ let assetId = $t01445414621._2
467465 let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver)
468466 let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShare(issuer)), 0)
469467 let isWhitelisted = checkWhitelist(issuer)
470468 let cut = if ((isWhitelisted > height))
471469 then 0
472470 else if ((assetId == signAssetId))
473471 then signCut
474472 else usdnWaveCut
475473 let amountForSign = fraction(amount, cut, 100)
476474 let amountForAgent = if (if (if ((agent != feeReceiver))
477475 then (agentShare > 0)
478476 else false)
479477 then (height > isWhitelisted)
480478 else false)
481479 then fraction(amount, agentShare, 100)
482480 else 0
483481 let amountForCreator = (amount - amountForSign)
484482 if ((amountSold == maxCanSell))
485483 then throw("Art sold out")
486484 else {
487485 let newAmountSold = (amountSold + 1)
488486 let issueMeta = ((((((((((("Creator: " + issuer) + ",
489487 ArtID: ") + artId) + ",
490488 SignID: ") + signID) + ",
491489 Artwork name: ") + artworkName) + ",
492490 Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell))
493491 let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
494492 let idNFT = calculateAssetId(issueNFT)
495493 let sellStatus = if (if ((newAmountSold == maxCanSell))
496494 then true
497495 else !(isOnSale))
498496 then false
499497 else true
500498 let receiveNFT = if (if (if ((caller == issuer))
501499 then (bidOwner != "")
502500 else false)
503501 then (bidId != "")
504502 else false)
505503 then addressFromStringValue(bidOwner)
506504 else i.caller
507505 let assetIdBid = if (!(isDefined(assetId)))
508506 then "WAVES"
509507 else toBase58String(value(assetId))
510508 let bidData = getStringByKey((bidDataKey + "_OPEN"))
511509 let bidDelOld = DeleteEntry((bidDataKey + "_OPEN"))
512510 let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date)))
513511 let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer)
514512 let soldValue = if (!(isBid))
515513 then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT))
516514 else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT))
517515 let soldData = StringEntry(soldKey, soldValue)
518516 let commissions = if ((amountForAgent != 0))
519517 then [ScriptTransfer(Address(fromBase58String(feeReceiver)), (amountForSign - amountForAgent), assetId), ScriptTransfer(Address(fromBase58String(agent)), amountForAgent, assetId)]
520518 else [ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)]
521519 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)
522520 if (isBid)
523521 then [soldData, bidUpdate, bidDelOld] :: buyRes
524522 else soldData :: buyRes
525523 }
526524 }
527525 }
528526 }
529527 }
530528 }
531529
532530
533531 func asString (bv) = match bv {
534532 case bv0: String =>
535533 bv0
536534 case _ =>
537535 throw("Sponsored Public Key String expected")
538536 }
539537
540538
541539 @Callable(invoke)
542540 func setConf (key,val) = {
543541 let caller = toString(invoke.caller)
544542 if (containsElement([chris, toString(this)], caller))
545543 then if (contains(key, "conf_"))
546544 then [StringEntry(key, val)]
547545 else throw("Entries starting with conf_ only")
548546 else throw("You are not allowed to change this")
549547 }
550548
551549
552550
553551 @Callable(i)
554552 func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = {
555- let $t01873718797 = idCallerDateSponsored(i, pubKey)
556- let artId = $t01873718797._1
557- let caller = $t01873718797._2
558- let date = $t01873718797._3
553+ let $t01865418714 = idCallerDateSponsored(i, pubKey)
554+ let artId = $t01865418714._1
555+ let caller = $t01865418714._2
556+ let date = $t01865418714._3
559557 if (true)
560558 then throw(caller)
561559 else if (!(validateHash(sha256Hash)))
562560 then throw("Hash should be 64 characters maximum")
563561 else {
564- let $t01892918998 = setLIcence(cidLicence, sha256Licence)
565- let licenceCID = $t01892918998._1
566- let licenceHash = $t01892918998._2
562+ let $t01884618915 = setLIcence(cidLicence, sha256Licence)
563+ let licenceCID = $t01884618915._1
564+ let licenceHash = $t01884618915._2
567565 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
568566 if ((validateArtwork != ""))
569567 then throw("Something went wrong!")
570568 else {
571569 let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0)
572- let $t01929719381 = if (whitelisted_drop)
570+ let $t01921419298 = if (whitelisted_drop)
573571 then $Tuple2(0, signID)
574572 else validatePayment(i)
575- let amount = $t01929719381._1
576- let assetId = $t01929719381._2
573+ let amount = $t01921419298._1
574+ let assetId = $t01921419298._2
577575 if (!(isDefined(amount)))
578576 then throw("Something went wrong")
579577 else {
580578 let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller))
581579 if ((entryExist != ""))
582580 then throw("You already added it")
583581 else {
584582 let hashExist = getStringByKey(keyOwnerByHash(sha256Hash))
585583 if ((hashExist != ""))
586584 then throw("Hash already registered")
587585 else {
588586 let isSignCertified = checkSignCertificate(signID, caller, sha256Hash)
589587 if (!(isSignCertified))
590588 then throw("Sign Certificate not found for this address.")
591589 else {
592590 let decrease_whitelist_drop = if (whitelisted_drop)
593591 then invoke(whitelistDapp, "useFreeDrop", [toBase58String(i.caller.bytes)], nil)
594592 else unit
595593 if ((decrease_whitelist_drop == decrease_whitelist_drop))
596594 then [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)]
597595 else throw("Strict value is not equal to itself.")
598596 }
599597 }
600598 }
601599 }
602600 }
603601 }
604602 }
605603
606604
607605
608606 @Callable(i)
609607 func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning))
610608 then throw(maintenanceMSG)
611609 else {
612- let $t02232322380 = idCallerDateSponsored(i, pubKey)
613- let id = $t02232322380._1
614- let caller = $t02232322380._2
615- let date = $t02232322380._3
616- let $t02239022459 = setLIcence(cidLicence, sha256Licence)
617- let licenceCID = $t02239022459._1
618- let licenceHash = $t02239022459._2
610+ let $t02224022297 = idCallerDateSponsored(i, pubKey)
611+ let id = $t02224022297._1
612+ let caller = $t02224022297._2
613+ let date = $t02224022297._3
614+ let $t02230722376 = setLIcence(cidLicence, sha256Licence)
615+ let licenceCID = $t02230722376._1
616+ let licenceHash = $t02230722376._2
619617 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
620618 if ((validateArtwork != ""))
621619 then throw("Something went wrong!")
622620 else {
623621 let entryExist = getStringByKey(keyName(caller, txid))
624622 if ((entryExist == ""))
625623 then throw("Entry not found")
626624 else {
627625 let flag = getStringByKey(keyFlag(caller, txid))
628626 if ((flag == "ILLEGAL"))
629627 then throw("Cannot update ILLEGAL artwork")
630628 else if (!(isArtMinted(caller, txid)))
631629 then [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)]
632630 else throw("Already minted")
633631 }
634632 }
635633 }
636634
637635
638636
639637 @Callable(i)
640638 func flagArtwork (artId,addr,flag,note) = {
641- let $t02396023994 = idCallerDate(i)
642- let id = $t02396023994._1
643- let caller = $t02396023994._2
639+ let $t02387723911 = idCallerDate(i)
640+ let id = $t02387723911._1
641+ let caller = $t02387723911._2
644642 if (containsElement([chris, toString(this)], caller))
645643 then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
646644 then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)]
647645 else throw(("Unknow status " + flag))
648646 else throw("You are not allowed")
649647 }
650648
651649
652650
653651 @Callable(i)
654652 func deleteArtwork (artId,addr) = {
655- let $t02443024464 = idCallerDate(i)
656- let id = $t02443024464._1
657- let caller = $t02443024464._2
653+ let $t02434724381 = idCallerDate(i)
654+ let id = $t02434724381._1
655+ let caller = $t02434724381._2
658656 let addrToUse = if (containsElement([chris, toString(this)], caller))
659657 then addr
660658 else caller
661659 let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address")
662660 if ((entryExist == ""))
663661 then throw("No art matching for this address")
664662 else {
665663 let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId))
666664 if ((sha256Hash == ""))
667665 then throw("No art hash matching for this address")
668666 else {
669667 let signID = getStringByKey(keySignID(addrToUse, artId))
670668 if ((signID == ""))
671669 then throw("No SIGN ID matching")
672670 else {
673671 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))]
674672 if (!(isArtMinted(addrToUse, artId)))
675673 then if (!(dappRunning))
676674 then throw(maintenanceMSG)
677675 else dataToDelete
678676 else if (containsElement([chris, toString(this)], caller))
679677 then dataToDelete
680678 else throw("Art already minted, you cannot delete it")
681679 }
682680 }
683681 }
684682 }
685683
686684
687685
688686 @Callable(i)
689687 func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = {
690- let $t02730027351 = idCallerDateSponsored(i, pubKey)
691- let id = $t02730027351._1
692- let caller = $t02730027351._2
688+ let $t02721727268 = idCallerDateSponsored(i, pubKey)
689+ let id = $t02721727268._1
690+ let caller = $t02721727268._2
693691 let artworkName = getStringByKey(keyName(caller, artId))
694692 if ((artworkName == ""))
695693 then throw("This art doesn't match your account")
696694 else {
697695 let flag = getStringByKey(keyFlag(caller, artId))
698696 if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
699697 then throw("Flagged artwork")
700698 else {
701699 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
702700 if ((0 > blockEnd))
703701 then throw("Negative end")
704702 else if (if ((blockEnd > 0))
705703 then if ((maxMint != 1))
706704 then true
707705 else (price != 0)
708706 else false)
709707 then throw("Timed offer only allowed for unique edition and offer only")
710708 else {
711709 let baseHeight = if ((blockEnd == 0))
712710 then 0
713711 else height
714712 if (!(acceptedAssetIds(assetId)))
715713 then throw("Something went wrong!")
716714 else if (!(validateMinSell(assetId, price)))
717715 then throw("Something went wrong!")
718716 else {
719717 let checkUser = validateUser(caller)
720718 if ((checkUser != ""))
721719 then throw(checkUser)
722720 else {
723721 let amountSold = getIntegerByKey(keyIssued(caller, artId))
724722 let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId))
725723 if ((maxMint > 100))
726724 then throw("100 editions max per artwork")
727725 else if (if ((amountSold != 0))
728726 then (amountSold == maxCanSell)
729727 else false)
730728 then throw("Max edition reached.")
731729 else if (if ((amountSold > 0))
732730 then (maxCanSell != maxMint)
733731 else false)
734732 then throw("Cannot change maximum issuable anymore")
735733 else if (if ((bidNbr > 0))
736734 then (maxCanSell != maxMint)
737735 else false)
738736 then throw("Cannot change maximum issuable with active orders")
739737 else {
740738 let sellStatus = if (if ((price > 0))
741739 then (maxMint > 0)
742740 else false)
743741 then true
744742 else false
745743 [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))]
746744 }
747745 }
748746 }
749747 }
750748 }
751749 }
752750 }
753751
754752
755753
756754 @Callable(i)
757755 func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "")
758756
759757
760758
761759 @Callable(i)
762760 func setBid (artId,issuer) = {
763- let $t02960829648 = idCallerDate(i)
764- let id = $t02960829648._1
765- let caller = $t02960829648._2
766- let date = $t02960829648._3
767- let $t02965329689 = isPayment(i)
768- let payment = $t02965329689._1
769- let amount = $t02965329689._2
761+ let $t02952529565 = idCallerDate(i)
762+ let id = $t02952529565._1
763+ let caller = $t02952529565._2
764+ let date = $t02952529565._3
765+ let $t02957029606 = isPayment(i)
766+ let payment = $t02957029606._1
767+ let amount = $t02957029606._2
770768 let assetId = if (!(isDefined(payment.assetId)))
771769 then "WAVES"
772770 else toBase58String(value(payment.assetId))
773771 let blockEnd = getIntegerByKey(keyEndSale(issuer, artId))
774772 if (if ((blockEnd != 0))
775773 then (height >= blockEnd)
776774 else false)
777775 then throw("Sale ended.")
778776 else {
779777 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
780778 if (!(acceptedAssetIds(assetId)))
781779 then throw("asset not accepted")
782780 else if (!(validateMinSell(assetId, amount)))
783781 then throw("Wrong min sell")
784782 else {
785783 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
786784 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
787785 if ((0 >= maxCanSell))
788786 then throw("No max edition set for this artwork")
789787 else if ((amountSold >= maxCanSell))
790788 then throw("Sold out, you cannot bid")
791789 else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))]
792790 }
793791 }
794792 }
795793
796794
797795
798796 @Callable(i)
799797 func acceptBid (artId,issuer,bidId,bidOwner) = {
800- let $t03084730887 = idCallerDate(i)
801- let id = $t03084730887._1
802- let caller = $t03084730887._2
803- let date = $t03084730887._3
798+ let $t03076430804 = idCallerDate(i)
799+ let id = $t03076430804._1
800+ let caller = $t03076430804._2
801+ let date = $t03076430804._3
804802 if ((caller != issuer))
805803 then throw("You cannot do this action")
806804 else buyMint(i, artId, issuer, bidId, bidOwner)
807805 }
808806
809807
810808
811809 @Callable(i)
812810 func cancelBid (artId,issuer,bidId,bidOwner) = {
813- let $t03111331174 = idCallerDate(i)
814- let id = $t03111331174._1
815- let caller = $t03111331174._2
816- let date = $t03111331174._3
811+ let $t03103031091 = idCallerDate(i)
812+ let id = $t03103031091._1
813+ let caller = $t03103031091._2
814+ let date = $t03103031091._3
817815 if (if ((caller != bidOwner))
818816 then (caller != issuer)
819817 else false)
820818 then throw("You cannot do this action")
821819 else {
822820 let returnMoneyTo = if ((caller == issuer))
823821 then bidOwner
824822 else caller
825823 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
826824 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
827825 let bidData = getStringByKey((bidDataKey + "_OPEN"))
828826 if ((bidData == ""))
829827 then throw("Bid not found")
830828 else {
831829 let bidDataArr = split(bidData, "_")
832830 let assetId = getBidAssetId(bidDataArr[0])
833831 let bidStatus = "CANCELED"
834832 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(returnMoneyTo)), parseIntValue(bidDataArr[1]), assetId)]
835833 }
836834 }
837835 }
838836
839837
840838 @Verifier(tx)
841839 func verifier () = match tx {
842840 case inv: InvokeScriptTransaction =>
843841 if (if ((inv.function == "addArtwork"))
844842 then (inv.dApp == this)
845843 else false)
846844 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[13])))
847845 else if (if ((inv.function == "updateArtwork"))
848846 then (inv.dApp == this)
849847 else false)
850848 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[12])))
851849 else if (if ((inv.function == "sellArtwork"))
852850 then (inv.dApp == this)
853851 else false)
854852 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[5])))
855853 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
856854 case _ =>
857855 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
858856 }
859857

github/deemru/w8io/169f3d6 
124.10 ms