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