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