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