tx · 641xouxed27uA5nFYVHDtMx6upJSnUhNnM8KSopZvxvX 3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA: -0.01000000 Waves 2022.02.13 19:14 [1922076] smart account 3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA > SELF 0.00000000 Waves
{ "type": 13, "id": "641xouxed27uA5nFYVHDtMx6upJSnUhNnM8KSopZvxvX", "fee": 1000000, "feeAssetId": null, "timestamp": 1644768937310, "version": 2, "chainId": 84, "sender": "3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA", "senderPublicKey": "9abKuN1XmLjjire2feZH26PmcEWhEXxiHToWSmii3Gn2", "proofs": [ "L9CJznmWZLL4UczdGpmK4t7jAZpjx4Z1rzg85B1F4JNHJRPWozxcnVLMa4iovkBCKCGBanzkmNXXN1g2eGqRHkc" ], "script": "base64:AAIFAAAAAAAAAE4IAhIFCgMBCAgSDAoKCAgICAgICAgICBIJCgcIAQEICAEBEgQKAggIEgUKAwgICBIDCgEIEgQKAggIEgYKBAgICAgSBQoDCAgIEgMKAQgAAABUAAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXBaUWp6R29nbWlmY0VLZThtRGQ2cmliTDdueFQ5QUN5ZQAAAAALZmVlUmVjZWl2ZXICAAAAIzNONjV4THE4SmNDZWFFaVIxVEpRN2RCcVhCdkV5NkU0OFd6AAAAAAhjZXJ0RGFwcAIAAAAjM014Y1hyTmJNWktZYVNyaGNmZU1tMmhabkJlQ3UzeVJXc3cAAAAACHVzZXJEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNenY0VUhHUkNDNUtrblpiOHg1d2ZGVVF6enBZOUc0R240AAAAAA13aGl0ZWxpc3REYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOOXhaWUdwek1GRFh2WHVjdG1VNnpWOHFTem0yWmZGMzFmAAAAAAtVU0ROQX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2FuY2VsQmlkSW1wbFRyYWRpdGlvbmFsAAAABAUAAAABaQUAAAAFYXJ0SWQFAAAABmlzc3VlcgUAAAAFYmlkSWQAAAABaQEAAAAIaW5pdERhcHAAAAABAAAAB2RhcHBLZXkDCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABHRoaXMJAAACAAAAAQIAAAAZWW91IGNhbm5vdCBkbyB0aGlzIGFjdGlvbgMJAQAAAAIhPQAAAAIFAAAAD2NvbGxlY3Rpb25zRGFwcAIAAAAACQAAAgAAAAECAAAAMUNvbGxlY3Rpb25zIGRhcHAgYWxyZWFkeSBzZXQsIHlvdSBjYW4ndCBvdmVycmlkZSEJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAPY29sbGVjdGlvbnNEYXBwBQAAAAdkYXBwS2V5BQAAAANuaWwAAAAAra/rlw==", "height": 1922076, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4Rzo4tt5vQVpgH1QavaHexk4P7qj8PkqCW3ALFb4Pntm Next: 8KJ8utFWS2NaHQr7m4iTVzywvXY5Y4wva2ZFry25kvVd Diff:
Old | New | Differences | |
---|---|---|---|
111 | 111 | func keyRoyalty (caller,artId) = ((("art_royalty_" + artId) + "_") + caller) | |
112 | 112 | ||
113 | 113 | ||
114 | - | func keyCollection (caller,artId) = ((("collection_" + artId) + "_") + caller) | |
115 | - | ||
116 | - | ||
117 | - | func keySubcollection (caller,artId) = ((("subcollection_" + artId) + "_") + caller) | |
118 | - | ||
119 | - | ||
120 | 114 | func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
121 | 115 | ||
122 | 116 | ||
144 | 138 | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
145 | 139 | ||
146 | 140 | ||
141 | + | func keyCollection (caller,artId) = ((("collection_" + artId) + "_") + caller) | |
142 | + | ||
143 | + | ||
147 | 144 | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(USDNAssetId))) | |
148 | 145 | ||
149 | 146 | func getAmountByBidId (bidId) = valueOrElse(getIntegerByKey(keyBidId(bidId)), 0) | |
150 | 147 | ||
148 | + | ||
149 | + | let collectionsDappKey = "collectionsDappKey" | |
150 | + | ||
151 | + | let collectionsDapp = getStringByKey(collectionsDappKey) | |
151 | 152 | ||
152 | 153 | func getAmountHighestBidByArtId (artId) = { | |
153 | 154 | let bidId = getStringByKey(keyHighestBidBidId(artId)) | |
291 | 292 | func idCallerDate (i) = if (!(dappRunning)) | |
292 | 293 | then throw(maintenanceMSG) | |
293 | 294 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
294 | - | ||
295 | - | ||
296 | - | func isBidCheck (i,issuer,bidOwner,bidId) = if (if (if ((toBase58String(i.caller.bytes) == issuer)) | |
297 | - | then (bidOwner != "") | |
298 | - | else false) | |
299 | - | then (bidId != "") | |
300 | - | else false) | |
301 | - | then true | |
302 | - | else false | |
303 | 295 | ||
304 | 296 | ||
305 | 297 | func getArtData (i,issuer,artId,isBid) = { | |
581 | 573 | } | |
582 | 574 | ||
583 | 575 | ||
584 | - | func collectionProcess (collection,subcollection,caller,artId) = if ((collection == "")) | |
585 | - | then throw("Collections can not be empty!") | |
586 | - | else if ((subcollection == "")) | |
587 | - | then [StringEntry(keyCollection(caller, artId), collection)] | |
588 | - | else [StringEntry(keyCollection(caller, artId), collection), StringEntry(keySubcollection(caller, artId), subcollection)] | |
589 | - | ||
590 | - | ||
591 | 576 | func cancelBidImplTraditional (i,artId,issuer,bidId) = { | |
592 | 577 | let t02894229094 = idCallerDate(i) | |
593 | 578 | let id = t02894229094._1 | |
620 | 605 | ||
621 | 606 | ||
622 | 607 | @Callable(i) | |
623 | - | func updateCollection (artId,collection,subcollection) = { | |
624 | - | let caller = toBase58String(i.caller.bytes) | |
625 | - | let saleKey = keyOnSale(artId, caller) | |
626 | - | if (getBooleanByKey(saleKey)) | |
627 | - | then throw("Can not update collection from artwork for sale") | |
628 | - | else collectionProcess(collection, subcollection, caller, artId) | |
629 | - | } | |
630 | - | ||
631 | - | ||
632 | - | ||
633 | - | @Callable(i) | |
634 | 608 | func addArtwork (sha256Hash,name,description,tags,type,cidDisplay,entitlement,preview,collection,subcollection) = { | |
635 | 609 | let t01774017781 = idCallerDate(i) | |
636 | 610 | let artId = t01774017781._1 | |
651 | 625 | let previewData = if (containsElement(Previewtypes, type)) | |
652 | 626 | then [StringEntry(keyPreviewCid(caller, artId), preview)] | |
653 | 627 | else nil | |
654 | - | let collectionData = collectionProcess(collection, subcollection, caller, artId) | |
655 | - | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
656 | - | if ((entryExist != "")) | |
657 | - | then throw("You already added it") | |
658 | - | else { | |
659 | - | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
660 | - | if ((hashExist != "")) | |
661 | - | then throw("This hash is already registered") | |
662 | - | else ((previewData ++ collectionData) ++ [StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyEntitlement(caller, artId), entitlement), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]) | |
628 | + | let invokeCollectionCreate = invoke(addressFromStringValue(collectionsDapp), "collectionProcess", [collection, subcollection, caller, artId], nil) | |
629 | + | if ((invokeCollectionCreate == invokeCollectionCreate)) | |
630 | + | then { | |
631 | + | let idCollection = match invokeCollectionCreate { | |
632 | + | case r: String => | |
633 | + | r | |
634 | + | case _ => | |
635 | + | throw("Incorrect invoke result") | |
663 | 636 | } | |
637 | + | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
638 | + | if ((entryExist != "")) | |
639 | + | then throw("You already added it") | |
640 | + | else { | |
641 | + | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
642 | + | if ((hashExist != "")) | |
643 | + | then throw("This hash is already registered") | |
644 | + | else (previewData ++ [StringEntry(keyCollection(caller, artId), idCollection), StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyEntitlement(caller, artId), entitlement), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]) | |
645 | + | } | |
646 | + | } | |
647 | + | else throw("Strict value is not equal to itself.") | |
664 | 648 | } | |
665 | 649 | } | |
666 | 650 | } | |
796 | 780 | } | |
797 | 781 | ||
798 | 782 | ||
783 | + | ||
784 | + | @Callable(i) | |
785 | + | func initDapp (dappKey) = if ((i.caller != this)) | |
786 | + | then throw("You cannot do this action") | |
787 | + | else if ((collectionsDapp != "")) | |
788 | + | then throw("Collections dapp already set, you can't override!") | |
789 | + | else [StringEntry(collectionsDapp, dappKey)] | |
790 | + | ||
791 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let unitTest = false | |
5 | 5 | ||
6 | 6 | let oracleFee = value(addressFromString("3MpZQjzGogmifcEKe8mDd6ribL7nxT9ACye")) | |
7 | 7 | ||
8 | 8 | let feeReceiver = "3N65xLq8JcCeaEiR1TJQ7dBqXBvEy6E48Wz" | |
9 | 9 | ||
10 | 10 | let certDapp = "3MxcXrNbMZKYaSrhcfeMm2hZnBeCu3yRWsw" | |
11 | 11 | ||
12 | 12 | let userDapp = value(addressFromString("3Mzv4UHGRCC5KknZb8x5wfFUQzzpY9G4Gn4")) | |
13 | 13 | ||
14 | 14 | let whitelistDapp = value(addressFromString("3N9xZYGpzMFDXvXuctmU6zV8qSzm2ZfF31f")) | |
15 | 15 | ||
16 | 16 | let USDNAssetId = base58'132maRL3uF35tc2bpRih9D6MYq5DR6H28zkop786dKyu' | |
17 | 17 | ||
18 | 18 | let owners = [getString(oracleFee, "owner1"), getString(oracleFee, "owner2")] | |
19 | 19 | ||
20 | 20 | let types = ["IMAGE", "PDF", "VIDEO"] | |
21 | 21 | ||
22 | 22 | let Previewtypes = ["PDF"] | |
23 | 23 | ||
24 | 24 | let USDNFirstSellCut = 150 | |
25 | 25 | ||
26 | 26 | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
27 | 27 | ||
28 | 28 | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
29 | 29 | ||
30 | 30 | let userSuspended = "SUSPENDED" | |
31 | 31 | ||
32 | 32 | let userRemoved = "REMOVED" | |
33 | 33 | ||
34 | 34 | let userUnregistered = "UNREGISTERED" | |
35 | 35 | ||
36 | 36 | let auctionType1 = "BIDTYPE" | |
37 | 37 | ||
38 | 38 | let auctionType2 = "TRADITIONAL" | |
39 | 39 | ||
40 | 40 | let auctionType3 = "DIRECT" | |
41 | 41 | ||
42 | 42 | func getStringByKeyFromUsers (key) = valueOrElse(getString(userDapp, key), "") | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func getStringByKeyOrError (key,error) = valueOrErrorMessage(getString(this, key), error) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func validateHash (hash) = (size(hash) == 64) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func keyUserStatus (caller) = ("user_status_" + caller) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func keyPreviewCid (caller,artId) = ((("art_preview_cid_" + artId) + "_") + caller) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func keyHighestBidBidId (artId) = ("art_highestBidBidId_" + artId) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func keyBidId (bidId) = ("bid_" + bidId) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func keyDuration (caller,artId) = ((("art_duration_" + artId) + "_") + caller) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyEndHeight (caller,artId) = ((("art_endheight_" + artId) + "_") + caller) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func keyAuctionType (caller,artId) = ((("art_auctiontype_" + artId) + "_") + caller) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func KeyNftIssuer (nftId) = ("nft_issued_" + nftId) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func KeyNftArtId (nftId) = ("nft_artId_" + nftId) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func keyRoyalty (caller,artId) = ((("art_royalty_" + artId) + "_") + caller) | |
112 | 112 | ||
113 | 113 | ||
114 | - | func keyCollection (caller,artId) = ((("collection_" + artId) + "_") + caller) | |
115 | - | ||
116 | - | ||
117 | - | func keySubcollection (caller,artId) = ((("subcollection_" + artId) + "_") + caller) | |
118 | - | ||
119 | - | ||
120 | 114 | func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
121 | 115 | ||
122 | 116 | ||
123 | 117 | func keyEntitlement (caller,artId) = ((("art_entitlement_" + artId) + "_") + caller) | |
124 | 118 | ||
125 | 119 | ||
126 | 120 | func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
127 | 121 | ||
128 | 122 | ||
129 | 123 | func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
130 | 124 | ||
131 | 125 | ||
132 | 126 | func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
133 | 127 | ||
134 | 128 | ||
135 | 129 | func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
136 | 130 | ||
137 | 131 | ||
138 | 132 | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
139 | 133 | ||
140 | 134 | ||
141 | 135 | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
142 | 136 | ||
143 | 137 | ||
144 | 138 | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
145 | 139 | ||
146 | 140 | ||
141 | + | func keyCollection (caller,artId) = ((("collection_" + artId) + "_") + caller) | |
142 | + | ||
143 | + | ||
147 | 144 | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(USDNAssetId))) | |
148 | 145 | ||
149 | 146 | func getAmountByBidId (bidId) = valueOrElse(getIntegerByKey(keyBidId(bidId)), 0) | |
150 | 147 | ||
148 | + | ||
149 | + | let collectionsDappKey = "collectionsDappKey" | |
150 | + | ||
151 | + | let collectionsDapp = getStringByKey(collectionsDappKey) | |
151 | 152 | ||
152 | 153 | func getAmountHighestBidByArtId (artId) = { | |
153 | 154 | let bidId = getStringByKey(keyHighestBidBidId(artId)) | |
154 | 155 | if ((bidId == "")) | |
155 | 156 | then 0 | |
156 | 157 | else getAmountByBidId(bidId) | |
157 | 158 | } | |
158 | 159 | ||
159 | 160 | ||
160 | 161 | func validateString (str,max) = if ((size(str) == 0)) | |
161 | 162 | then throw("Field cannot be is empty") | |
162 | 163 | else if ((size(str) > max)) | |
163 | 164 | then throw((str + " is too long")) | |
164 | 165 | else true | |
165 | 166 | ||
166 | 167 | ||
167 | 168 | func validateUser (caller) = { | |
168 | 169 | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
169 | 170 | if ((userStatus == userUnregistered)) | |
170 | 171 | then "Register this account first with 'Account' tab" | |
171 | 172 | else if ((userStatus == userSuspended)) | |
172 | 173 | then "Account suspended" | |
173 | 174 | else if ((userStatus == userRemoved)) | |
174 | 175 | then "Account removed" | |
175 | 176 | else "" | |
176 | 177 | } | |
177 | 178 | ||
178 | 179 | ||
179 | 180 | func validateArtworkData (caller,cidDisplay,name,description,tags) = { | |
180 | 181 | let checkUser = validateUser(caller) | |
181 | 182 | if ((checkUser != "")) | |
182 | 183 | then throw(checkUser) | |
183 | 184 | else if ((size(cidDisplay) == 0)) | |
184 | 185 | then throw("Display CID cannot be empty") | |
185 | 186 | else if ((size(cidDisplay) != 46)) | |
186 | 187 | then throw("This doesn't seem a valid CID!") | |
187 | 188 | else if (!(validateString(name, 100))) | |
188 | 189 | then throw("100 Char. max name") | |
189 | 190 | else if (!(validateString(description, 1000))) | |
190 | 191 | then throw("1000 Char. max description") | |
191 | 192 | else if ((size(split(tags, ",")) > 5)) | |
192 | 193 | then throw("5 tags max.") | |
193 | 194 | else "" | |
194 | 195 | } | |
195 | 196 | ||
196 | 197 | ||
197 | 198 | func isPayment (i) = if ((size(i.payments) == 0)) | |
198 | 199 | then throw("No payment attached") | |
199 | 200 | else { | |
200 | 201 | let payment = value(i.payments[0]) | |
201 | 202 | let amount = value(payment.amount) | |
202 | 203 | $Tuple2(payment, amount) | |
203 | 204 | } | |
204 | 205 | ||
205 | 206 | ||
206 | 207 | func validatePayment (i) = { | |
207 | 208 | let t089829018 = isPayment(i) | |
208 | 209 | let payment = t089829018._1 | |
209 | 210 | let amount = t089829018._2 | |
210 | 211 | let assetId = if (if (isDefined(payment.assetId)) | |
211 | 212 | then (payment.assetId == USDNAssetId) | |
212 | 213 | else false) | |
213 | 214 | then payment.assetId | |
214 | 215 | else throw("Only USDN token accepted as transaction fee") | |
215 | 216 | if ((amount != currentCertificationPrice)) | |
216 | 217 | then throw(((("Payment amount should be " + toString(currentCertificationPrice)) + " but is: ") + toString(amount))) | |
217 | 218 | else $Tuple2(amount, assetId) | |
218 | 219 | } | |
219 | 220 | ||
220 | 221 | ||
221 | 222 | func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) { | |
222 | 223 | case b: Int => | |
223 | 224 | if ((b != 0)) | |
224 | 225 | then true | |
225 | 226 | else false | |
226 | 227 | case _ => | |
227 | 228 | false | |
228 | 229 | } | |
229 | 230 | ||
230 | 231 | ||
231 | 232 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
232 | 233 | let t096119647 = isPayment(i) | |
233 | 234 | let payment = t096119647._1 | |
234 | 235 | let amount = t096119647._2 | |
235 | 236 | let assetId = if (!(isDefined(payment.assetId))) | |
236 | 237 | then throw("Wrong asset id") | |
237 | 238 | else if (if ((size(priceAssetId) > 0)) | |
238 | 239 | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
239 | 240 | else false) | |
240 | 241 | then payment.assetId | |
241 | 242 | else throw("Wrong asset id") | |
242 | 243 | if (if ((assetId == unit)) | |
243 | 244 | then (priceAssetId != "") | |
244 | 245 | else false) | |
245 | 246 | then throw("Wrong asset id") | |
246 | 247 | else if ((artworkPrice != amount)) | |
247 | 248 | then throw(((("Payment don't match " + toString(artworkPrice)) + " ") + toString(amount))) | |
248 | 249 | else $Tuple2(amount, assetId) | |
249 | 250 | } | |
250 | 251 | ||
251 | 252 | ||
252 | 253 | func acceptedAssetIds (assetId) = if ((assetId != toBase58String(USDNAssetId))) | |
253 | 254 | then throw("Only USDN accepted") | |
254 | 255 | else true | |
255 | 256 | ||
256 | 257 | ||
257 | 258 | func validateMinSell (assetId,price) = { | |
258 | 259 | let minSellSconex = if (unitTest) | |
259 | 260 | then 1 | |
260 | 261 | else (currentCertificationPrice * 2) | |
261 | 262 | if (if (if ((assetId == toBase58String(USDNAssetId))) | |
262 | 263 | then (minSellSconex > price) | |
263 | 264 | else false) | |
264 | 265 | then (price != 0) | |
265 | 266 | else false) | |
266 | 267 | then throw(("Wrong minimum sell price " + toString(minSellSconex))) | |
267 | 268 | else true | |
268 | 269 | } | |
269 | 270 | ||
270 | 271 | ||
271 | 272 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
272 | 273 | then throw("Only USDN is accepted!") | |
273 | 274 | else fromBase58String(assetId) | |
274 | 275 | ||
275 | 276 | ||
276 | 277 | func getPriceAssetIdFromBid (bidDataKey) = { | |
277 | 278 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
278 | 279 | if ((bidData == "")) | |
279 | 280 | then throw("Bid not found") | |
280 | 281 | else { | |
281 | 282 | let bidDataArr = split(bidData, "_") | |
282 | 283 | let bidAmount = parseIntValue(bidDataArr[1]) | |
283 | 284 | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
284 | 285 | if ((0 >= bidAmount)) | |
285 | 286 | then throw("Wrong amount") | |
286 | 287 | else $Tuple2(bidAmount, bidAssetId) | |
287 | 288 | } | |
288 | 289 | } | |
289 | 290 | ||
290 | 291 | ||
291 | 292 | func idCallerDate (i) = if (!(dappRunning)) | |
292 | 293 | then throw(maintenanceMSG) | |
293 | 294 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
294 | - | ||
295 | - | ||
296 | - | func isBidCheck (i,issuer,bidOwner,bidId) = if (if (if ((toBase58String(i.caller.bytes) == issuer)) | |
297 | - | then (bidOwner != "") | |
298 | - | else false) | |
299 | - | then (bidId != "") | |
300 | - | else false) | |
301 | - | then true | |
302 | - | else false | |
303 | 295 | ||
304 | 296 | ||
305 | 297 | func getArtData (i,issuer,artId,isBid) = { | |
306 | 298 | let callerIsIssuer = (toBase58String(i.caller.bytes) == issuer) | |
307 | 299 | let totalNFT = getIntegerByKey("total_nft_issued") | |
308 | 300 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
309 | 301 | if ((artworkName == "")) | |
310 | 302 | then throw("Art doesn't exist") | |
311 | 303 | else { | |
312 | 304 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
313 | 305 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
314 | 306 | let artworkPrice = valueOrElse(getIntegerByKey(keyPrice(issuer, artId)), (currentCertificationPrice * 2)) | |
315 | 307 | let priceAssetId = if (callerIsIssuer) | |
316 | 308 | then toBase58String(USDNAssetId) | |
317 | 309 | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
318 | 310 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
319 | 311 | if (if (if (!(isBid)) | |
320 | 312 | then !(callerIsIssuer) | |
321 | 313 | else false) | |
322 | 314 | then if (if ((0 >= artworkPrice)) | |
323 | 315 | then true | |
324 | 316 | else !(isOnSale)) | |
325 | 317 | then true | |
326 | 318 | else (0 >= maxCanSell) | |
327 | 319 | else false) | |
328 | 320 | then throw("Art not for sale") | |
329 | 321 | else if (if (if (!(isBid)) | |
330 | 322 | then callerIsIssuer | |
331 | 323 | else false) | |
332 | 324 | then (0 >= maxCanSell) | |
333 | 325 | else false) | |
334 | 326 | then throw("Max issuable not set") | |
335 | 327 | else $Tuple7(totalNFT, artworkName, amountSold, artworkPrice, priceAssetId, maxCanSell, isOnSale) | |
336 | 328 | } | |
337 | 329 | } | |
338 | 330 | ||
339 | 331 | ||
340 | 332 | func getBidData (i,caller,issuer,artId,bidOwner,bidId,priceAssetId,artworkPrice,isBid) = { | |
341 | 333 | let checkUser = validateUser(issuer) | |
342 | 334 | if (if (isBid) | |
343 | 335 | then (checkUser != "") | |
344 | 336 | else false) | |
345 | 337 | then throw(checkUser) | |
346 | 338 | else { | |
347 | 339 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
348 | 340 | let t01351913648 = if (isBid) | |
349 | 341 | then getPriceAssetIdFromBid(bidDataKey) | |
350 | 342 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
351 | 343 | let amount = t01351913648._1 | |
352 | 344 | let assetId = t01351913648._2 | |
353 | 345 | $Tuple3(bidDataKey, amount, assetId) | |
354 | 346 | } | |
355 | 347 | } | |
356 | 348 | ||
357 | 349 | ||
358 | 350 | func getCommissionData (issuer,assetId,amount,amountSold,maxCanSell) = { | |
359 | 351 | let isWhitelisted = checkWhitelist(issuer) | |
360 | 352 | let cut = if ((isWhitelisted > height)) | |
361 | 353 | then 0 | |
362 | 354 | else if ((assetId == USDNAssetId)) | |
363 | 355 | then USDNFirstSellCut | |
364 | 356 | else throw("Only USDN is accepted!") | |
365 | 357 | let amountForSconex = fraction(amount, cut, 1000) | |
366 | 358 | let amountForCreator = (amount - amountForSconex) | |
367 | 359 | if ((amountSold == maxCanSell)) | |
368 | 360 | then throw("Art sold out") | |
369 | 361 | else { | |
370 | 362 | let newAmountSold = (amountSold + 1) | |
371 | 363 | $Tuple3(amountForSconex, amountForCreator, newAmountSold) | |
372 | 364 | } | |
373 | 365 | } | |
374 | 366 | ||
375 | 367 | ||
376 | 368 | func getIssueData (issuer,artId,artworkName,newAmountSold,maxCanSell,totalNFT,caller,bidOwner,bidId,i,isOnSale) = { | |
377 | 369 | let issueMeta = ((((((((("Creator: " + issuer) + ",ArtID: ") + artId) + ",Artwork name: ") + artworkName) + ",Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
378 | 370 | let sellStatus = if (if ((newAmountSold == maxCanSell)) | |
379 | 371 | then true | |
380 | 372 | else !(isOnSale)) | |
381 | 373 | then false | |
382 | 374 | else true | |
383 | 375 | let receiveNFT = if ((bidOwner != "")) | |
384 | 376 | then addressFromStringValue(bidOwner) | |
385 | 377 | else i.caller | |
386 | 378 | $Tuple3(sellStatus, receiveNFT, issueMeta) | |
387 | 379 | } | |
388 | 380 | ||
389 | 381 | ||
390 | 382 | func calculateRarity (mintIndex) = if ((4 > mintIndex)) | |
391 | 383 | then "SSR" | |
392 | 384 | else if ((11 > mintIndex)) | |
393 | 385 | then "SR" | |
394 | 386 | else if ((101 > mintIndex)) | |
395 | 387 | then "R" | |
396 | 388 | else "N" | |
397 | 389 | ||
398 | 390 | ||
399 | 391 | func getBidKeyVal (assetId,bidDataKey,date) = { | |
400 | 392 | let assetIdBid = if (!(isDefined(assetId))) | |
401 | 393 | then throw("Only USDN is accepted") | |
402 | 394 | else toBase58String(value(assetId)) | |
403 | 395 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
404 | 396 | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
405 | 397 | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
406 | 398 | $Tuple3(assetIdBid, bidDelOld, bidUpdate) | |
407 | 399 | } | |
408 | 400 | ||
409 | 401 | ||
410 | 402 | func buyMint (i,artId,issuer,bidId,bidOwner,isBid) = { | |
411 | 403 | let callerData = idCallerDate(i) | |
412 | 404 | let id = callerData._1 | |
413 | 405 | let caller = callerData._2 | |
414 | 406 | let date = callerData._3 | |
415 | 407 | let artData = getArtData(i, issuer, artId, isBid) | |
416 | 408 | let totalNFT = artData._1 | |
417 | 409 | let artworkName = artData._2 | |
418 | 410 | let amountSold = artData._3 | |
419 | 411 | let artworkPrice = artData._4 | |
420 | 412 | let priceAssetId = artData._5 | |
421 | 413 | let maxCanSell = artData._6 | |
422 | 414 | let isOnSale = artData._7 | |
423 | 415 | let bidData = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
424 | 416 | let bidDataKey = bidData._1 | |
425 | 417 | let amount = bidData._2 | |
426 | 418 | let assetId = bidData._3 | |
427 | 419 | let commisionData = getCommissionData(issuer, value(assetId), amount, amountSold, maxCanSell) | |
428 | 420 | let amountForSconex = commisionData._1 | |
429 | 421 | let amountForCreator = commisionData._2 | |
430 | 422 | let newAmountSold = commisionData._3 | |
431 | 423 | let issuerData = getIssueData(issuer, artId, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i, isOnSale) | |
432 | 424 | let sellStatus = issuerData._1 | |
433 | 425 | let receiveNFT = issuerData._2 | |
434 | 426 | let issueMeta = issuerData._3 | |
435 | 427 | let idNFTInvoke = invoke(this, "mintNft", [totalNFT, issueMeta, toString(receiveNFT)], nil) | |
436 | 428 | if ((idNFTInvoke == idNFTInvoke)) | |
437 | 429 | then { | |
438 | 430 | let idNFT = match idNFTInvoke { | |
439 | 431 | case r: String => | |
440 | 432 | r | |
441 | 433 | case _ => | |
442 | 434 | throw("Incorrect invoke result") | |
443 | 435 | } | |
444 | 436 | let bidKeyValue = getBidKeyVal(assetId, bidDataKey, date) | |
445 | 437 | let assetIdBid = bidKeyValue._1 | |
446 | 438 | let bidDelOld = bidKeyValue._2 | |
447 | 439 | let bidUpdate = bidKeyValue._3 | |
448 | 440 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
449 | 441 | let rarity = calculateRarity(newAmountSold) | |
450 | 442 | let soldValue = if (!(isBid)) | |
451 | 443 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + idNFT) | |
452 | 444 | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + idNFT) | |
453 | 445 | let soldData = StringEntry(soldKey, soldValue) | |
454 | 446 | let buyRes = [IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + idNFT), soldKey), StringEntry(("nft_rarity_" + idNFT), rarity), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyOnSale(issuer, artId), sellStatus), ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSconex, assetId), StringEntry(KeyNftIssuer(idNFT), issuer), StringEntry(KeyNftArtId(idNFT), artId)] | |
455 | 447 | let res = invoke(addressFromStringValue(certDapp), "createCert", [toString(receiveNFT), idNFT, issuer], nil) | |
456 | 448 | if ((res == res)) | |
457 | 449 | then if (isBid) | |
458 | 450 | then (((buyRes :+ soldData) :+ bidUpdate) :+ bidDelOld) | |
459 | 451 | else soldData :: buyRes | |
460 | 452 | else throw("Strict value is not equal to itself.") | |
461 | 453 | } | |
462 | 454 | else throw("Strict value is not equal to itself.") | |
463 | 455 | } | |
464 | 456 | ||
465 | 457 | ||
466 | 458 | func setBidNonTraditional (i,artId,issuer) = { | |
467 | 459 | let t02770927747 = idCallerDate(i) | |
468 | 460 | let id = t02770927747._1 | |
469 | 461 | let caller = t02770927747._2 | |
470 | 462 | let date = t02770927747._3 | |
471 | 463 | let t02775227788 = isPayment(i) | |
472 | 464 | let payment = t02775227788._1 | |
473 | 465 | let amount = t02775227788._2 | |
474 | 466 | let assetId = if (!(isDefined(payment.assetId))) | |
475 | 467 | then throw("Only USDN is accepted!") | |
476 | 468 | else toBase58String(value(payment.assetId)) | |
477 | 469 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
478 | 470 | let minArtworkPrice = valueOrElse(getIntegerByKey(keyPrice(issuer, artId)), (currentCertificationPrice * 2)) | |
479 | 471 | if (!(acceptedAssetIds(assetId))) | |
480 | 472 | then throw("asset not accepted") | |
481 | 473 | else { | |
482 | 474 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
483 | 475 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
484 | 476 | if ((0 >= maxCanSell)) | |
485 | 477 | then throw("No max edition set for this artwork") | |
486 | 478 | else if ((amountSold >= maxCanSell)) | |
487 | 479 | then throw("Sold out, you cannot bid") | |
488 | 480 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))] | |
489 | 481 | } | |
490 | 482 | } | |
491 | 483 | ||
492 | 484 | ||
493 | 485 | func setBidTraditional (i,artId,issuer) = { | |
494 | 486 | let endHeight = getIntegerByKey(keyEndHeight(issuer, artId)) | |
495 | 487 | let highestBid = getAmountHighestBidByArtId(artId) | |
496 | 488 | if ((height > endHeight)) | |
497 | 489 | then throw("This auction is finished already!") | |
498 | 490 | else { | |
499 | 491 | let callderData = idCallerDate(i) | |
500 | 492 | let id = callderData._1 | |
501 | 493 | let caller = callderData._2 | |
502 | 494 | let date = callderData._3 | |
503 | 495 | let isPaymentVar = isPayment(i) | |
504 | 496 | let payment = isPaymentVar._1 | |
505 | 497 | let amount = isPaymentVar._2 | |
506 | 498 | if ((highestBid >= amount)) | |
507 | 499 | then throw(("Please place a bid higher than: " + toString(highestBid))) | |
508 | 500 | else { | |
509 | 501 | let assetId = if (!(isDefined(payment.assetId))) | |
510 | 502 | then throw("Only USDN is accepted!") | |
511 | 503 | else toBase58String(value(payment.assetId)) | |
512 | 504 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
513 | 505 | let minArtworkPrice = valueOrElse(getIntegerByKey(keyPrice(issuer, artId)), (currentCertificationPrice * 2)) | |
514 | 506 | if (!(acceptedAssetIds(assetId))) | |
515 | 507 | then throw("asset not accepted") | |
516 | 508 | else if ((minArtworkPrice > amount)) | |
517 | 509 | then throw("Bid is below min price!") | |
518 | 510 | else { | |
519 | 511 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
520 | 512 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
521 | 513 | if ((0 >= maxCanSell)) | |
522 | 514 | then throw("No max edition set for this artwork") | |
523 | 515 | else if ((amountSold >= maxCanSell)) | |
524 | 516 | then throw("Sold out, you cannot bid") | |
525 | 517 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1)), StringEntry(keyHighestBidBidId(artId), toBase58String(i.transactionId)), IntegerEntry(keyBidId(toBase58String(i.transactionId)), amount)] | |
526 | 518 | } | |
527 | 519 | } | |
528 | 520 | } | |
529 | 521 | } | |
530 | 522 | ||
531 | 523 | ||
532 | 524 | func acceptBidNonTraditional (i,artId,issuer,bidId,bidOwner) = { | |
533 | 525 | let caller = toBase58String(i.caller.bytes) | |
534 | 526 | if ((caller != issuer)) | |
535 | 527 | then throw("You cannot do this action") | |
536 | 528 | else buyMint(i, artId, issuer, bidId, bidOwner, true) | |
537 | 529 | } | |
538 | 530 | ||
539 | 531 | ||
540 | 532 | func restartAuction (artId,issuer) = { | |
541 | 533 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
542 | 534 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
543 | 535 | let oldEndHeight = getIntegerByKey(keyEndHeight(issuer, artId)) | |
544 | 536 | let duration = getIntegerByKey(keyDuration(issuer, artId)) | |
545 | 537 | let endHeight = (duration + height) | |
546 | 538 | if ((height > oldEndHeight)) | |
547 | 539 | then if ((amountSold == maxCanSell)) | |
548 | 540 | then throw("Can't restart auction, max amount sold") | |
549 | 541 | else [IntegerEntry(keyEndHeight(issuer, artId), endHeight), DeleteEntry(keyHighestBidBidId(artId))] | |
550 | 542 | else throw("Previous auction isn't completed yet") | |
551 | 543 | } | |
552 | 544 | ||
553 | 545 | ||
554 | 546 | func acceptBidTraditional (i,artId,issuer,bidId,bidOwner) = { | |
555 | 547 | let endHeight = getIntegerByKey(keyEndHeight(issuer, artId)) | |
556 | 548 | let highestBidId = getStringByKey(keyHighestBidBidId(artId)) | |
557 | 549 | if ((height > endHeight)) | |
558 | 550 | then if ((bidId == highestBidId)) | |
559 | 551 | then { | |
560 | 552 | let buyMintData = buyMint(i, artId, issuer, bidId, bidOwner, true) | |
561 | 553 | let restartAuctionData = restartAuction(artId, issuer) | |
562 | 554 | (restartAuctionData ++ buyMintData) | |
563 | 555 | } | |
564 | 556 | else throw("This is not the winning bid!") | |
565 | 557 | else throw("This auction is not yet finished!") | |
566 | 558 | } | |
567 | 559 | ||
568 | 560 | ||
569 | 561 | func cancelBidImpl (i,artId,issuer,bidId) = { | |
570 | 562 | let t02894229094 = idCallerDate(i) | |
571 | 563 | let id = t02894229094._1 | |
572 | 564 | let caller = t02894229094._2 | |
573 | 565 | let date = t02894229094._3 | |
574 | 566 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
575 | 567 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
576 | 568 | let bidData = getStringByKeyOrError((bidDataKey + "_OPEN"), "Bid not found") | |
577 | 569 | let bidDataArr = split(bidData, "_") | |
578 | 570 | let assetId = getBidAssetId(bidDataArr[0]) | |
579 | 571 | let bidStatus = "CANCELED" | |
580 | 572 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
581 | 573 | } | |
582 | 574 | ||
583 | 575 | ||
584 | - | func collectionProcess (collection,subcollection,caller,artId) = if ((collection == "")) | |
585 | - | then throw("Collections can not be empty!") | |
586 | - | else if ((subcollection == "")) | |
587 | - | then [StringEntry(keyCollection(caller, artId), collection)] | |
588 | - | else [StringEntry(keyCollection(caller, artId), collection), StringEntry(keySubcollection(caller, artId), subcollection)] | |
589 | - | ||
590 | - | ||
591 | 576 | func cancelBidImplTraditional (i,artId,issuer,bidId) = { | |
592 | 577 | let t02894229094 = idCallerDate(i) | |
593 | 578 | let id = t02894229094._1 | |
594 | 579 | let caller = t02894229094._2 | |
595 | 580 | let date = t02894229094._3 | |
596 | 581 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
597 | 582 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
598 | 583 | let bidData = getStringByKeyOrError((bidDataKey + "_OPEN"), "Bid not found") | |
599 | 584 | let bidDataArr = split(bidData, "_") | |
600 | 585 | let assetId = getBidAssetId(bidDataArr[0]) | |
601 | 586 | let bidStatus = "CANCELED" | |
602 | 587 | let bidAmount = parseIntValue(bidDataArr[1]) | |
603 | 588 | let highestBidId = getStringByKey(keyHighestBidBidId(artId)) | |
604 | 589 | if ((bidId == highestBidId)) | |
605 | 590 | then throw("You can't cancel the highest bid!") | |
606 | 591 | else [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), bidAmount, assetId)] | |
607 | 592 | } | |
608 | 593 | ||
609 | 594 | ||
610 | 595 | @Callable(i) | |
611 | 596 | func mintNft (totalNFT,issueMeta,receiveNFT) = if ((i.caller == this)) | |
612 | 597 | then { | |
613 | 598 | let receiveNFTAddy = Address(fromBase58String(receiveNFT)) | |
614 | 599 | let issueNFT = Issue(("SCONEX_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
615 | 600 | let idNFT = calculateAssetId(issueNFT) | |
616 | 601 | $Tuple2([issueNFT, ScriptTransfer(receiveNFTAddy, 1, idNFT)], toBase58String(idNFT)) | |
617 | 602 | } | |
618 | 603 | else throw("Only the dApp can mint NFT's") | |
619 | 604 | ||
620 | 605 | ||
621 | 606 | ||
622 | 607 | @Callable(i) | |
623 | - | func updateCollection (artId,collection,subcollection) = { | |
624 | - | let caller = toBase58String(i.caller.bytes) | |
625 | - | let saleKey = keyOnSale(artId, caller) | |
626 | - | if (getBooleanByKey(saleKey)) | |
627 | - | then throw("Can not update collection from artwork for sale") | |
628 | - | else collectionProcess(collection, subcollection, caller, artId) | |
629 | - | } | |
630 | - | ||
631 | - | ||
632 | - | ||
633 | - | @Callable(i) | |
634 | 608 | func addArtwork (sha256Hash,name,description,tags,type,cidDisplay,entitlement,preview,collection,subcollection) = { | |
635 | 609 | let t01774017781 = idCallerDate(i) | |
636 | 610 | let artId = t01774017781._1 | |
637 | 611 | let caller = t01774017781._2 | |
638 | 612 | let date = t01774017781._3 | |
639 | 613 | if (containsElement(types, type)) | |
640 | 614 | then { | |
641 | 615 | let validateArtwork = validateArtworkData(caller, cidDisplay, name, description, tags) | |
642 | 616 | if ((validateArtwork != "")) | |
643 | 617 | then throw("Something went wrong!") | |
644 | 618 | else { | |
645 | 619 | let t01817018212 = validatePayment(i) | |
646 | 620 | let amount = t01817018212._1 | |
647 | 621 | let assetId = t01817018212._2 | |
648 | 622 | if (!(isDefined(amount))) | |
649 | 623 | then throw("Something went wrong") | |
650 | 624 | else { | |
651 | 625 | let previewData = if (containsElement(Previewtypes, type)) | |
652 | 626 | then [StringEntry(keyPreviewCid(caller, artId), preview)] | |
653 | 627 | else nil | |
654 | - | let collectionData = collectionProcess(collection, subcollection, caller, artId) | |
655 | - | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
656 | - | if ((entryExist != "")) | |
657 | - | then throw("You already added it") | |
658 | - | else { | |
659 | - | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
660 | - | if ((hashExist != "")) | |
661 | - | then throw("This hash is already registered") | |
662 | - | else ((previewData ++ collectionData) ++ [StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyEntitlement(caller, artId), entitlement), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]) | |
628 | + | let invokeCollectionCreate = invoke(addressFromStringValue(collectionsDapp), "collectionProcess", [collection, subcollection, caller, artId], nil) | |
629 | + | if ((invokeCollectionCreate == invokeCollectionCreate)) | |
630 | + | then { | |
631 | + | let idCollection = match invokeCollectionCreate { | |
632 | + | case r: String => | |
633 | + | r | |
634 | + | case _ => | |
635 | + | throw("Incorrect invoke result") | |
663 | 636 | } | |
637 | + | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
638 | + | if ((entryExist != "")) | |
639 | + | then throw("You already added it") | |
640 | + | else { | |
641 | + | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
642 | + | if ((hashExist != "")) | |
643 | + | then throw("This hash is already registered") | |
644 | + | else (previewData ++ [StringEntry(keyCollection(caller, artId), idCollection), StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyEntitlement(caller, artId), entitlement), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)]) | |
645 | + | } | |
646 | + | } | |
647 | + | else throw("Strict value is not equal to itself.") | |
664 | 648 | } | |
665 | 649 | } | |
666 | 650 | } | |
667 | 651 | else throw("Unknown type") | |
668 | 652 | } | |
669 | 653 | ||
670 | 654 | ||
671 | 655 | ||
672 | 656 | @Callable(i) | |
673 | 657 | func sellArtwork (artId,price,maxMint,assetId,auctionType,duration,royalty) = { | |
674 | 658 | let t02571425747 = idCallerDate(i) | |
675 | 659 | let id = t02571425747._1 | |
676 | 660 | let caller = t02571425747._2 | |
677 | 661 | let artworkName = getStringByKey(keyName(caller, artId)) | |
678 | 662 | if ((0 > royalty)) | |
679 | 663 | then throw("Royalty percentage should be above 0") | |
680 | 664 | else if ((royalty > 85)) | |
681 | 665 | then throw("Royalty percentage should be below 85") | |
682 | 666 | else if (!(containsElement([auctionType1, auctionType2, auctionType3], auctionType))) | |
683 | 667 | then throw("We don't know this auction type") | |
684 | 668 | else if ((artworkName == "")) | |
685 | 669 | then throw("This art doesn't match your account") | |
686 | 670 | else { | |
687 | 671 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
688 | 672 | if (!(acceptedAssetIds(assetId))) | |
689 | 673 | then throw("Something went wrong!") | |
690 | 674 | else if (!(validateMinSell(assetId, price))) | |
691 | 675 | then throw("Something went wrong!") | |
692 | 676 | else { | |
693 | 677 | let checkUser = validateUser(caller) | |
694 | 678 | if ((checkUser != "")) | |
695 | 679 | then throw(checkUser) | |
696 | 680 | else { | |
697 | 681 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
698 | 682 | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
699 | 683 | if ((maxMint > 10000)) | |
700 | 684 | then throw("10000 editions max per artwork") | |
701 | 685 | else if (if ((amountSold != 0)) | |
702 | 686 | then (amountSold == maxCanSell) | |
703 | 687 | else false) | |
704 | 688 | then throw("Max edition reached.") | |
705 | 689 | else if (if ((amountSold > 0)) | |
706 | 690 | then (maxCanSell != maxMint) | |
707 | 691 | else false) | |
708 | 692 | then throw("Cannot change maximum issuable anymore") | |
709 | 693 | else if (if ((bidNbr > 0)) | |
710 | 694 | then (maxCanSell != maxMint) | |
711 | 695 | else false) | |
712 | 696 | then throw("Cannot change maximum issuable with active orders") | |
713 | 697 | else { | |
714 | 698 | let sellStatus = if (if ((price > 0)) | |
715 | 699 | then (maxMint > 0) | |
716 | 700 | else false) | |
717 | 701 | then true | |
718 | 702 | else false | |
719 | 703 | let endHeight = (duration + height) | |
720 | 704 | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), IntegerEntry(keyDuration(caller, artId), duration), IntegerEntry(keyEndHeight(caller, artId), endHeight), StringEntry(keyAssetIdAccepted(caller, artId), assetId), StringEntry(keyAuctionType(caller, artId), auctionType), IntegerEntry(keyRoyalty(caller, artId), royalty)] | |
721 | 705 | } | |
722 | 706 | } | |
723 | 707 | } | |
724 | 708 | } | |
725 | 709 | } | |
726 | 710 | ||
727 | 711 | ||
728 | 712 | ||
729 | 713 | @Callable(i) | |
730 | 714 | func buyArtwork (artId,issuer) = { | |
731 | 715 | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
732 | 716 | if ((auctionType == auctionType3)) | |
733 | 717 | then buyMint(i, artId, issuer, "", "", false) | |
734 | 718 | else throw("Direct buy only allowed when no auction type is set!") | |
735 | 719 | } | |
736 | 720 | ||
737 | 721 | ||
738 | 722 | ||
739 | 723 | @Callable(i) | |
740 | 724 | func updateTags (artist,artId,tags) = { | |
741 | 725 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
742 | 726 | if (containsElement(owners, caller)) | |
743 | 727 | then if ((size(split(tags, ",")) > 5)) | |
744 | 728 | then throw("5 tags max.") | |
745 | 729 | else { | |
746 | 730 | let tagsOld = getStringByKeyOrError(keyTags(artist, artId), "No tags created with this key, so can't update!") | |
747 | 731 | if ((tags == tagsOld)) | |
748 | 732 | then throw("Tags are the same as old tags!") | |
749 | 733 | else [StringEntry(keyTags(artist, artId), tags)] | |
750 | 734 | } | |
751 | 735 | else throw("no") | |
752 | 736 | } | |
753 | 737 | ||
754 | 738 | ||
755 | 739 | ||
756 | 740 | @Callable(i) | |
757 | 741 | func deleteEntry (entry) = { | |
758 | 742 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
759 | 743 | if (containsElement(owners, caller)) | |
760 | 744 | then [DeleteEntry(entry)] | |
761 | 745 | else throw("no") | |
762 | 746 | } | |
763 | 747 | ||
764 | 748 | ||
765 | 749 | ||
766 | 750 | @Callable(i) | |
767 | 751 | func setBid (artId,issuer) = { | |
768 | 752 | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
769 | 753 | if ((auctionType == auctionType1)) | |
770 | 754 | then setBidNonTraditional(i, artId, issuer) | |
771 | 755 | else if ((auctionType == auctionType2)) | |
772 | 756 | then setBidTraditional(i, artId, issuer) | |
773 | 757 | else throw((("Unknown auction type :" + auctionType) + ", please contact the admins")) | |
774 | 758 | } | |
775 | 759 | ||
776 | 760 | ||
777 | 761 | ||
778 | 762 | @Callable(i) | |
779 | 763 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
780 | 764 | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
781 | 765 | if ((auctionType == auctionType1)) | |
782 | 766 | then acceptBidNonTraditional(i, artId, issuer, bidId, bidOwner) | |
783 | 767 | else if ((auctionType == auctionType2)) | |
784 | 768 | then acceptBidTraditional(i, artId, issuer, bidId, bidOwner) | |
785 | 769 | else throw((("Unknown auction type :" + auctionType) + ", please contact the admins")) | |
786 | 770 | } | |
787 | 771 | ||
788 | 772 | ||
789 | 773 | ||
790 | 774 | @Callable(i) | |
791 | 775 | func cancelBid (artId,issuer,bidId) = { | |
792 | 776 | let auctionType = getStringByKey(keyAuctionType(issuer, artId)) | |
793 | 777 | if ((auctionType == auctionType1)) | |
794 | 778 | then cancelBidImpl(i, artId, issuer, bidId) | |
795 | 779 | else cancelBidImplTraditional(i, artId, issuer, bidId) | |
796 | 780 | } | |
797 | 781 | ||
798 | 782 | ||
783 | + | ||
784 | + | @Callable(i) | |
785 | + | func initDapp (dappKey) = if ((i.caller != this)) | |
786 | + | then throw("You cannot do this action") | |
787 | + | else if ((collectionsDapp != "")) | |
788 | + | then throw("Collections dapp already set, you can't override!") | |
789 | + | else [StringEntry(collectionsDapp, dappKey)] | |
790 | + | ||
791 | + |
github/deemru/w8io/026f985 94.75 ms ◑