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