tx · A4DhteATfXY1q8JtKXQJbMJVdHHaNTmyD4xrmcTNqzuo 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG: -0.01400000 Waves 2020.10.09 11:18 [1212785] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves
{ "type": 13, "id": "A4DhteATfXY1q8JtKXQJbMJVdHHaNTmyD4xrmcTNqzuo", "fee": 1400000, "feeAssetId": null, "timestamp": 1602231510247, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "Ydb2JZ1oCfKckt2JfoTtFbcSqUD7yr3fTuJDGh2WGyV5ykhJTa53gZPiGy9tYwHVhXoTchkNpMRhZie3z86iGeu" ], "script": "base64:AAIEAAAAAAAAAFoIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgAAAAzAAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAADHNpZ25WZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3N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QAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAA1rZXlVc2VyU3RhdHVzAAAAAQUAAAAHYWRkcmVzcwUAAAALdXNlclJlbW92ZWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAObGFzdF9pbnZva2VfaWQFAAAAAmlkBQAAAANuaWwJAAACAAAAAQIAAAAeWW91IGFyZSBub3QgYWxsb3dlZCB0byBkbyB0aGF0AAAAAOXaO+Y=", "height": 1212785, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HfZShfd5gWLBf2JYBTEVPSM4YL4vUfpVi9wcNmeXMgiT Next: 3kDwNREmGKuU7DxZmDmvA4d3oM8iePJYLJL5cvnhP5jy Diff:
Old | New | Differences | |
---|---|---|---|
482 | 482 | case _ => | |
483 | 483 | 0 | |
484 | 484 | } | |
485 | - | if (if (( | |
486 | - | then ( | |
485 | + | if (if ((amountSold != 0)) | |
486 | + | then (amountSold == maxCanSell) | |
487 | 487 | else false) | |
488 | - | then throw("You | |
489 | - | else if (if ((amountSold | |
490 | - | then ( | |
488 | + | then throw("You reached the max edition allowed to sell for this edition.") | |
489 | + | else if (if ((amountSold > 0)) | |
490 | + | then (maxCanSell != maxMint) | |
491 | 491 | else false) | |
492 | - | then throw("You reached the max edition allowed to sell for this edition.") | |
493 | - | else if (if ((amountSold > 0)) | |
494 | - | then (maxCanSell != maxMint) | |
495 | - | else false) | |
496 | - | then throw("You cannot change the maximum issuable anymore") | |
497 | - | else if ((userIsRegistered == userSuspended)) | |
498 | - | then throw("Your account is suspended") | |
499 | - | else if ((userIsRegistered == userRemoved)) | |
500 | - | then throw("Your account have been deleted") | |
501 | - | else { | |
502 | - | let sellStatus = if ((price > 0)) | |
503 | - | then true | |
504 | - | else throw("Selling price must be greater than 0") | |
492 | + | then throw("You cannot change the maximum issuable anymore") | |
493 | + | else if ((userIsRegistered == userSuspended)) | |
494 | + | then throw("Your account is suspended") | |
495 | + | else if ((userIsRegistered == userRemoved)) | |
496 | + | then throw("Your account have been deleted") | |
497 | + | else { | |
498 | + | let sellStatus = if ((price > 0)) | |
499 | + | then true | |
500 | + | else false | |
505 | 501 | [BooleanEntry(keyArtOnSale(callerAddress, artId), sellStatus), IntegerEntry(keyArtPrice(callerAddress, artId), price), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxMint), StringEntry(keyArtAssetIdAccepted(callerAddress, artId), assetId), StringEntry("last_invoke_id", id)] | |
506 | - | ||
502 | + | } | |
507 | 503 | } | |
508 | 504 | } | |
509 | 505 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let storageVerifier = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let signVerifier = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
7 | 7 | ||
8 | 8 | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
9 | 9 | ||
10 | 10 | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
11 | 11 | ||
12 | 12 | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
13 | 13 | ||
14 | 14 | let wavesAssetId = base58'' | |
15 | 15 | ||
16 | 16 | let usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
17 | 17 | ||
18 | 18 | let admin = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
19 | 19 | ||
20 | 20 | let admin2 = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
21 | 21 | ||
22 | 22 | let WHITELISTEDONLY = true | |
23 | 23 | ||
24 | 24 | let userAllowed = "ALLOWED" | |
25 | 25 | ||
26 | 26 | let userRegistered = "REGISTERED" | |
27 | 27 | ||
28 | 28 | let userVerified = "VERIFIED" | |
29 | 29 | ||
30 | 30 | let userSuspended = "SUSPENDED" | |
31 | 31 | ||
32 | 32 | let userRemoved = "REMOVED" | |
33 | 33 | ||
34 | 34 | let userUnregistered = "UNREGISTERED" | |
35 | 35 | ||
36 | 36 | let onSale = "ON_SALE" | |
37 | 37 | ||
38 | 38 | let sold = "SOLD" | |
39 | 39 | ||
40 | 40 | let canceled = "CANCELED" | |
41 | 41 | ||
42 | 42 | func getStringByKey (key) = match getString(this, key) { | |
43 | 43 | case a: String => | |
44 | 44 | a | |
45 | 45 | case _ => | |
46 | 46 | "" | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func getIntegerByKey (key) = match getInteger(this, key) { | |
51 | 51 | case i: Int => | |
52 | 52 | i | |
53 | 53 | case _ => | |
54 | 54 | 0 | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signVerifier, ((("data_fc_" + signID) + "_") + Owner)) { | |
59 | 59 | case a: String => | |
60 | 60 | if (contains(a, sha256Hash)) | |
61 | 61 | then true | |
62 | 62 | else false | |
63 | 63 | case _ => | |
64 | 64 | false | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func validateNFTs (accumulator,id) = { | |
69 | 69 | let assetDetails = value(assetInfo(fromBase58String(id))) | |
70 | 70 | if (if (if ((assetDetails.quantity != 1)) | |
71 | 71 | then true | |
72 | 72 | else (assetDetails.decimals != 0)) | |
73 | 73 | then true | |
74 | 74 | else (assetDetails.reissuable != false)) | |
75 | 75 | then (accumulator + 0) | |
76 | 76 | else (accumulator + 1) | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func verifyStatus (addr) = match getString(this, ("user_status_" + addr)) { | |
81 | 81 | case b: String => | |
82 | 82 | b | |
83 | 83 | case _ => | |
84 | 84 | throw("Something went wrong.") | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyUserAddr (callerAddr) = ("user_" + callerAddr) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keyUserName (callerAddr) = ("user_name_" + callerAddr) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyUserDesc (callerAddr) = ("user_desc_" + callerAddr) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyUserSocial (callerAddr) = ("user_social_" + callerAddr) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func keyUserThumb (callerAddr) = ("user_thumb_" + callerAddr) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func keyUserStatus (callerAddr) = ("user_status_" + callerAddr) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func keyUserDate (callerAddr) = ("user_date_" + callerAddr) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyArtDate (callerAddr,artId) = ((("art_date_" + artId) + "_") + callerAddr) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyArtName (callerAddr,artId) = ((("art_name_" + artId) + "_") + callerAddr) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyArtDesc (callerAddr,artId) = ((("art_desc_" + artId) + "_") + callerAddr) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func keyArtDisplayCid (callerAddr,artId) = ((("art_display_cid_" + artId) + "_") + callerAddr) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func keyArtExportHash (callerAddr,artId) = ((("art_export_hash_" + artId) + "_") + callerAddr) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func keyArtExportCid (callerAddr,artId) = ((("art_export_cid_" + artId) + "_") + callerAddr) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func keyArtMaxMint (callerAddr,artId) = ((("art_maxmint_" + artId) + "_") + callerAddr) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func keyArtSignID (callerAddr,artId) = ((("art_signid_" + artId) + "_") + callerAddr) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func keyArtIssued (callerAddr,artId) = ((("art_issued_" + artId) + "_") + callerAddr) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func keyArtOnSale (callerAddr,artId) = ((("art_onsale_" + artId) + "_") + callerAddr) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func keyArtLicenceHash (callerAddr,artId) = ((("art_licence_hash_" + artId) + "_") + callerAddr) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func keyArtLicenceCid (callerAddr,artId) = ((("art_licence_cid_" + artId) + "_") + callerAddr) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func keyArtTags (callerAddr,artId) = ((("art_tags_" + artId) + "_") + callerAddr) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func keyArtType (callerAddr,artId) = ((("art_type_" + artId) + "_") + callerAddr) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func keyArtPrice (callerAddr,artId) = ((("art_price_" + artId) + "_") + callerAddr) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func keyArtAssetIdAccepted (callerAddr,artId) = ((("art_assetAccepted_" + artId) + "_") + callerAddr) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func keyArtHashByTxidAddr (callerAddr,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + callerAddr) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func keyArtArtidBySignid (callerAddr,signId) = ((("get_artidbysignid_" + signId) + "_") + callerAddr) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func keyArtTxidByHashOwner (sha256Hash,callerAddr) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + callerAddr))))) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | @Callable(i) | |
170 | 170 | func registerUser (name,description,thumb,social) = { | |
171 | 171 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
172 | 172 | let userCanRegister = getStringByKey(keyUserStatus(callerAddr)) | |
173 | 173 | let id = toBase58String(i.transactionId) | |
174 | 174 | let timestamp = lastBlock.timestamp | |
175 | 175 | if (if ((userCanRegister == userSuspended)) | |
176 | 176 | then true | |
177 | 177 | else (userCanRegister == userRemoved)) | |
178 | 178 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
179 | 179 | else if ((userCanRegister == userRegistered)) | |
180 | 180 | then throw("You are already registered, please use update method instead.") | |
181 | 181 | else if (if ((userCanRegister == "")) | |
182 | 182 | then WHITELISTEDONLY | |
183 | 183 | else false) | |
184 | 184 | then throw("You are now allowed to register yet, please contact us first to get approved.") | |
185 | 185 | else if (if ((name == "")) | |
186 | 186 | then true | |
187 | 187 | else (description == "")) | |
188 | 188 | then throw("Name and description cannot be empty") | |
189 | 189 | else if ((size(description) > 600)) | |
190 | 190 | then throw("600 Characters maximum for the description") | |
191 | 191 | else [IntegerEntry(keyUserDate(callerAddr), timestamp), StringEntry(keyUserAddr(callerAddr), ((id + "_") + toString(lastBlock.timestamp))), StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb), StringEntry(keyUserStatus(callerAddr), userRegistered), StringEntry("last_invoke_id", id)] | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | ||
196 | 196 | @Callable(i) | |
197 | 197 | func deleteEntry (entry) = { | |
198 | 198 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
199 | 199 | if ((callerAddr == admin)) | |
200 | 200 | then [DeleteEntry(entry)] | |
201 | 201 | else throw("no") | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | ||
206 | 206 | @Callable(i) | |
207 | 207 | func updateUser (name,description,thumb,social) = { | |
208 | 208 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
209 | 209 | let userCanRegister = getStringByKey(keyUserStatus(callerAddr)) | |
210 | 210 | if (if ((userCanRegister == userSuspended)) | |
211 | 211 | then true | |
212 | 212 | else (userCanRegister == userRemoved)) | |
213 | 213 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
214 | 214 | else if (if ((userCanRegister == "")) | |
215 | 215 | then true | |
216 | 216 | else (userCanRegister == userAllowed)) | |
217 | 217 | then throw("Please register first with registerUser") | |
218 | 218 | else { | |
219 | 219 | let id = toBase58String(i.transactionId) | |
220 | 220 | let timestamp = lastBlock.timestamp | |
221 | 221 | if (if ((name == "")) | |
222 | 222 | then true | |
223 | 223 | else (description == "")) | |
224 | 224 | then throw("Name and description cannot be empty") | |
225 | 225 | else if ((size(description) > 600)) | |
226 | 226 | then throw("600 Characters maximum for the description") | |
227 | 227 | else [StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb), StringEntry("last_invoke_id", id)] | |
228 | 228 | } | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Callable(i) | |
234 | 234 | func changeUserStatus (address,status) = { | |
235 | 235 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
236 | 236 | let id = toBase58String(i.transactionId) | |
237 | 237 | let statusToSet = if ((status == userVerified)) | |
238 | 238 | then userVerified | |
239 | 239 | else if ((status == userRegistered)) | |
240 | 240 | then userRegistered | |
241 | 241 | else if ((status == userSuspended)) | |
242 | 242 | then userSuspended | |
243 | 243 | else if ((status == userRemoved)) | |
244 | 244 | then userRemoved | |
245 | 245 | else if ((status == userAllowed)) | |
246 | 246 | then userAllowed | |
247 | 247 | else throw("Unknown status") | |
248 | 248 | if (if ((callerAddr == admin)) | |
249 | 249 | then true | |
250 | 250 | else (callerAddr == admin2)) | |
251 | 251 | then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)] | |
252 | 252 | else throw(((("You are not allowed to change user status " + callerAddr) + " / ") + admin)) | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | ||
257 | 257 | @Callable(i) | |
258 | 258 | func creditUser (address) = { | |
259 | 259 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
260 | 260 | let id = toBase58String(i.transactionId) | |
261 | 261 | if (if ((callerAddr == admin)) | |
262 | 262 | then true | |
263 | 263 | else (callerAddr == admin2)) | |
264 | 264 | then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)] | |
265 | 265 | else throw("You are not allowed to do that") | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | ||
270 | 270 | @Callable(invoke) | |
271 | 271 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
272 | 272 | let artId = toBase58String(invoke.transactionId) | |
273 | 273 | let callerAddress = toBase58String(invoke.caller.bytes) | |
274 | 274 | if ((size(invoke.payments) == 0)) | |
275 | 275 | then throw("No payment attached") | |
276 | 276 | else { | |
277 | 277 | let payment = value(invoke.payments[0]) | |
278 | 278 | let amount = value(payment.amount) | |
279 | 279 | let assetId = if (if (isDefined(payment.assetId)) | |
280 | 280 | then (payment.assetId == signAssetId) | |
281 | 281 | else false) | |
282 | 282 | then payment.assetId | |
283 | 283 | else throw("Only SIGN token accepted at the moment") | |
284 | 284 | let currentCertificationPrice = match getInteger(storageVerifier, ("certification_fee_" + toBase58String(signAssetId))) { | |
285 | 285 | case price: Int => | |
286 | 286 | price | |
287 | 287 | case _ => | |
288 | 288 | throw("Price undefined in oracle") | |
289 | 289 | } | |
290 | 290 | if ((amount != currentCertificationPrice)) | |
291 | 291 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
292 | 292 | else { | |
293 | 293 | let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress)) | |
294 | 294 | if ((entryExist != "")) | |
295 | 295 | then throw("You already added this artwork on Sign Art") | |
296 | 296 | else { | |
297 | 297 | let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash)) | |
298 | 298 | if ((hashExist != "")) | |
299 | 299 | then throw("This artwork hash is already registered on Sign Art") | |
300 | 300 | else { | |
301 | 301 | let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash) | |
302 | 302 | if (!(isSignCertified)) | |
303 | 303 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
304 | 304 | else if ((size(cidDisplay) == 0)) | |
305 | 305 | then throw("Display CID cannot be empty") | |
306 | 306 | else if ((size(name) == 0)) | |
307 | 307 | then throw("Title cannot be empty") | |
308 | 308 | else if ((size(name) > 100)) | |
309 | 309 | then throw("100 Characters maximum for the name") | |
310 | 310 | else if ((size(description) > 1000)) | |
311 | 311 | then throw("1000 Characters maximum for the description") | |
312 | 312 | else if ((size(description) == 0)) | |
313 | 313 | then throw("Description cannot be empty") | |
314 | 314 | else { | |
315 | 315 | let tagsList = split(tags, ",") | |
316 | 316 | if ((size(tagsList) > 5)) | |
317 | 317 | then throw("Tags should be maximum 5 single word separated by space.") | |
318 | 318 | else { | |
319 | 319 | let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) { | |
320 | 320 | case s: String => | |
321 | 321 | s | |
322 | 322 | case _ => | |
323 | 323 | userUnregistered | |
324 | 324 | } | |
325 | 325 | let timestamp = lastBlock.timestamp | |
326 | 326 | if (if (isDefined(userIsRegistered)) | |
327 | 327 | then (userIsRegistered == userUnregistered) | |
328 | 328 | else false) | |
329 | 329 | then throw("Please register this account first with \"User infos\" tab") | |
330 | 330 | else if ((userIsRegistered == userSuspended)) | |
331 | 331 | then throw("Your account is suspended") | |
332 | 332 | else if ((userIsRegistered == userRemoved)) | |
333 | 333 | then throw("Your account have been removed") | |
334 | 334 | else if ((maxmint > 10)) | |
335 | 335 | then throw("Maximum 10 editions per artwork") | |
336 | 336 | else if ((size(sha256Hash) != 64)) | |
337 | 337 | then throw("Hash should be sha256 string composed of 64 char.") | |
338 | 338 | else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), IntegerEntry(keyArtDate(callerAddress, artId), timestamp), StringEntry(keyArtName(callerAddress, artId), name), StringEntry(keyArtDesc(callerAddress, artId), description), StringEntry(keyArtDisplayCid(callerAddress, artId), cidDisplay), StringEntry(keyArtExportCid(callerAddress, artId), cidExport), StringEntry(keyArtExportHash(callerAddress, artId), sha256Export), StringEntry(keyArtLicenceHash(callerAddress, artId), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, artId), cidLicence), StringEntry(keyArtType(callerAddress, artId), type), StringEntry(keyArtTags(callerAddress, artId), tags), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxmint), StringEntry(keyArtSignID(callerAddress, artId), signID), IntegerEntry(keyArtIssued(callerAddress, artId), 0), BooleanEntry(keyArtOnSale(callerAddress, artId), false), StringEntry(keyArtArtidBySignid(callerAddress, signID), artId), StringEntry("last_invoke_id", artId), StringEntry(keyArtHashByTxidAddr(callerAddress, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)] | |
339 | 339 | } | |
340 | 340 | } | |
341 | 341 | } | |
342 | 342 | } | |
343 | 343 | } | |
344 | 344 | } | |
345 | 345 | } | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | ||
349 | 349 | @Callable(invoke) | |
350 | 350 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
351 | 351 | let updateId = toBase58String(invoke.transactionId) | |
352 | 352 | let callerAddress = toBase58String(invoke.caller.bytes) | |
353 | 353 | let entryExist = getStringByKey(keyArtName(callerAddress, txid)) | |
354 | 354 | if ((entryExist == "")) | |
355 | 355 | then throw("This entry doesn't exist or you are not the owner") | |
356 | 356 | else if ((size(name) == 0)) | |
357 | 357 | then throw("Title cannot be empty") | |
358 | 358 | else if ((size(name) > 100)) | |
359 | 359 | then throw("100 Characters maximum for the name") | |
360 | 360 | else if ((size(description) > 1000)) | |
361 | 361 | then throw("1000 Characters maximum for the description") | |
362 | 362 | else if ((size(description) == 0)) | |
363 | 363 | then throw("Description cannot be empty") | |
364 | 364 | else { | |
365 | 365 | let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, txid)) { | |
366 | 366 | case b: Int => | |
367 | 367 | if ((b == 0)) | |
368 | 368 | then false | |
369 | 369 | else true | |
370 | 370 | case _ => | |
371 | 371 | false | |
372 | 372 | } | |
373 | 373 | let tagsList = split(tags, ",") | |
374 | 374 | if ((size(tagsList) > 5)) | |
375 | 375 | then throw("Tags should be maximum 5 single word separated by space.") | |
376 | 376 | else { | |
377 | 377 | let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) { | |
378 | 378 | case s: String => | |
379 | 379 | s | |
380 | 380 | case _ => | |
381 | 381 | userUnregistered | |
382 | 382 | } | |
383 | 383 | if (if (isDefined(userIsRegistered)) | |
384 | 384 | then (userIsRegistered == userUnregistered) | |
385 | 385 | else false) | |
386 | 386 | then throw("Please register this account first with \"User infos\" tab") | |
387 | 387 | else if ((userIsRegistered == userSuspended)) | |
388 | 388 | then throw("Your account is suspended") | |
389 | 389 | else if ((userIsRegistered == userRemoved)) | |
390 | 390 | then throw("Your account have been removed") | |
391 | 391 | else if ((maxmint > 10)) | |
392 | 392 | then throw("Maximum 10 editions per artwork") | |
393 | 393 | else if (!(artworkMinted)) | |
394 | 394 | then [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtExportCid(callerAddress, txid), cidExport), StringEntry(keyArtExportHash(callerAddress, txid), sha256Export), StringEntry(keyArtLicenceCid(callerAddress, txid), cidLicence), StringEntry(keyArtLicenceHash(callerAddress, txid), sha256Licence), IntegerEntry(keyArtMaxMint(callerAddress, txid), maxmint), StringEntry(keyArtTags(callerAddress, txid), tags), StringEntry(keyArtType(callerAddress, txid), type), StringEntry("last_invoke_id", updateId)] | |
395 | 395 | else [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtType(callerAddress, txid), type), StringEntry(keyArtTags(callerAddress, txid), tags), StringEntry("last_invoke_id", updateId)] | |
396 | 396 | } | |
397 | 397 | } | |
398 | 398 | } | |
399 | 399 | ||
400 | 400 | ||
401 | 401 | ||
402 | 402 | @Callable(i) | |
403 | 403 | func deleteArtwork (artId,address) = { | |
404 | 404 | let callerAddress = toString(addressFromPublicKey(i.callerPublicKey)) | |
405 | 405 | let id = toBase58String(i.transactionId) | |
406 | 406 | let addressToUse = if (if ((callerAddress == admin)) | |
407 | 407 | then true | |
408 | 408 | else (callerAddress == admin2)) | |
409 | 409 | then address | |
410 | 410 | else callerAddress | |
411 | 411 | let entryExist = match getString(this, keyArtName(addressToUse, artId)) { | |
412 | 412 | case s: String => | |
413 | 413 | s | |
414 | 414 | case _ => | |
415 | 415 | throw("No artwork matching this request or you are not allowed") | |
416 | 416 | } | |
417 | 417 | let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) { | |
418 | 418 | case b: Int => | |
419 | 419 | if ((b == 0)) | |
420 | 420 | then false | |
421 | 421 | else true | |
422 | 422 | case _ => | |
423 | 423 | false | |
424 | 424 | } | |
425 | 425 | let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) { | |
426 | 426 | case s: String => | |
427 | 427 | s | |
428 | 428 | case _ => | |
429 | 429 | throw("No artwork hash matching this request") | |
430 | 430 | } | |
431 | 431 | let signID = match getString(this, keyArtSignID(addressToUse, artId)) { | |
432 | 432 | case s: String => | |
433 | 433 | s | |
434 | 434 | case _ => | |
435 | 435 | throw("No SIGN ID matching this request") | |
436 | 436 | } | |
437 | 437 | let dataToDelete = [DeleteEntry(keyArtDate(addressToUse, artId)), DeleteEntry(keyArtName(addressToUse, artId)), DeleteEntry(keyArtDesc(addressToUse, artId)), DeleteEntry(keyArtDisplayCid(addressToUse, artId)), DeleteEntry(keyArtExportCid(addressToUse, artId)), DeleteEntry(keyArtExportHash(addressToUse, artId)), DeleteEntry(keyArtLicenceHash(addressToUse, artId)), DeleteEntry(keyArtLicenceCid(addressToUse, artId)), DeleteEntry(keyArtType(addressToUse, artId)), DeleteEntry(keyArtTags(addressToUse, artId)), DeleteEntry(keyArtMaxMint(addressToUse, artId)), DeleteEntry(keyArtSignID(addressToUse, artId)), DeleteEntry(keyArtIssued(addressToUse, artId)), DeleteEntry(keyArtOnSale(addressToUse, artId)), StringEntry("last_invoke_id", id), DeleteEntry(keyArtOwnerByHash(sha256Hash)), DeleteEntry(keyArtArtidBySignid(addressToUse, signID)), DeleteEntry(keyArtTxidByHashOwner(sha256Hash, addressToUse))] | |
438 | 438 | if (if ((callerAddress == admin)) | |
439 | 439 | then true | |
440 | 440 | else (callerAddress == admin2)) | |
441 | 441 | then dataToDelete | |
442 | 442 | else if (!(artworkMinted)) | |
443 | 443 | then dataToDelete | |
444 | 444 | else throw("This artwork already have minted NFT, you cannot delete it") | |
445 | 445 | } | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | ||
449 | 449 | @Callable(invoke) | |
450 | 450 | func sellArtwork (artId,price,maxMint,assetId) = { | |
451 | 451 | let id = toBase58String(invoke.transactionId) | |
452 | 452 | let callerAddress = toBase58String(invoke.caller.bytes) | |
453 | 453 | let sellDate = lastBlock.timestamp | |
454 | 454 | if (if (if ((assetId != toBase58String(signAssetId))) | |
455 | 455 | then (assetId != toBase58String(wavesAssetId)) | |
456 | 456 | else false) | |
457 | 457 | then (assetId != toBase58String(usdnAssetId)) | |
458 | 458 | else false) | |
459 | 459 | then throw("Only SIGN, USDN or WAVES currency accepted at the moment") | |
460 | 460 | else { | |
461 | 461 | let artworkName = match getString(this, keyArtName(callerAddress, artId)) { | |
462 | 462 | case s: String => | |
463 | 463 | s | |
464 | 464 | case _ => | |
465 | 465 | throw("This artwork doesn't exit or you are not the owner") | |
466 | 466 | } | |
467 | 467 | let userIsRegistered = match getString(this, keyUserStatus(("user_status_" + callerAddress))) { | |
468 | 468 | case s: String => | |
469 | 469 | s | |
470 | 470 | case _ => | |
471 | 471 | throw("Please register this account first") | |
472 | 472 | } | |
473 | 473 | let amountSold = match getInteger(this, keyArtIssued(callerAddress, artId)) { | |
474 | 474 | case n: Int => | |
475 | 475 | n | |
476 | 476 | case _ => | |
477 | 477 | 0 | |
478 | 478 | } | |
479 | 479 | let maxCanSell = match getInteger(this, keyArtMaxMint(callerAddress, artId)) { | |
480 | 480 | case n: Int => | |
481 | 481 | n | |
482 | 482 | case _ => | |
483 | 483 | 0 | |
484 | 484 | } | |
485 | - | if (if (( | |
486 | - | then ( | |
485 | + | if (if ((amountSold != 0)) | |
486 | + | then (amountSold == maxCanSell) | |
487 | 487 | else false) | |
488 | - | then throw("You | |
489 | - | else if (if ((amountSold | |
490 | - | then ( | |
488 | + | then throw("You reached the max edition allowed to sell for this edition.") | |
489 | + | else if (if ((amountSold > 0)) | |
490 | + | then (maxCanSell != maxMint) | |
491 | 491 | else false) | |
492 | - | then throw("You reached the max edition allowed to sell for this edition.") | |
493 | - | else if (if ((amountSold > 0)) | |
494 | - | then (maxCanSell != maxMint) | |
495 | - | else false) | |
496 | - | then throw("You cannot change the maximum issuable anymore") | |
497 | - | else if ((userIsRegistered == userSuspended)) | |
498 | - | then throw("Your account is suspended") | |
499 | - | else if ((userIsRegistered == userRemoved)) | |
500 | - | then throw("Your account have been deleted") | |
501 | - | else { | |
502 | - | let sellStatus = if ((price > 0)) | |
503 | - | then true | |
504 | - | else throw("Selling price must be greater than 0") | |
492 | + | then throw("You cannot change the maximum issuable anymore") | |
493 | + | else if ((userIsRegistered == userSuspended)) | |
494 | + | then throw("Your account is suspended") | |
495 | + | else if ((userIsRegistered == userRemoved)) | |
496 | + | then throw("Your account have been deleted") | |
497 | + | else { | |
498 | + | let sellStatus = if ((price > 0)) | |
499 | + | then true | |
500 | + | else false | |
505 | 501 | [BooleanEntry(keyArtOnSale(callerAddress, artId), sellStatus), IntegerEntry(keyArtPrice(callerAddress, artId), price), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxMint), StringEntry(keyArtAssetIdAccepted(callerAddress, artId), assetId), StringEntry("last_invoke_id", id)] | |
506 | - | ||
502 | + | } | |
507 | 503 | } | |
508 | 504 | } | |
509 | 505 | ||
510 | 506 | ||
511 | 507 | ||
512 | 508 | @Callable(invoke) | |
513 | 509 | func buyArtwork (hash,issuer) = { | |
514 | 510 | let id = toBase58String(invoke.transactionId) | |
515 | 511 | let callerAddress = toBase58String(invoke.caller.bytes) | |
516 | 512 | let totalNFT = getIntegerByKey("total_nft_issued") | |
517 | 513 | let entryID = getStringByKey(((hash + "_") + issuer)) | |
518 | 514 | if ((entryID == "")) | |
519 | 515 | then throw("This artwork doesn't exit or you are not the owner") | |
520 | 516 | else { | |
521 | 517 | let userIsRegistered = getStringByKey(("user_status_" + callerAddress)) | |
522 | 518 | if (!(isDefined(userIsRegistered))) | |
523 | 519 | then throw("Please register this account first") | |
524 | 520 | else { | |
525 | 521 | let alreadySoldList = getStringByKey(((("art_sold_" + entryID) + "_") + issuer)) | |
526 | 522 | let amountSold = getIntegerByKey(((("art_issued_" + entryID) + "_") + issuer)) | |
527 | 523 | let artworkPrice = getIntegerByKey(((("art_price_" + entryID) + "_") + issuer)) | |
528 | 524 | if ((artworkPrice == 0)) | |
529 | 525 | then throw("This artwork is not for sell") | |
530 | 526 | else { | |
531 | 527 | let maxCanSell = getIntegerByKey(((("art_maxmint_" + entryID) + "_") + issuer)) | |
532 | 528 | let payment = value(invoke.payments[0]) | |
533 | 529 | let amount = value(payment.amount) | |
534 | 530 | let assetId = if (isDefined(payment.assetId)) | |
535 | 531 | then throw("Only Waves token accepted at the moment") | |
536 | 532 | else unit | |
537 | 533 | if ((amountSold == maxCanSell)) | |
538 | 534 | then throw("Cannot buy this artwork anymore") | |
539 | 535 | else if ((artworkPrice != amount)) | |
540 | 536 | then throw("Payment don't match seller price") | |
541 | 537 | else { | |
542 | 538 | let newAmountSold = (amountSold + 1) | |
543 | 539 | let entryDate = lastBlock.timestamp | |
544 | 540 | let issueMeta = (((((((((((((("{\"version\": 1,\"artID\": \"" + entryID) + "\",\"maxIssuable\": \"") + toString(maxCanSell)) + "\",\"signID\": \"SA_") + toString((totalNFT + 1))) + "\", \"creator\": \"") + issuer) + "\", \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", \"hash\": ") + hash) + "}") | |
545 | 541 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
546 | 542 | let idNFT = calculateAssetId(issueNFT) | |
547 | 543 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
548 | 544 | then false | |
549 | 545 | else true | |
550 | 546 | [IntegerEntry(((("art_issued_" + entryID) + "_") + issuer), newAmountSold), StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + entryID) + "_") + issuer), ((((((callerAddress + "_") + toString(entryDate)) + "_") + id) + "_") + toString(artworkPrice))), IntegerEntry("total_nft_issued", (totalNFT + 1)), StringEntry("last_invoke_id", id), issueNFT, BooleanEntry(((("art_onsale_" + entryID) + "_") + callerAddress), sellStatus), ScriptTransfer(Address(fromBase58String(issuer)), amount, assetId), ScriptTransfer(invoke.caller, 1, idNFT)] | |
551 | 547 | } | |
552 | 548 | } | |
553 | 549 | } | |
554 | 550 | } | |
555 | 551 | } | |
556 | 552 | ||
557 | 553 | ||
558 | 554 | ||
559 | 555 | @Callable(i) | |
560 | 556 | func deleteUser (address) = { | |
561 | 557 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
562 | 558 | let id = toBase58String(i.transactionId) | |
563 | 559 | if (if ((callerAddr == admin)) | |
564 | 560 | then true | |
565 | 561 | else (callerAddr == admin2)) | |
566 | 562 | then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), StringEntry(keyUserStatus(address), userRemoved), StringEntry("last_invoke_id", id)] | |
567 | 563 | else throw("You are not allowed to do that") | |
568 | 564 | } | |
569 | 565 | ||
570 | 566 |
github/deemru/w8io/026f985 97.48 ms ◑