tx · ArC4qAxdoZEvnSL2dUtxgLw1iiJJ1MhzUVLFiM4N19cU 3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA: -0.01000000 Waves 2021.08.06 16:21 [1646521] smart account 3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA > SELF 0.00000000 Waves
{ "type": 13, "id": "ArC4qAxdoZEvnSL2dUtxgLw1iiJJ1MhzUVLFiM4N19cU", "fee": 1000000, "feeAssetId": null, "timestamp": 1628256095148, "version": 2, "chainId": 84, "sender": "3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA", "senderPublicKey": "9abKuN1XmLjjire2feZH26PmcEWhEXxiHToWSmii3Gn2", "proofs": [ "27ekKzRYjk4je1UU5auEw4E73TLXAXWraQFCHS9kkYt4tGMHQzZMdfZQTRLHjAmcutV1besYGHXuQku47c97vBn9" ], "script": "base64:AAIFAAAAAAAACggIAhIICgYICAgICAgSCAoGCAEBCAgBEgQKAggIEgMKAQgSBAoCCAgSBgoECAgICBIFCgMICAgaDgoCYTESCHVuaXRUZXN0Gg8KAmEyEglvcmFjbGVGZWUaEQoCYTMSC2ZlZVJlY2VpdmVyGg4KAmE0Egh1c2VyRGFwcBoTCgJhNRINd2hpdGVsaXN0RGFwcBoTCgJhNhINc2NvbmV4QXNzZXRJZBoLCgJhNxIFb3duZXIaDwoCYTgSCXNjb25leEN1dBoRCgJhORILZGFwcFJ1bm5pbmcaFAoCYjESDm1haW50ZW5hbmNlTVNHGhMKAmIyEg11c2VyU3VzcGVuZGVkGhEKAmIzEgt1c2VyUmVtb3ZlZBoWCgJiNBIQdXNlclVucmVnaXN0ZXJlZBoRCgJiNRILdXNlckFsbG93ZWQaEgoCYjYSDGF1Y3Rpb25UeXBlMRoSCgJiNxIMYXVjdGlvblR5cGUyGhQKAmI4Eg5nZXRTdHJpbmdCeUtleRoJCgJiORIDa2V5Gh8KAmMxEhlnZXRJbnRlZ2VyQnlLZXlGcm9tT3JhY2xlGhUKAmMyEg9nZ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AAAAAmk4AgAAAAFfBQAAAAJjNgIAAAABXwUAAAACajEEAAAAAmkyCQEAAAACYjgAAAABCQABLAAAAAIFAAAAAmkxAgAAAAVfT1BFTgMJAAAAAAAAAgUAAAACaTICAAAAAAkAAAIAAAABAgAAAA1CaWQgbm90IGZvdW5kBAAAAAJpMwkABLUAAAACBQAAAAJpMgIAAAABXwQAAAACZzgJAQAAAAJoOAAAAAEJAAGRAAAAAgUAAAACaTMAAAAAAAAAAAAEAAAAAnAyAgAAAAhDQU5DRUxFRAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAAAmkxAgAAAAVfT1BFTgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAACaTECAAAAAV8FAAAAAnAyCQABLAAAAAIJAAEsAAAAAgUAAAACaTICAAAAAV8JAAGkAAAAAQUAAAACbDcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAASY3VycmVudF9iaWRhbW91bnRfBQAAAAJjOAkAAGUAAAACBQAAAAJvNgAAAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAACYzYJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAAJpMwAAAAAAAAAAAQUAAAACZzgFAAAAA25pbAAAAADjheYW", "height": 1646521, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AmUd1jZiA5mjCRknAC2JREW6mvosmKU3bKDoqUTRnbyn Next: 8J3izonnqC4qPvjRCdPPxh4YFohpE6cxL6Wvv4Q9B6Ex Diff:
Old | New | Differences | |
---|---|---|---|
403 | 403 | if ((entryExist != "")) | |
404 | 404 | then throw("You already added it") | |
405 | 405 | else { | |
406 | - | let hashExist = getStringByKey(keyOwnerByHash( | |
406 | + | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
407 | 407 | if ((hashExist != "")) | |
408 | 408 | then throw("Hash already registered") | |
409 | 409 | 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)] |
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 sconexCut = 7 | |
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 keyAuctionType (caller,artId) = ((("art_auctiontype_" + artId) + "_") + caller) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(sconexAssetId))) | |
103 | 103 | ||
104 | 104 | func validateString (str,max) = if ((size(str) == 0)) | |
105 | 105 | then throw("Field cannot be is empty") | |
106 | 106 | else if ((size(str) > max)) | |
107 | 107 | then throw((str + " is too long")) | |
108 | 108 | else true | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func validateUser (caller) = { | |
112 | 112 | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
113 | 113 | if (if ((userStatus == userUnregistered)) | |
114 | 114 | then true | |
115 | 115 | else (userStatus == userAllowed)) | |
116 | 116 | then "Register this account first with 'Account' tab" | |
117 | 117 | else if ((userStatus == userSuspended)) | |
118 | 118 | then "Account suspended" | |
119 | 119 | else if ((userStatus == userRemoved)) | |
120 | 120 | then "Account removed" | |
121 | 121 | else "" | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func validateArtworkData (caller,cidDisplay,name,description,tags) = { | |
126 | 126 | let checkUser = validateUser(caller) | |
127 | 127 | if ((checkUser != "")) | |
128 | 128 | then throw(checkUser) | |
129 | 129 | else if ((size(cidDisplay) == 0)) | |
130 | 130 | then throw("Display CID cannot be empty") | |
131 | 131 | else if (!(validateString(name, 100))) | |
132 | 132 | then throw("100 Char. max name") | |
133 | 133 | else if (!(validateString(description, 1000))) | |
134 | 134 | then throw("1000 Char. max description") | |
135 | 135 | else if ((size(split(tags, ",")) > 5)) | |
136 | 136 | then throw("5 tags max.") | |
137 | 137 | else "" | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func isPayment (i) = if ((size(i.payments) == 0)) | |
142 | 142 | then throw("No payment attached") | |
143 | 143 | else { | |
144 | 144 | let payment = value(i.payments[0]) | |
145 | 145 | let amount = value(payment.amount) | |
146 | 146 | $Tuple2(payment, amount) | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func validatePayment (i) = { | |
151 | 151 | let t089829018 = isPayment(i) | |
152 | 152 | let payment = t089829018._1 | |
153 | 153 | let amount = t089829018._2 | |
154 | 154 | let assetId = if (if (isDefined(payment.assetId)) | |
155 | 155 | then (payment.assetId == sconexAssetId) | |
156 | 156 | else false) | |
157 | 157 | then payment.assetId | |
158 | 158 | else throw("Only Sconex token accepted as transaction fee") | |
159 | 159 | if ((amount != currentCertificationPrice)) | |
160 | 160 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
161 | 161 | else $Tuple2(amount, assetId) | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
166 | 166 | let t096119647 = isPayment(i) | |
167 | 167 | let payment = t096119647._1 | |
168 | 168 | let amount = t096119647._2 | |
169 | 169 | let assetId = if (!(isDefined(payment.assetId))) | |
170 | 170 | then throw("Wrong asset id") | |
171 | 171 | else if (if ((size(priceAssetId) > 0)) | |
172 | 172 | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
173 | 173 | else false) | |
174 | 174 | then payment.assetId | |
175 | 175 | else throw("Wrong asset id") | |
176 | 176 | if (if ((assetId == unit)) | |
177 | 177 | then (priceAssetId != "") | |
178 | 178 | else false) | |
179 | 179 | then throw("Wrong asset id") | |
180 | 180 | else if ((artworkPrice != amount)) | |
181 | 181 | then throw("Payment don't match") | |
182 | 182 | else $Tuple2(amount, assetId) | |
183 | 183 | } | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func acceptedAssetIds (assetId) = if ((assetId != toBase58String(sconexAssetId))) | |
187 | 187 | then throw("Only Sconex accepted") | |
188 | 188 | else true | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func validateMinSell (assetId,price) = { | |
192 | 192 | let minSellSconex = if (unitTest) | |
193 | 193 | then 1 | |
194 | 194 | else (currentCertificationPrice * 2) | |
195 | 195 | if (if (if ((assetId == toBase58String(sconexAssetId))) | |
196 | 196 | then (minSellSconex > price) | |
197 | 197 | else false) | |
198 | 198 | then (price != 0) | |
199 | 199 | else false) | |
200 | 200 | then throw("Wrong minimum sell price") | |
201 | 201 | else true | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
206 | 206 | then throw("Only sconex is accepted!") | |
207 | 207 | else fromBase58String(assetId) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func getPriceAssetIdFromBid (bidDataKey) = { | |
211 | 211 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
212 | 212 | if ((bidData == "")) | |
213 | 213 | then throw("Bid not found") | |
214 | 214 | else { | |
215 | 215 | let bidDataArr = split(bidData, "_") | |
216 | 216 | let bidAmount = parseIntValue(bidDataArr[1]) | |
217 | 217 | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
218 | 218 | if ((0 >= bidAmount)) | |
219 | 219 | then throw("Wrong amount") | |
220 | 220 | else $Tuple2(bidAmount, bidAssetId) | |
221 | 221 | } | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func idCallerDate (i) = if (!(dappRunning)) | |
226 | 226 | then throw(maintenanceMSG) | |
227 | 227 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func isBidCheck (i,issuer,bidOwner,bidId) = if (if (if ((toBase58String(i.caller.bytes) == issuer)) | |
231 | 231 | then (bidOwner != "") | |
232 | 232 | else false) | |
233 | 233 | then (bidId != "") | |
234 | 234 | else false) | |
235 | 235 | then true | |
236 | 236 | else false | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func getArtData (i,issuer,artId,isBid) = { | |
240 | 240 | let callerIsIssuer = (toBase58String(i.caller.bytes) == issuer) | |
241 | 241 | let totalNFT = getIntegerByKey("total_nft_issued") | |
242 | 242 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
243 | 243 | if ((artworkName == "")) | |
244 | 244 | then throw("Art doesn't exist") | |
245 | 245 | else { | |
246 | 246 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
247 | 247 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
248 | 248 | let artworkPrice = if (callerIsIssuer) | |
249 | 249 | then (currentCertificationPrice * 2) | |
250 | 250 | else getIntegerByKey(keyPrice(issuer, artId)) | |
251 | 251 | let priceAssetId = if (callerIsIssuer) | |
252 | 252 | then toBase58String(sconexAssetId) | |
253 | 253 | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
254 | 254 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
255 | 255 | if (if (if (!(isBid)) | |
256 | 256 | then !(callerIsIssuer) | |
257 | 257 | else false) | |
258 | 258 | then if (if ((0 >= artworkPrice)) | |
259 | 259 | then true | |
260 | 260 | else !(isOnSale)) | |
261 | 261 | then true | |
262 | 262 | else (0 >= maxCanSell) | |
263 | 263 | else false) | |
264 | 264 | then throw("Art not for sale") | |
265 | 265 | else if (if (if (!(isBid)) | |
266 | 266 | then callerIsIssuer | |
267 | 267 | else false) | |
268 | 268 | then (0 >= maxCanSell) | |
269 | 269 | else false) | |
270 | 270 | then throw("Max issuable not set") | |
271 | 271 | else $Tuple7(totalNFT, artworkName, amountSold, artworkPrice, priceAssetId, maxCanSell, isOnSale) | |
272 | 272 | } | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func getBidData (i,caller,issuer,artId,bidOwner,bidId,priceAssetId,artworkPrice,isBid) = { | |
277 | 277 | let checkUser = validateUser(issuer) | |
278 | 278 | if (if (isBid) | |
279 | 279 | then (checkUser != "") | |
280 | 280 | else false) | |
281 | 281 | then throw(checkUser) | |
282 | 282 | else { | |
283 | 283 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
284 | 284 | let t01351913648 = if (isBid) | |
285 | 285 | then getPriceAssetIdFromBid(bidDataKey) | |
286 | 286 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
287 | 287 | let amount = t01351913648._1 | |
288 | 288 | let assetId = t01351913648._2 | |
289 | 289 | $Tuple3(bidDataKey, amount, assetId) | |
290 | 290 | } | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func getCommissionData (issuer,assetId,amount,amountSold,maxCanSell) = { | |
295 | 295 | let isWhitelisted = checkWhitelist(issuer) | |
296 | 296 | let cut = if ((isWhitelisted > height)) | |
297 | 297 | then 0 | |
298 | 298 | else if ((assetId == sconexAssetId)) | |
299 | 299 | then sconexCut | |
300 | 300 | else throw("Only Sconex is accepted!") | |
301 | 301 | let amountForSconex = fraction(amount, cut, 100) | |
302 | 302 | let amountForCreator = (amount - amountForSconex) | |
303 | 303 | if ((amountSold == maxCanSell)) | |
304 | 304 | then throw("Art sold out") | |
305 | 305 | else { | |
306 | 306 | let newAmountSold = (amountSold + 1) | |
307 | 307 | $Tuple3(amountForSconex, amountForCreator, newAmountSold) | |
308 | 308 | } | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | func getIssueData (issuer,artId,artworkName,newAmountSold,maxCanSell,totalNFT,caller,bidOwner,bidId,i,isOnSale) = { | |
313 | 313 | let issueMeta = ((((((((("Creator: " + issuer) + ",ArtID: ") + artId) + ",Artwork name: ") + artworkName) + ",Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
314 | 314 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
315 | 315 | let idNFT = calculateAssetId(issueNFT) | |
316 | 316 | let sellStatus = if (if ((newAmountSold == maxCanSell)) | |
317 | 317 | then true | |
318 | 318 | else !(isOnSale)) | |
319 | 319 | then false | |
320 | 320 | else true | |
321 | 321 | let receiveNFT = if (if (if ((caller == issuer)) | |
322 | 322 | then (bidOwner != "") | |
323 | 323 | else false) | |
324 | 324 | then (bidId != "") | |
325 | 325 | else false) | |
326 | 326 | then addressFromStringValue(bidOwner) | |
327 | 327 | else i.caller | |
328 | 328 | $Tuple4(issueNFT, idNFT, sellStatus, receiveNFT) | |
329 | 329 | } | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | func getBidKeyVal (assetId,bidDataKey,date) = { | |
333 | 333 | let assetIdBid = if (!(isDefined(assetId))) | |
334 | 334 | then throw("Only sconex is accepted") | |
335 | 335 | else toBase58String(value(assetId)) | |
336 | 336 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
337 | 337 | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
338 | 338 | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
339 | 339 | $Tuple3(assetIdBid, bidDelOld, bidUpdate) | |
340 | 340 | } | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
344 | 344 | let t01551615566 = idCallerDate(i) | |
345 | 345 | let id = t01551615566._1 | |
346 | 346 | let caller = t01551615566._2 | |
347 | 347 | let date = t01551615566._3 | |
348 | 348 | let isBid = isBidCheck(i, issuer, bidOwner, bidId) | |
349 | 349 | let t01564615797 = getArtData(i, issuer, artId, isBid) | |
350 | 350 | let totalNFT = t01564615797._1 | |
351 | 351 | let artworkName = t01564615797._2 | |
352 | 352 | let amountSold = t01564615797._3 | |
353 | 353 | let artworkPrice = t01564615797._4 | |
354 | 354 | let priceAssetId = t01564615797._5 | |
355 | 355 | let maxCanSell = t01564615797._6 | |
356 | 356 | let isOnSale = t01564615797._7 | |
357 | 357 | let t01580215948 = getBidData(i, caller, issuer, artId, bidOwner, bidId, priceAssetId, artworkPrice, isBid) | |
358 | 358 | let bidDataKey = t01580215948._1 | |
359 | 359 | let amount = t01580215948._2 | |
360 | 360 | let assetId = t01580215948._3 | |
361 | 361 | let t01595316095 = getCommissionData(issuer, value(assetId), amount, amountSold, maxCanSell) | |
362 | 362 | let amountForSconex = t01595316095._1 | |
363 | 363 | let amountForCreator = t01595316095._2 | |
364 | 364 | let newAmountSold = t01595316095._3 | |
365 | 365 | let t01610016290 = getIssueData(issuer, artId, artworkName, newAmountSold, maxCanSell, totalNFT, caller, bidOwner, bidId, i, isOnSale) | |
366 | 366 | let issueNFT = t01610016290._1 | |
367 | 367 | let idNFT = t01610016290._2 | |
368 | 368 | let sellStatus = t01610016290._3 | |
369 | 369 | let receiveNFT = t01610016290._4 | |
370 | 370 | let t01629516394 = getBidKeyVal(assetId, bidDataKey, date) | |
371 | 371 | let assetIdBid = t01629516394._1 | |
372 | 372 | let bidDelOld = t01629516394._2 | |
373 | 373 | let bidUpdate = t01629516394._3 | |
374 | 374 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
375 | 375 | let soldValue = if (!(isBid)) | |
376 | 376 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
377 | 377 | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
378 | 378 | let soldData = StringEntry(soldKey, soldValue) | |
379 | 379 | 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)] | |
380 | 380 | if (isBid) | |
381 | 381 | then (((buyRes :+ soldData) :+ bidUpdate) :+ bidDelOld) | |
382 | 382 | else soldData :: buyRes | |
383 | 383 | } | |
384 | 384 | ||
385 | 385 | ||
386 | 386 | @Callable(i) | |
387 | 387 | func addArtwork (sha256Hash,name,description,tags,type,cidDisplay) = { | |
388 | 388 | let t01774017781 = idCallerDate(i) | |
389 | 389 | let artId = t01774017781._1 | |
390 | 390 | let caller = t01774017781._2 | |
391 | 391 | let date = t01774017781._3 | |
392 | 392 | let validateArtwork = validateArtworkData(caller, cidDisplay, name, description, tags) | |
393 | 393 | if ((validateArtwork != "")) | |
394 | 394 | then throw("Something went wrong!") | |
395 | 395 | else { | |
396 | 396 | let t01817018212 = validatePayment(i) | |
397 | 397 | let amount = t01817018212._1 | |
398 | 398 | let assetId = t01817018212._2 | |
399 | 399 | if (!(isDefined(amount))) | |
400 | 400 | then throw("Something went wrong") | |
401 | 401 | else { | |
402 | 402 | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
403 | 403 | if ((entryExist != "")) | |
404 | 404 | then throw("You already added it") | |
405 | 405 | else { | |
406 | - | let hashExist = getStringByKey(keyOwnerByHash( | |
406 | + | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
407 | 407 | if ((hashExist != "")) | |
408 | 408 | then throw("Hash already registered") | |
409 | 409 | 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)] | |
410 | 410 | } | |
411 | 411 | } | |
412 | 412 | } | |
413 | 413 | } | |
414 | 414 | ||
415 | 415 | ||
416 | 416 | ||
417 | 417 | @Callable(i) | |
418 | 418 | func sellArtwork (artId,price,maxMint,assetId,auctionType,minBid) = { | |
419 | 419 | let t02571425747 = idCallerDate(i) | |
420 | 420 | let id = t02571425747._1 | |
421 | 421 | let caller = t02571425747._2 | |
422 | 422 | let artworkName = getStringByKey(keyName(caller, artId)) | |
423 | 423 | if (containsElement([auctionType1, auctionType2], auctionType)) | |
424 | 424 | then throw("We dont know this auction type") | |
425 | 425 | else if (containsElement([auctionType1, auctionType2], auctionType)) | |
426 | 426 | then throw("We didnt implement this auction type yet") | |
427 | 427 | else if ((artworkName == "")) | |
428 | 428 | then throw("This art doesn't match your account") | |
429 | 429 | else { | |
430 | 430 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
431 | 431 | if (!(acceptedAssetIds(assetId))) | |
432 | 432 | then throw("Something went wrong!") | |
433 | 433 | else if (!(validateMinSell(assetId, price))) | |
434 | 434 | then throw("Something went wrong!") | |
435 | 435 | else { | |
436 | 436 | let checkUser = validateUser(caller) | |
437 | 437 | if ((checkUser != "")) | |
438 | 438 | then throw(checkUser) | |
439 | 439 | else { | |
440 | 440 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
441 | 441 | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
442 | 442 | if ((maxMint > 10)) | |
443 | 443 | then throw("10 editions max per artwork") | |
444 | 444 | else if (if ((amountSold != 0)) | |
445 | 445 | then (amountSold == maxCanSell) | |
446 | 446 | else false) | |
447 | 447 | then throw("Max edition reached.") | |
448 | 448 | else if (if ((amountSold > 0)) | |
449 | 449 | then (maxCanSell != maxMint) | |
450 | 450 | else false) | |
451 | 451 | then throw("Cannot change maximum issuable anymore") | |
452 | 452 | else if (if ((bidNbr > 0)) | |
453 | 453 | then (maxCanSell != maxMint) | |
454 | 454 | else false) | |
455 | 455 | then throw("Cannot change maximum issuable with active orders") | |
456 | 456 | else { | |
457 | 457 | let sellStatus = if (if ((price > 0)) | |
458 | 458 | then (maxMint > 0) | |
459 | 459 | else false) | |
460 | 460 | then true | |
461 | 461 | else false | |
462 | 462 | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), IntegerEntry(keyMinPrice(caller, artId), minBid), StringEntry(keyAssetIdAccepted(caller, artId), assetId), StringEntry(keyAuctionType(caller, artId), auctionType)] | |
463 | 463 | } | |
464 | 464 | } | |
465 | 465 | } | |
466 | 466 | } | |
467 | 467 | } | |
468 | 468 | ||
469 | 469 | ||
470 | 470 | ||
471 | 471 | @Callable(i) | |
472 | 472 | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
473 | 473 | ||
474 | 474 | ||
475 | 475 | ||
476 | 476 | @Callable(i) | |
477 | 477 | func deleteEntry (entry) = { | |
478 | 478 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
479 | 479 | if ((caller == owner)) | |
480 | 480 | then [DeleteEntry(entry)] | |
481 | 481 | else throw("no") | |
482 | 482 | } | |
483 | 483 | ||
484 | 484 | ||
485 | 485 | ||
486 | 486 | @Callable(i) | |
487 | 487 | func setBid (artId,issuer) = { | |
488 | 488 | let t02770927747 = idCallerDate(i) | |
489 | 489 | let id = t02770927747._1 | |
490 | 490 | let caller = t02770927747._2 | |
491 | 491 | let date = t02770927747._3 | |
492 | 492 | let t02775227788 = isPayment(i) | |
493 | 493 | let payment = t02775227788._1 | |
494 | 494 | let amount = t02775227788._2 | |
495 | 495 | let assetId = if (!(isDefined(payment.assetId))) | |
496 | 496 | then throw("Only sconex is accepted!") | |
497 | 497 | else toBase58String(value(payment.assetId)) | |
498 | 498 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
499 | 499 | if (!(acceptedAssetIds(assetId))) | |
500 | 500 | then throw("asset not accepted") | |
501 | 501 | else if (!(validateMinSell(assetId, amount))) | |
502 | 502 | then throw("Wrong min sell") | |
503 | 503 | else { | |
504 | 504 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
505 | 505 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
506 | 506 | if ((0 >= maxCanSell)) | |
507 | 507 | then throw("No max edition set for this artwork") | |
508 | 508 | else if ((amountSold >= maxCanSell)) | |
509 | 509 | then throw("Sold out, you cannot bid") | |
510 | 510 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))] | |
511 | 511 | } | |
512 | 512 | } | |
513 | 513 | ||
514 | 514 | ||
515 | 515 | ||
516 | 516 | @Callable(i) | |
517 | 517 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
518 | 518 | let caller = toBase58String(i.caller.bytes) | |
519 | 519 | if ((caller != issuer)) | |
520 | 520 | then throw("You cannot do this action") | |
521 | 521 | else buyMint(i, artId, issuer, bidId, bidOwner) | |
522 | 522 | } | |
523 | 523 | ||
524 | 524 | ||
525 | 525 | ||
526 | 526 | @Callable(i) | |
527 | 527 | func cancelBid (artId,issuer,bidId) = { | |
528 | 528 | let t02894229094 = idCallerDate(i) | |
529 | 529 | let id = t02894229094._1 | |
530 | 530 | let caller = t02894229094._2 | |
531 | 531 | let date = t02894229094._3 | |
532 | 532 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
533 | 533 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + bidId) | |
534 | 534 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
535 | 535 | if ((bidData == "")) | |
536 | 536 | then throw("Bid not found") | |
537 | 537 | else { | |
538 | 538 | let bidDataArr = split(bidData, "_") | |
539 | 539 | let assetId = getBidAssetId(bidDataArr[0]) | |
540 | 540 | let bidStatus = "CANCELED" | |
541 | 541 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
542 | 542 | } | |
543 | 543 | } | |
544 | 544 | ||
545 | 545 |
github/deemru/w8io/026f985 68.34 ms ◑