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