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