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