tx · Aua4aNUsb6jtGkH3VrD7pb2gWh3KgE1joQvjEqnjjCMr

3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY:  -0.02600000 Waves

2023.10.11 06:28 [2793423] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves

{ "type": 13, "id": "Aua4aNUsb6jtGkH3VrD7pb2gWh3KgE1joQvjEqnjjCMr", "fee": 2600000, "feeAssetId": null, "timestamp": 1696994928152, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "43YtvJdoKEycxBQbefKu9p2286b2J9Xs4TPaNaV698dC41jHPq7hJEXgft7LB4t9MrCRsGWZJQQ3k6kWekTRHsx6" ], "script": "base64:BgJeCAISBAoCCAgSDgoMCAgICAgICAgICAEIEg8KDQgICAgICAgICAgIAQgSBgoECAgICBIECgIICBIICgYIAQEIAQgSBAoCCAgSBAoCCAgSBwoFCAgICAgSBgoECAgICFsAB1ZFUlNJT04CBTIuMC4wAQ5nZXRTdHJpbmdCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCdCAIFBHRoaXMFA2tleQIAAAh1bml0VGVzdAcACW9yYWNsZUZlZQkBBXZhbHVlAQkApggBCQEOZ2V0U3RyaW5nQnlLZXkBAg9jb25mX29yYWNsZV9mZWUACHNpZ25EYXBwCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECEWNvbmZfc2lnbndlYl9kYXBwAAtmZWVSZWNlaXZlcgkBDmdldFN0cmluZ0J5S2V5AQIRY29uZl9mZWVfcmVjZWl2ZXIACHVzZXJEYXBwAwUIdW5pdFRlc3QJAQV2YWx1ZQEJAKYIAQIjM010NFJHTUV5alNXWUFvY1RQcWQ1NXdkSFFRQjNQVTJVQ20JAQV2YWx1ZQEJAKYIAQkBDmdldFN0cmluZ0J5S2V5AQIP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RAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tlectrueU=", "height": 2793423, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GG5LzJ6W65sEEqBviQzd2XtFNMnatCuy7xbqpKfRCuet Next: ExxjPm3PpTgxtiDQwf1UASpVBpqznK9wcTCVCXZzWskQ Diff:
OldNewDifferences
498498 then addressFromStringValue(bidOwner)
499499 else i.caller
500500 if ((assetId == unit))
501- then throw("unit")
501+ then throw(toString(isDefined(assetId)))
502502 else {
503503 let assetIdBid = if (!(isDefined(assetId)))
504504 then "WAVES"
580580
581581 @Callable(i)
582582 func addArtwork (name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = {
583- let $t02158421657 = idCallerDateSponsored(i, pubKey)
584- let artId = $t02158421657._1
585- let caller = $t02158421657._2
586- let date = $t02158421657._3
587- let isSponsored = $t02158421657._4
588- let $t02166721736 = setLIcence(cidLicence, sha256Licence)
589- let licenceCID = $t02166721736._1
590- let licenceHash = $t02166721736._2
583+ let $t02160721680 = idCallerDateSponsored(i, pubKey)
584+ let artId = $t02160721680._1
585+ let caller = $t02160721680._2
586+ let date = $t02160721680._3
587+ let isSponsored = $t02160721680._4
588+ let $t02169021759 = setLIcence(cidLicence, sha256Licence)
589+ let licenceCID = $t02169021759._1
590+ let licenceHash = $t02169021759._2
591591 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
592592 if ((validateArtwork != ""))
593593 then throw("Something went wrong!")
594594 else {
595595 let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0)
596- let $t02203522123 = if (whitelisted_drop)
596+ let $t02205822146 = if (whitelisted_drop)
597597 then $Tuple2(0, artAssetId)
598598 else validatePayment(i)
599- let amount = $t02203522123._1
600- let assetId = $t02203522123._2
599+ let amount = $t02205822146._1
600+ let assetId = $t02205822146._2
601601 if (!(isDefined(amount)))
602602 then throw("Something went wrong")
603603 else {
622622 func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning))
623623 then throw(maintenanceMSG)
624624 else {
625- let $t02403824108 = idCallerDateSponsored(i, pubKey)
626- let id = $t02403824108._1
627- let caller = $t02403824108._2
628- let date = $t02403824108._3
629- let isSponsored = $t02403824108._4
630- let $t02411824187 = setLIcence(cidLicence, sha256Licence)
631- let licenceCID = $t02411824187._1
632- let licenceHash = $t02411824187._2
625+ let $t02406124131 = idCallerDateSponsored(i, pubKey)
626+ let id = $t02406124131._1
627+ let caller = $t02406124131._2
628+ let date = $t02406124131._3
629+ let isSponsored = $t02406124131._4
630+ let $t02414124210 = setLIcence(cidLicence, sha256Licence)
631+ let licenceCID = $t02414124210._1
632+ let licenceHash = $t02414124210._2
633633 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
634634 if ((validateArtwork != ""))
635635 then throw("Something went wrong!")
657657
658658 @Callable(i)
659659 func flagArtwork (artId,addr,flag,note) = {
660- let $t02581425848 = idCallerDate(i)
661- let id = $t02581425848._1
662- let caller = $t02581425848._2
660+ let $t02583725871 = idCallerDate(i)
661+ let id = $t02583725871._1
662+ let caller = $t02583725871._2
663663 if (containsElement([chris, toString(this)], caller))
664664 then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
665665 then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)]
671671
672672 @Callable(i)
673673 func deleteArtwork (artId,addr) = {
674- let $t02628426318 = idCallerDate(i)
675- let id = $t02628426318._1
676- let caller = $t02628426318._2
674+ let $t02630726341 = idCallerDate(i)
675+ let id = $t02630726341._1
676+ let caller = $t02630726341._2
677677 let addrToUse = if (containsElement([chris, toString(this)], caller))
678678 then addr
679679 else caller
703703
704704 @Callable(i)
705705 func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = {
706- let $t02909729167 = idCallerDateSponsored(i, pubKey)
707- let id = $t02909729167._1
708- let caller = $t02909729167._2
709- let date = $t02909729167._3
710- let isSponsored = $t02909729167._4
706+ let $t02912029190 = idCallerDateSponsored(i, pubKey)
707+ let id = $t02912029190._1
708+ let caller = $t02912029190._2
709+ let date = $t02912029190._3
710+ let isSponsored = $t02912029190._4
711711 let artworkName = getStringByKey(keyName(caller, artId))
712712 if ((artworkName == ""))
713713 then throw("This art doesn't match your account")
781781
782782 @Callable(i)
783783 func setBid (artId,issuer) = {
784- let $t03154031580 = idCallerDate(i)
785- let id = $t03154031580._1
786- let caller = $t03154031580._2
787- let date = $t03154031580._3
788- let $t03158531621 = isPayment(i)
789- let payment = $t03158531621._1
790- let amount = $t03158531621._2
784+ let $t03156331603 = idCallerDate(i)
785+ let id = $t03156331603._1
786+ let caller = $t03156331603._2
787+ let date = $t03156331603._3
788+ let $t03160831644 = isPayment(i)
789+ let payment = $t03160831644._1
790+ let amount = $t03160831644._2
791791 let assetId = if (!(isDefined(payment.assetId)))
792792 then "WAVES"
793793 else toBase58String(value(payment.assetId))
823823
824824 @Callable(i)
825825 func cancelBid (artId,issuer,bidId,bidOwner) = {
826- let $t03294533006 = idCallerDate(i)
827- let id = $t03294533006._1
828- let caller = $t03294533006._2
829- let date = $t03294533006._3
826+ let $t03296833029 = idCallerDate(i)
827+ let id = $t03296833029._1
828+ let caller = $t03296833029._2
829+ let date = $t03296833029._3
830830 if (if ((caller != bidOwner))
831831 then (caller != issuer)
832832 else false)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let VERSION = "2.0.0"
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 puzzle_art_pool = getStringByKey("conf_puzzle_art_pool")
2424
2525 let usdtPPAssetId_str = getStringByKey("conf_accepted_asset_USDT_PP")
2626
2727 let artAssetId_str = getStringByKey("conf_accepted_asset_ART")
2828
2929 let usdcPPAssetId_str = getStringByKey("conf_accepted_asset_USDC_PP")
3030
3131 let eastAssetId_str = getStringByKey("conf_accepted_asset_EAST")
3232
3333 let puzzleAssetId_str = getStringByKey("conf_accepted_asset_PUZZLE")
3434
3535 let ethPPAssetId_str = getStringByKey("conf_accepted_asset_ETH_PP")
3636
3737 let wavesAssetId_str = "WAVES"
3838
3939 let usdtPPAssetId = fromBase58String(usdtPPAssetId_str)
4040
4141 let artAssetId = fromBase58String(artAssetId_str)
4242
4343 let usdcPPAssetId = fromBase58String(usdcPPAssetId_str)
4444
4545 let eastAssetId = fromBase58String(eastAssetId_str)
4646
4747 let puzzleAssetId = fromBase58String(puzzleAssetId_str)
4848
4949 let ethPPAssetId = fromBase58String(ethPPAssetId_str)
5050
5151 let wavesAssetId = base58''
5252
5353 let all_accepted_assets = [usdtPPAssetId_str, artAssetId_str, usdcPPAssetId_str, eastAssetId_str, puzzleAssetId_str, wavesAssetId_str, ethPPAssetId_str]
5454
5555 let chris = getStringByKey("conf_admin_1")
5656
5757 func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle")
5858
5959
6060 func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
6161
6262
6363 func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0)
6464
6565
6666 func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false)
6767
6868
6969 let commission_fee = 8
7070
7171 let defaultLicence = getStringByKey("conf_default_licence")
7272
7373 let defaultHashLicence = getStringByKey("conf_default_licence_hash")
7474
7575 let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true)
7676
7777 let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "")
7878
7979 let userSuspended = "SUSPENDED"
8080
8181 let userRemoved = "REMOVED"
8282
8383 let userUnregistered = "UNREGISTERED"
8484
8585 let userAllowed = "ALLOWED"
8686
8787 let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(artAssetId)))
8888
8989 let mint_fee = getIntegerByKeyFromOracle(("mint_fee_" + toBase58String(artAssetId)))
9090
9191 func getArtworkRoyalties (key) = valueOrElse(getInteger(this, key), 1000)
9292
9393
9494 func validateCID (cid) = if (contains(cid, "/"))
9595 then if (if ((76 > size(cid)))
9696 then (size(split(cid, "/")[0]) == 59)
9797 else false)
9898 then (16 > size(split(cid, "/")[1]))
9999 else false
100100 else false
101101
102102
103103 func validateHash (hash) = (size(hash) == 64)
104104
105105
106106 func keyUserStatus (caller) = ("user_status_" + caller)
107107
108108
109109 func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller)
110110
111111
112112 func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller)
113113
114114
115115 func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller)
116116
117117
118118 func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller)
119119
120120
121121 func keyExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller)
122122
123123
124124 func keyExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller)
125125
126126
127127 func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller)
128128
129129
130130 func keySignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller)
131131
132132
133133 func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller)
134134
135135
136136 func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller)
137137
138138
139139 func keyLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller)
140140
141141
142142 func keyLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller)
143143
144144
145145 func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller)
146146
147147
148148 func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller)
149149
150150
151151 func keyNote (caller,artId) = ((("art_note_" + artId) + "_") + caller)
152152
153153
154154 func keyCrawler (caller,artId) = ((("art_crawler_cid_" + artId) + "_") + caller)
155155
156156
157157 func keyRoyalties (caller,artId) = ((("art_royalties_" + artId) + "_") + caller)
158158
159159
160160 func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller)
161161
162162
163163 func keyEndSale (caller,artId) = ((("art_endsale_" + artId) + "_") + caller)
164164
165165
166166 func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller)
167167
168168
169169 func keyFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller)
170170
171171
172172 func keyArtistAgentAddr (artistAddr) = ("artist_agent_" + artistAddr)
173173
174174
175175 func keyPrimaryShareAgent (artistAddr) = ("artist_agent_primary_" + artistAddr)
176176
177177
178178 func keyArtistPublicAgentAddr (artistAddr) = ("artist_public_agent_" + artistAddr)
179179
180180
181181 func keyPrimarySharePublicAgent (artistAddr) = ("artist_public_agent_primary_" + artistAddr)
182182
183183
184184 func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller)
185185
186186
187187 func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash)
188188
189189
190190 func keyidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller)
191191
192192
193193 func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay)))
194194 then throw("Wrong Display CID")
195195 else if (!(validateCID(cidExport)))
196196 then throw("Wrong Export CID")
197197 else if (if ((cidLicence != ""))
198198 then !(validateCID(cidLicence))
199199 else false)
200200 then throw("Wrong Licence CID")
201201 else true
202202
203203
204204 func validateAllHash (sha256Export,sha256Licence) = if (!(validateHash(sha256Export)))
205205 then throw("Export Hash 64 char. max")
206206 else if (!(validateHash(sha256Licence)))
207207 then throw("Licence Hash 64 char. max")
208208 else true
209209
210210
211211 func validateString (str,max) = if ((size(str) == 0))
212212 then throw("Field cannot be is empty")
213213 else if ((size(str) > max))
214214 then throw((str + " is too long"))
215215 else true
216216
217217
218218 func validateUser (caller) = {
219219 let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered)
220220 if (if ((userStatus == userUnregistered))
221221 then true
222222 else (userStatus == userAllowed))
223223 then "Register this account first with \"Account\" tab"
224224 else if ((userStatus == userSuspended))
225225 then "Account suspended"
226226 else if ((userStatus == userRemoved))
227227 then "Account removed"
228228 else ""
229229 }
230230
231231
232232 func setLIcence (cidLicence,sha256Licence) = {
233233 let cid = if ((size(cidLicence) == 0))
234234 then defaultLicence
235235 else cidLicence
236236 let hash = if ((size(sha256Licence) == 0))
237237 then defaultHashLicence
238238 else sha256Licence
239239 $Tuple2(cid, hash)
240240 }
241241
242242
243243 func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags,royalties) = {
244244 let checkUser = validateUser(caller)
245245 if ((checkUser != ""))
246246 then throw(checkUser)
247247 else if ((size(cidDisplay) == 0))
248248 then throw("Display CID cannot be empty")
249249 else if (!(validateAllCID(cidDisplay, cidExport, licenceCID)))
250250 then throw("Problem with CID")
251251 else if (!(validateAllHash(sha256Export, licenceHash)))
252252 then throw("Problem with Hashes")
253253 else if (!(validateString(name, 100)))
254254 then throw("100 Char. max name")
255255 else if (!(validateString(description, 1000)))
256256 then throw("1000 Char. max description")
257257 else if (if ((0 > royalties))
258258 then true
259259 else (royalties > 1000))
260260 then throw("Royalties cannot be less than 0% or higher than 10%")
261261 else if ((size(split(tags, ",")) > 5))
262262 then throw("5 tags max.")
263263 else ""
264264 }
265265
266266
267267 func isPayment (i) = if ((size(i.payments) == 0))
268268 then throw("No payment attached")
269269 else {
270270 let payment = value(i.payments[0])
271271 let amount = value(payment.amount)
272272 $Tuple2(payment, amount)
273273 }
274274
275275
276276 func validatePayment (i) = {
277277 let $t01015610192 = isPayment(i)
278278 let payment = $t01015610192._1
279279 let amount = $t01015610192._2
280280 let assetId = if (if (isDefined(payment.assetId))
281281 then (payment.assetId == artAssetId)
282282 else false)
283283 then payment.assetId
284284 else throw("Only SIGN token accepted as transaction fee")
285285 if ((amount != currentCertificationPrice))
286286 then throw(("Payment amount should be " + toString(currentCertificationPrice)))
287287 else $Tuple2(amount, assetId)
288288 }
289289
290290
291291 func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) {
292292 case b: Int =>
293293 if ((b != 0))
294294 then true
295295 else false
296296 case _ =>
297297 false
298298 }
299299
300300
301301 func validatePriceAssetId (i,priceAssetId,artworkPrice) = {
302302 let $t01077910815 = isPayment(i)
303303 let payment = $t01077910815._1
304304 let amount = $t01077910815._2
305305 let assetId = if (!(isDefined(payment.assetId)))
306306 then unit
307307 else if (if ((size(priceAssetId) > 0))
308308 then (toBase58String(value(payment.assetId)) == priceAssetId)
309309 else false)
310310 then payment.assetId
311311 else throw("Wrong asset id")
312312 if (if ((assetId == unit))
313313 then (priceAssetId != "")
314314 else false)
315315 then throw("Wrong asset id")
316316 else if ((artworkPrice != amount))
317317 then throw("Payment don't match")
318318 else $Tuple2(amount, assetId)
319319 }
320320
321321
322322 func acceptedAssetIds (assetId) = if (!(containsElement(all_accepted_assets, assetId)))
323323 then throw("Only $ART, USDT-PP, USDC-PP, EAST, PUZZLE, ETH or WAVES accepted")
324324 else true
325325
326326
327327 func validateMinSell (price) = if ((0 >= price))
328328 then throw("Wrong minimum sell price")
329329 else true
330330
331331
332332 func getBidAssetId (assetId) = if ((assetId == "WAVES"))
333333 then unit
334334 else fromBase58String(assetId)
335335
336336
337337 func getPriceAssetIdFromBid (bidDataKey) = {
338338 let bidData = getStringByKey((bidDataKey + "_OPEN"))
339339 if ((bidData == ""))
340340 then throw("Bid not found")
341341 else {
342342 let bidDataArr = split(bidData, "_")
343343 let bidAmount = parseIntValue(bidDataArr[1])
344344 let bidAssetId = getBidAssetId(bidDataArr[0])
345345 if ((0 >= bidAmount))
346346 then throw("Wrong amount")
347347 else $Tuple2(bidAmount, bidAssetId)
348348 }
349349 }
350350
351351
352352 func idCallerDateSponsored (i,pubKey) = if (!(dappRunning))
353353 then throw(maintenanceMSG)
354354 else {
355355 let isSponsored = if ((pubKey != ""))
356356 then valueOrElse(checkWhitelist((toString(addressFromPublicKey(fromBase58String(pubKey))) + "_free_txs")), 0)
357357 else 0
358358 let caller = if (if ((toBase58String(i.caller.bytes) == toString(this)))
359359 then (isSponsored > 0)
360360 else false)
361361 then toString(addressFromPublicKey(fromBase58String(pubKey)))
362362 else toBase58String(i.caller.bytes)
363363 let get_sponsored_waves = if (if ((pubKey != ""))
364364 then (isSponsored > 0)
365365 else false)
366366 then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil)
367367 else unit
368368 if ((get_sponsored_waves == get_sponsored_waves))
369369 then $Tuple4(toBase58String(i.transactionId), caller, lastBlock.timestamp, (isSponsored > 0))
370370 else throw("Strict value is not equal to itself.")
371371 }
372372
373373
374374 func idCallerDate (i) = if (!(dappRunning))
375375 then throw(maintenanceMSG)
376376 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
377377
378378
379379 func getBalance (assetId) = match assetId {
380380 case b: ByteVector =>
381381 assetBalance(this, b)
382382 case _ =>
383383 wavesBalance(this).available
384384 }
385385
386386
387387 func buyMint (i,artId,issuer,bidId,bidOwner,pubKey) = {
388388 let $t01342013509 = idCallerDateSponsored(i, pubKey)
389389 let id = $t01342013509._1
390390 let caller = $t01342013509._2
391391 let date = $t01342013509._3
392392 let isSponsored = $t01342013509._4
393393 let isBid = if (if (if ((caller == issuer))
394394 then (bidOwner != "")
395395 else false)
396396 then (bidId != "")
397397 else false)
398398 then true
399399 else false
400400 if (if (isBid)
401401 then (caller != issuer)
402402 else false)
403403 then throw("You cannot do this action")
404404 else {
405405 let blockEnd = getIntegerByKey(keyEndSale(caller, artId))
406406 if (if (if ((blockEnd != 0))
407407 then (height >= blockEnd)
408408 else false)
409409 then !(isBid)
410410 else false)
411411 then throw("Sale ended.")
412412 else {
413413 let callerIsIssuer = (caller == issuer)
414414 let totalNFT = getIntegerByKey("total_nft_issued")
415415 let artworkName = getStringByKey(keyName(issuer, artId))
416416 if ((artworkName == ""))
417417 then throw("Art doesn't exist")
418418 else {
419419 let isOnSale = getBooleanByKey(keyOnSale(issuer, artId))
420420 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
421421 let artworkPrice = if (callerIsIssuer)
422422 then mint_fee
423423 else getIntegerByKey(keyPrice(issuer, artId))
424424 let priceAssetId = if (callerIsIssuer)
425425 then toBase58String(artAssetId)
426426 else getStringByKey(keyAssetIdAccepted(issuer, artId))
427427 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
428428 if (if (if (!(isBid))
429429 then !(callerIsIssuer)
430430 else false)
431431 then if (if ((0 >= artworkPrice))
432432 then true
433433 else !(isOnSale))
434434 then true
435435 else (0 >= maxCanSell)
436436 else false)
437437 then throw("Art not for sale")
438438 else if (if (if (!(isBid))
439439 then callerIsIssuer
440440 else false)
441441 then (0 >= maxCanSell)
442442 else false)
443443 then throw("Max issuable not set")
444444 else {
445445 let checkUser = validateUser(issuer)
446446 if (if (isBid)
447447 then (checkUser != "")
448448 else false)
449449 then throw(checkUser)
450450 else {
451451 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
452452 let $t01508615278 = if (isBid)
453453 then getPriceAssetIdFromBid(bidDataKey)
454454 else validatePriceAssetId(i, priceAssetId, artworkPrice)
455455 let amount = $t01508615278._1
456456 let assetId = $t01508615278._2
457457 let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver)
458458 let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShareAgent(issuer)), 0)
459459 let publicAgent = valueOrElse(getString(userDapp, keyArtistPublicAgentAddr(issuer)), feeReceiver)
460460 let publicAgentShare = valueOrElse(getInteger(userDapp, keyPrimarySharePublicAgent(issuer)), 0)
461461 let isWhitelisted = checkWhitelist(issuer)
462462 let amountForSign = fraction(amount, commission_fee, 100)
463463 let amountForAgent = if (if (if ((agent != feeReceiver))
464464 then (agentShare > 0)
465465 else false)
466466 then (height > isWhitelisted)
467467 else false)
468468 then fraction(amount, agentShare, 10000)
469469 else 0
470470 let amountForPublicAgent = if (if (if ((publicAgent != feeReceiver))
471471 then (publicAgentShare > 0)
472472 else false)
473473 then (height > isWhitelisted)
474474 else false)
475475 then fraction(amount, publicAgentShare, 10000)
476476 else 0
477477 let amountForCreator = (amount - amountForSign)
478478 if ((amountSold == maxCanSell))
479479 then throw("Art sold out")
480480 else {
481481 let newAmountSold = (amountSold + 1)
482482 let issueMeta = ((((((((("Creator: " + issuer) + ",
483483 ArtID: ") + artId) + ",
484484 Artwork name: ") + artworkName) + ",
485485 Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell))
486486 let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
487487 let idNFT = calculateAssetId(issueNFT)
488488 let sellStatus = if (if ((newAmountSold == maxCanSell))
489489 then true
490490 else !(isOnSale))
491491 then false
492492 else true
493493 let receiveNFT = if (if (if ((caller == issuer))
494494 then (bidOwner != "")
495495 else false)
496496 then (bidId != "")
497497 else false)
498498 then addressFromStringValue(bidOwner)
499499 else i.caller
500500 if ((assetId == unit))
501- then throw("unit")
501+ then throw(toString(isDefined(assetId)))
502502 else {
503503 let assetIdBid = if (!(isDefined(assetId)))
504504 then "WAVES"
505505 else toBase58String(value(assetId))
506506 let bidData = getStringByKey((bidDataKey + "_OPEN"))
507507 let bidDelOld = DeleteEntry((bidDataKey + "_OPEN"))
508508 let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date)))
509509 let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer)
510510 let soldValue = if (!(isBid))
511511 then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT))
512512 else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT))
513513 let soldData = StringEntry(soldKey, soldValue)
514514 let amount_commission_for_sign_to_swap = if ((amountForAgent != 0))
515515 then (amountForSign - amountForAgent)
516516 else amountForSign
517517 let amount_art_before = getBalance(artAssetId)
518518 if ((amount_art_before == amount_art_before))
519519 then {
520520 let swap_fee_to_art = if ((assetId != artAssetId))
521521 then invoke(Address(fromBase58String(puzzle_art_pool)), "swap", [artAssetId_str, 1], [AttachedPayment(assetId, amount_commission_for_sign_to_swap)])
522522 else unit
523523 if ((swap_fee_to_art == swap_fee_to_art))
524524 then {
525525 let amount_art_after = getBalance(artAssetId)
526526 if ((amount_art_after == amount_art_after))
527527 then {
528528 let commissionsWithAgent = if ((amountForAgent != 0))
529529 then [ScriptTransfer(Address(fromBase58String(feeReceiver)), if ((assetId == artAssetId))
530530 then (amountForSign - amountForAgent)
531531 else (amount_art_after - amount_art_before), artAssetId), ScriptTransfer(Address(fromBase58String(agent)), amountForAgent, assetId)]
532532 else [ScriptTransfer(Address(fromBase58String(feeReceiver)), if ((assetId == artAssetId))
533533 then amountForSign
534534 else (amount_art_after - amount_art_before), artAssetId)]
535535 let commissionsWithPublicAgent = if ((amountForPublicAgent != 0))
536536 then [ScriptTransfer(Address(fromBase58String(publicAgent)), amountForPublicAgent, assetId), ScriptTransfer(Address(fromBase58String(issuer)), (amountForCreator - amountForPublicAgent), assetId)]
537537 else [ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId)]
538538 let txToCaller = if (isSponsored)
539539 then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)]
540540 else nil
541541 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(receiveNFT, 1, idNFT)] ++ commissionsWithAgent) ++ commissionsWithPublicAgent) ++ txToCaller)
542542 if (isBid)
543543 then [soldData, bidUpdate, bidDelOld] :: buyRes
544544 else soldData :: buyRes
545545 }
546546 else throw("Strict value is not equal to itself.")
547547 }
548548 else throw("Strict value is not equal to itself.")
549549 }
550550 else throw("Strict value is not equal to itself.")
551551 }
552552 }
553553 }
554554 }
555555 }
556556 }
557557 }
558558 }
559559
560560
561561 func asString (bv) = match bv {
562562 case bv0: String =>
563563 bv0
564564 case _ =>
565565 throw("Sponsored Public Key String expected")
566566 }
567567
568568
569569 @Callable(invoke)
570570 func setConf (key,val) = {
571571 let caller = toString(invoke.caller)
572572 if (containsElement([chris, toString(this)], caller))
573573 then if (contains(key, "conf_"))
574574 then [StringEntry(key, val)]
575575 else throw("Entries starting with conf_ only")
576576 else throw("You are not allowed to change this")
577577 }
578578
579579
580580
581581 @Callable(i)
582582 func addArtwork (name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = {
583- let $t02158421657 = idCallerDateSponsored(i, pubKey)
584- let artId = $t02158421657._1
585- let caller = $t02158421657._2
586- let date = $t02158421657._3
587- let isSponsored = $t02158421657._4
588- let $t02166721736 = setLIcence(cidLicence, sha256Licence)
589- let licenceCID = $t02166721736._1
590- let licenceHash = $t02166721736._2
583+ let $t02160721680 = idCallerDateSponsored(i, pubKey)
584+ let artId = $t02160721680._1
585+ let caller = $t02160721680._2
586+ let date = $t02160721680._3
587+ let isSponsored = $t02160721680._4
588+ let $t02169021759 = setLIcence(cidLicence, sha256Licence)
589+ let licenceCID = $t02169021759._1
590+ let licenceHash = $t02169021759._2
591591 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
592592 if ((validateArtwork != ""))
593593 then throw("Something went wrong!")
594594 else {
595595 let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0)
596- let $t02203522123 = if (whitelisted_drop)
596+ let $t02205822146 = if (whitelisted_drop)
597597 then $Tuple2(0, artAssetId)
598598 else validatePayment(i)
599- let amount = $t02203522123._1
600- let assetId = $t02203522123._2
599+ let amount = $t02205822146._1
600+ let assetId = $t02205822146._2
601601 if (!(isDefined(amount)))
602602 then throw("Something went wrong")
603603 else {
604604 let decrease_whitelist_drop = if (whitelisted_drop)
605605 then invoke(whitelistDapp, "useFreeDrop", [caller], nil)
606606 else unit
607607 if ((decrease_whitelist_drop == decrease_whitelist_drop))
608608 then {
609609 let txToCaller = if (isSponsored)
610610 then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)]
611611 else nil
612612 ([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), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyCrawler(caller, artId), crawler), IntegerEntry(keyRoyalties(caller, artId), royalties), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, artAssetId)] ++ txToCaller)
613613 }
614614 else throw("Strict value is not equal to itself.")
615615 }
616616 }
617617 }
618618
619619
620620
621621 @Callable(i)
622622 func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning))
623623 then throw(maintenanceMSG)
624624 else {
625- let $t02403824108 = idCallerDateSponsored(i, pubKey)
626- let id = $t02403824108._1
627- let caller = $t02403824108._2
628- let date = $t02403824108._3
629- let isSponsored = $t02403824108._4
630- let $t02411824187 = setLIcence(cidLicence, sha256Licence)
631- let licenceCID = $t02411824187._1
632- let licenceHash = $t02411824187._2
625+ let $t02406124131 = idCallerDateSponsored(i, pubKey)
626+ let id = $t02406124131._1
627+ let caller = $t02406124131._2
628+ let date = $t02406124131._3
629+ let isSponsored = $t02406124131._4
630+ let $t02414124210 = setLIcence(cidLicence, sha256Licence)
631+ let licenceCID = $t02414124210._1
632+ let licenceHash = $t02414124210._2
633633 let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties)
634634 if ((validateArtwork != ""))
635635 then throw("Something went wrong!")
636636 else {
637637 let entryExist = getStringByKey(keyName(caller, txid))
638638 if ((entryExist == ""))
639639 then throw("Entry not found")
640640 else {
641641 let flag = getStringByKey(keyFlag(caller, txid))
642642 if ((flag == "ILLEGAL"))
643643 then throw("Cannot update ILLEGAL artwork")
644644 else if (!(isArtMinted(caller, txid)))
645645 then {
646646 let txToCaller = if (isSponsored)
647647 then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)]
648648 else nil
649649 ([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)
650650 }
651651 else throw("Already minted")
652652 }
653653 }
654654 }
655655
656656
657657
658658 @Callable(i)
659659 func flagArtwork (artId,addr,flag,note) = {
660- let $t02581425848 = idCallerDate(i)
661- let id = $t02581425848._1
662- let caller = $t02581425848._2
660+ let $t02583725871 = idCallerDate(i)
661+ let id = $t02583725871._1
662+ let caller = $t02583725871._2
663663 if (containsElement([chris, toString(this)], caller))
664664 then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
665665 then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)]
666666 else throw(("Unknow status " + flag))
667667 else throw("You are not allowed")
668668 }
669669
670670
671671
672672 @Callable(i)
673673 func deleteArtwork (artId,addr) = {
674- let $t02628426318 = idCallerDate(i)
675- let id = $t02628426318._1
676- let caller = $t02628426318._2
674+ let $t02630726341 = idCallerDate(i)
675+ let id = $t02630726341._1
676+ let caller = $t02630726341._2
677677 let addrToUse = if (containsElement([chris, toString(this)], caller))
678678 then addr
679679 else caller
680680 let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address")
681681 if ((entryExist == ""))
682682 then throw("No art matching for this address")
683683 else {
684684 let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId))
685685 let signID = if ((sha256Hash != ""))
686686 then getStringByKey(keySignID(addrToUse, artId))
687687 else ""
688688 let signID_legacy = if ((signID == ""))
689689 then nil
690690 else [DeleteEntry(keyidBySignid(addrToUse, signID))]
691691 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(keyEndSale(addrToUse, artId)), DeleteEntry(keyNote(addrToUse, artId)), DeleteEntry(keyCrawler(addrToUse, artId)), DeleteEntry(keyRoyalties(addrToUse, artId))] ++ signID_legacy)
692692 if (!(isArtMinted(addrToUse, artId)))
693693 then if (!(dappRunning))
694694 then throw(maintenanceMSG)
695695 else dataToDelete
696696 else if (containsElement([chris, toString(this)], caller))
697697 then dataToDelete
698698 else throw("Art already minted, you cannot delete it")
699699 }
700700 }
701701
702702
703703
704704 @Callable(i)
705705 func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = {
706- let $t02909729167 = idCallerDateSponsored(i, pubKey)
707- let id = $t02909729167._1
708- let caller = $t02909729167._2
709- let date = $t02909729167._3
710- let isSponsored = $t02909729167._4
706+ let $t02912029190 = idCallerDateSponsored(i, pubKey)
707+ let id = $t02912029190._1
708+ let caller = $t02912029190._2
709+ let date = $t02912029190._3
710+ let isSponsored = $t02912029190._4
711711 let artworkName = getStringByKey(keyName(caller, artId))
712712 if ((artworkName == ""))
713713 then throw("This art doesn't match your account")
714714 else {
715715 let flag = getStringByKey(keyFlag(caller, artId))
716716 if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
717717 then throw("Flagged artwork")
718718 else {
719719 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
720720 if ((0 > blockEnd))
721721 then throw("Negative end")
722722 else if (if ((blockEnd > 0))
723723 then if ((maxMint != 1))
724724 then true
725725 else (price != 0)
726726 else false)
727727 then throw("Timed offer only allowed for unique edition and offer only")
728728 else {
729729 let baseHeight = if ((blockEnd == 0))
730730 then 0
731731 else height
732732 if (!(acceptedAssetIds(assetId)))
733733 then throw("Something went wrong!")
734734 else if (!(validateMinSell(price)))
735735 then throw("Something went wrong!")
736736 else {
737737 let checkUser = validateUser(caller)
738738 if ((checkUser != ""))
739739 then throw(checkUser)
740740 else {
741741 let amountSold = getIntegerByKey(keyIssued(caller, artId))
742742 let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId))
743743 if ((maxMint > 100))
744744 then throw("100 editions max per artwork")
745745 else if (if ((amountSold != 0))
746746 then (amountSold == maxCanSell)
747747 else false)
748748 then throw("Max edition reached.")
749749 else if (if ((amountSold > 0))
750750 then (maxCanSell != maxMint)
751751 else false)
752752 then throw("Cannot change maximum issuable anymore")
753753 else if (if ((bidNbr > 0))
754754 then (maxCanSell != maxMint)
755755 else false)
756756 then throw("Cannot change maximum issuable with active orders")
757757 else {
758758 let sellStatus = if (if ((price > 0))
759759 then (maxMint > 0)
760760 else false)
761761 then true
762762 else false
763763 let txToCaller = if (isSponsored)
764764 then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)]
765765 else nil
766766 ([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)
767767 }
768768 }
769769 }
770770 }
771771 }
772772 }
773773 }
774774
775775
776776
777777 @Callable(i)
778778 func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "", "")
779779
780780
781781
782782 @Callable(i)
783783 func setBid (artId,issuer) = {
784- let $t03154031580 = idCallerDate(i)
785- let id = $t03154031580._1
786- let caller = $t03154031580._2
787- let date = $t03154031580._3
788- let $t03158531621 = isPayment(i)
789- let payment = $t03158531621._1
790- let amount = $t03158531621._2
784+ let $t03156331603 = idCallerDate(i)
785+ let id = $t03156331603._1
786+ let caller = $t03156331603._2
787+ let date = $t03156331603._3
788+ let $t03160831644 = isPayment(i)
789+ let payment = $t03160831644._1
790+ let amount = $t03160831644._2
791791 let assetId = if (!(isDefined(payment.assetId)))
792792 then "WAVES"
793793 else toBase58String(value(payment.assetId))
794794 let blockEnd = getIntegerByKey(keyEndSale(issuer, artId))
795795 if (if ((blockEnd != 0))
796796 then (height >= blockEnd)
797797 else false)
798798 then throw("Sale ended.")
799799 else {
800800 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
801801 if (!(acceptedAssetIds(assetId)))
802802 then throw("asset not accepted")
803803 else if (!(validateMinSell(amount)))
804804 then throw("Wrong min sell")
805805 else {
806806 let amountSold = getIntegerByKey(keyIssued(issuer, artId))
807807 let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId))
808808 if ((0 >= maxCanSell))
809809 then throw("No max edition set for this artwork")
810810 else if ((amountSold >= maxCanSell))
811811 then throw("Sold out, you cannot bid")
812812 else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))]
813813 }
814814 }
815815 }
816816
817817
818818
819819 @Callable(i)
820820 func acceptBid (artId,issuer,bidId,bidOwner,pubKey) = buyMint(i, artId, issuer, bidId, bidOwner, pubKey)
821821
822822
823823
824824 @Callable(i)
825825 func cancelBid (artId,issuer,bidId,bidOwner) = {
826- let $t03294533006 = idCallerDate(i)
827- let id = $t03294533006._1
828- let caller = $t03294533006._2
829- let date = $t03294533006._3
826+ let $t03296833029 = idCallerDate(i)
827+ let id = $t03296833029._1
828+ let caller = $t03296833029._2
829+ let date = $t03296833029._3
830830 if (if ((caller != bidOwner))
831831 then (caller != issuer)
832832 else false)
833833 then throw("You cannot do this action")
834834 else {
835835 let returnMoneyTo = if ((caller == issuer))
836836 then bidOwner
837837 else caller
838838 let bidNbr = getIntegerByKey(("current_bidamount_" + artId))
839839 let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId)
840840 let bidData = getStringByKey((bidDataKey + "_OPEN"))
841841 if ((bidData == ""))
842842 then throw("Bid not found")
843843 else {
844844 let bidDataArr = split(bidData, "_")
845845 let assetId = getBidAssetId(bidDataArr[0])
846846 let bidStatus = "CANCELED"
847847 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(returnMoneyTo)), parseIntValue(bidDataArr[1]), assetId)]
848848 }
849849 }
850850 }
851851
852852
853853 @Verifier(tx)
854854 func verifier () = match tx {
855855 case inv: InvokeScriptTransaction =>
856856 if (if (if (if ((inv.function == "addArtwork"))
857857 then (inv.dApp == this)
858858 else false)
859859 then (inv.fee == 500000)
860860 else false)
861861 then (inv.feeAssetId == unit)
862862 else false)
863863 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[11])))
864864 else if (if (if (if ((inv.function == "updateArtwork"))
865865 then (inv.dApp == this)
866866 else false)
867867 then (inv.fee == 500000)
868868 else false)
869869 then (inv.feeAssetId == unit)
870870 else false)
871871 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[12])))
872872 else if (if (if (if ((inv.function == "sellArtwork"))
873873 then (inv.dApp == this)
874874 else false)
875875 then (inv.fee == 500000)
876876 else false)
877877 then (inv.feeAssetId == unit)
878878 else false)
879879 then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[5])))
880880 else if (if (if (if ((inv.function == "acceptBid"))
881881 then (inv.dApp == this)
882882 else false)
883883 then (inv.fee == 500000)
884884 else false)
885885 then (inv.feeAssetId == unit)
886886 else false)
887887 then sigVerify_128Kb(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[4])))
888888 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
889889 case _ =>
890890 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
891891 }
892892

github/deemru/w8io/026f985 
98.69 ms