tx · GdmiYJ8wnFCb1NRZCpMWJA6g86GSoqyueuhG5o34f1na 3My71eA5781UVppziZNzPzoaXoQ79XLfpou: -0.01400000 Waves 2020.09.17 14:00 [1181190] smart account 3My71eA5781UVppziZNzPzoaXoQ79XLfpou > SELF 0.00000000 Waves
{ "type": 13, "id": "GdmiYJ8wnFCb1NRZCpMWJA6g86GSoqyueuhG5o34f1na", "fee": 1400000, "feeAssetId": null, "timestamp": 1600340473471, "version": 2, "chainId": 84, "sender": "3My71eA5781UVppziZNzPzoaXoQ79XLfpou", "senderPublicKey": "xu7oh5A3xfh5PtSRAoZLCyetRFpcf6bq7bCzGtTCUyL", "proofs": [ "4h3M1rv9W3N3hPg3W4g6bM2A4MY2srZVGyAgVkcKsTw7CiQ1t8aMtLacPtYD5LkF7HKawDQEpHHH9gnVw7f3cZS3" ], "script": "base64:AAIEAAAAAAAAAFMIAhIGCgQICAgIEgYKBAgICAgSBAoCCAgSAwoBCBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIECgIIARIECgIICAAAADAAAAAAD3N0b3JhZ2VWZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAANdXNlcldoaXRlbGlzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXBKRWIzNlpReWsxaGFLbm9jYXlKY1lNMzFjTlBYUGlLMwAAAAAMc2lnblZlcmlmaWVyCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQzI4aFNpdnJtc1RVWGFZRDF4NkwzNjJKNFpwVW5vVGRCAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAAC3NpZ25Bc3NldElkAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAGdXNkbklEAgAA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AAAAICAAAADmxhc3RfaW52b2tlX2lkBQAAAAJpZAkABEwAAAACBQAAAAhpc3N1ZU5GVAkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAALYXJ0X29uc2FsZV8FAAAAB2VudHJ5SUQCAAAAAV8FAAAADWNhbGxlckFkZHJlc3MFAAAACnNlbGxTdGF0dXMJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAABmlzc3VlcgUAAAAGYW1vdW50BQAAAAdhc3NldElkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAZpbnZva2UAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAVpZE5GVAUAAAADbmlsAAAAAMVH7ts=", "height": 1181190, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 47kf6Q4iNpqKpBJMjfhQBNEPSZxKb3GWc5cUzDqukrpz Next: 63fXdVE3mMPjG3ys9xac5jmgBAXybrHtUm1ftawaETHa Diff:
Old | New | Differences | |
---|---|---|---|
237 | 237 | if (if ((callerAddr == admin)) | |
238 | 238 | then true | |
239 | 239 | else (callerAddr == admin2)) | |
240 | - | then [StringEntry(keyUserStatus( | |
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 |
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 | 18 | let admin2 = "3NCqpdb8jHW1d1hqZgeS9AE2MJ2Keh95jMC" | |
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 | - | then [StringEntry(keyUserStatus( | |
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 ((callerAddr != admin)) | |
251 | 251 | then throw("You are not allowed to do that") | |
252 | 252 | else [DeleteEntry(keyUserDate(callerAddr)), DeleteEntry(keyUserAddr(callerAddr)), DeleteEntry(keyUserName(callerAddr)), DeleteEntry(keyUserDesc(callerAddr)), DeleteEntry(keyUserSocial(callerAddr)), DeleteEntry(keyUserThumb(callerAddr)), DeleteEntry(keyUserIsArtist(callerAddr)), StringEntry(keyUserStatus(callerAddr), userRemoved), StringEntry("last_invoke_id", id)] | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | ||
257 | 257 | @Callable(i) | |
258 | 258 | func suspendUser (address) = { | |
259 | 259 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
260 | 260 | let id = toBase58String(i.transactionId) | |
261 | 261 | if ((callerAddr != admin)) | |
262 | 262 | then throw("You are not allowed to do that") | |
263 | 263 | else [StringEntry(keyUserStatus(callerAddr), userSuspended), StringEntry("last_invoke_id", id)] | |
264 | 264 | } | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | ||
268 | 268 | @Callable(invoke) | |
269 | 269 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
270 | 270 | let artId = toBase58String(invoke.transactionId) | |
271 | 271 | let callerAddress = toBase58String(invoke.caller.bytes) | |
272 | 272 | if ((size(invoke.payments) == 0)) | |
273 | 273 | then throw("No payment attached") | |
274 | 274 | else { | |
275 | 275 | let payment = value(invoke.payments[0]) | |
276 | 276 | let amount = value(payment.amount) | |
277 | 277 | let assetId = if (if (isDefined(payment.assetId)) | |
278 | 278 | then (payment.assetId == signAssetId) | |
279 | 279 | else false) | |
280 | 280 | then payment.assetId | |
281 | 281 | else throw("Only SIGN token accepted at the moment") | |
282 | 282 | let currentCertificationPrice = match getInteger(storageVerifier, ("certification_fee_" + toBase58String(signAssetId))) { | |
283 | 283 | case price: Int => | |
284 | 284 | price | |
285 | 285 | case _ => | |
286 | 286 | throw("Price undefined in oracle") | |
287 | 287 | } | |
288 | 288 | if ((amount != currentCertificationPrice)) | |
289 | 289 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
290 | 290 | else { | |
291 | 291 | let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress)) | |
292 | 292 | if ((entryExist != "")) | |
293 | 293 | then throw("You already added this artwork on Sign Art") | |
294 | 294 | else { | |
295 | 295 | let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash)) | |
296 | 296 | if ((hashExist != "")) | |
297 | 297 | then throw("This artwork hash is already registered on Sign Art") | |
298 | 298 | else { | |
299 | 299 | let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash) | |
300 | 300 | if (!(isSignCertified)) | |
301 | 301 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
302 | 302 | else if ((size(cidDisplay) == 0)) | |
303 | 303 | then throw("Display CID cannot be empty") | |
304 | 304 | else if ((size(name) == 0)) | |
305 | 305 | then throw("Title cannot be empty") | |
306 | 306 | else if ((size(name) > 100)) | |
307 | 307 | then throw("100 Characters maximum for the name") | |
308 | 308 | else if ((size(description) > 1000)) | |
309 | 309 | then throw("1000 Characters maximum for the description") | |
310 | 310 | else if ((size(description) == 0)) | |
311 | 311 | then throw("Description cannot be empty") | |
312 | 312 | else { | |
313 | 313 | let tagsList = split(tags, ",") | |
314 | 314 | if ((size(tagsList) > 5)) | |
315 | 315 | then throw("Tags should be maximum 5 single word separated by space.") | |
316 | 316 | else { | |
317 | 317 | let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) { | |
318 | 318 | case s: String => | |
319 | 319 | s | |
320 | 320 | case _ => | |
321 | 321 | userUnregistered | |
322 | 322 | } | |
323 | 323 | let timestamp = lastBlock.timestamp | |
324 | 324 | if (if (isDefined(userIsRegistered)) | |
325 | 325 | then (userIsRegistered == userUnregistered) | |
326 | 326 | else false) | |
327 | 327 | then throw("Please register this account first with \"User infos\" tab") | |
328 | 328 | else if ((userIsRegistered == userSuspended)) | |
329 | 329 | then throw("Your account is suspended") | |
330 | 330 | else if ((userIsRegistered == userRemoved)) | |
331 | 331 | then throw("Your account have been removed") | |
332 | 332 | else if ((maxmint > 10)) | |
333 | 333 | then throw("Maximum 10 editions per artwork") | |
334 | 334 | else if ((size(sha256Hash) != 64)) | |
335 | 335 | then throw("Hash should be sha256 string composed of 64 char.") | |
336 | 336 | 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)] | |
337 | 337 | } | |
338 | 338 | } | |
339 | 339 | } | |
340 | 340 | } | |
341 | 341 | } | |
342 | 342 | } | |
343 | 343 | } | |
344 | 344 | ||
345 | 345 | ||
346 | 346 | ||
347 | 347 | @Callable(invoke) | |
348 | 348 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
349 | 349 | let updateId = toBase58String(invoke.transactionId) | |
350 | 350 | let callerAddress = toBase58String(invoke.caller.bytes) | |
351 | 351 | let entryExist = getStringByKey(keyArtName(callerAddress, txid)) | |
352 | 352 | if ((entryExist == "")) | |
353 | 353 | then throw("This entry doesn't exist or you are not the owner") | |
354 | 354 | else if ((size(name) == 0)) | |
355 | 355 | then throw("Title cannot be empty") | |
356 | 356 | else if ((size(name) > 100)) | |
357 | 357 | then throw("100 Characters maximum for the name") | |
358 | 358 | else if ((size(description) > 1000)) | |
359 | 359 | then throw("1000 Characters maximum for the description") | |
360 | 360 | else if ((size(description) == 0)) | |
361 | 361 | then throw("Description cannot be empty") | |
362 | 362 | else { | |
363 | 363 | let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, txid)) { | |
364 | 364 | case b: Int => | |
365 | 365 | if ((b == 0)) | |
366 | 366 | then false | |
367 | 367 | else true | |
368 | 368 | case _ => | |
369 | 369 | throw("Something went wrong.") | |
370 | 370 | } | |
371 | 371 | let tagsList = split(tags, ",") | |
372 | 372 | if ((size(tagsList) > 5)) | |
373 | 373 | then throw("Tags should be maximum 5 single word separated by space.") | |
374 | 374 | else { | |
375 | 375 | let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) { | |
376 | 376 | case s: String => | |
377 | 377 | s | |
378 | 378 | case _ => | |
379 | 379 | userUnregistered | |
380 | 380 | } | |
381 | 381 | if (if (isDefined(userIsRegistered)) | |
382 | 382 | then (userIsRegistered == userUnregistered) | |
383 | 383 | else false) | |
384 | 384 | then throw("Please register this account first with \"User infos\" tab") | |
385 | 385 | else if ((userIsRegistered == userSuspended)) | |
386 | 386 | then throw("Your account is suspended") | |
387 | 387 | else if ((userIsRegistered == userRemoved)) | |
388 | 388 | then throw("Your account have been removed") | |
389 | 389 | else if ((maxmint > 10)) | |
390 | 390 | then throw("Maximum 10 editions per artwork") | |
391 | 391 | else if (!(artworkMinted)) | |
392 | 392 | 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)] | |
393 | 393 | 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)] | |
394 | 394 | } | |
395 | 395 | } | |
396 | 396 | } | |
397 | 397 | ||
398 | 398 | ||
399 | 399 | ||
400 | 400 | @Callable(i) | |
401 | 401 | func deleteArtwork (artId,ownerAddress) = { | |
402 | 402 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
403 | 403 | let id = toBase58String(i.transactionId) | |
404 | 404 | if ((callerAddr != admin)) | |
405 | 405 | then throw("You are not allowed to do that") | |
406 | 406 | 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)] | |
407 | 407 | } | |
408 | 408 | ||
409 | 409 | ||
410 | 410 | ||
411 | 411 | @Callable(invoke) | |
412 | 412 | func sellArtwork (hash,price) = { | |
413 | 413 | let id = toBase58String(invoke.transactionId) | |
414 | 414 | let callerAddress = toBase58String(invoke.caller.bytes) | |
415 | 415 | let entryDate = lastBlock.timestamp | |
416 | 416 | let entryID = getStringByKey(((hash + "_") + callerAddress)) | |
417 | 417 | if (!(isDefined(entryID))) | |
418 | 418 | then throw("This artwork doesn't exit or you are not the owner") | |
419 | 419 | else { | |
420 | 420 | let userIsRegistered = getStringByKey(("user_status_" + callerAddress)) | |
421 | 421 | if ((userIsRegistered == "")) | |
422 | 422 | then throw("Please register this account first") | |
423 | 423 | else { | |
424 | 424 | let amountSold = getIntegerByKey(((("art_issued_" + entryID) + "_") + callerAddress)) | |
425 | 425 | let maxCanSell = getIntegerByKey(((("art_maxmint_" + entryID) + "_") + callerAddress)) | |
426 | 426 | if ((amountSold == maxCanSell)) | |
427 | 427 | then throw("You reached the max edition allowed to sell for this edition.") | |
428 | 428 | else if ((userIsRegistered == userSuspended)) | |
429 | 429 | then throw("Your account is suspended") | |
430 | 430 | else if (!(isDefined(entryID))) | |
431 | 431 | then throw("This artwork desn't exist") | |
432 | 432 | else if ((size(hash) != 64)) | |
433 | 433 | then throw("This hash is incorrect.") | |
434 | 434 | else { | |
435 | 435 | let sellStatus = if ((price > 0)) | |
436 | 436 | then true | |
437 | 437 | else false | |
438 | 438 | [BooleanEntry(((("art_onsale_" + entryID) + "_") + callerAddress), sellStatus), IntegerEntry(((("art_price_" + entryID) + "_") + callerAddress), price), StringEntry("last_invoke_id", id)] | |
439 | 439 | } | |
440 | 440 | } | |
441 | 441 | } | |
442 | 442 | } | |
443 | 443 | ||
444 | 444 | ||
445 | 445 | ||
446 | 446 | @Callable(invoke) | |
447 | 447 | func buyArtwork (hash,issuer) = { | |
448 | 448 | let id = toBase58String(invoke.transactionId) | |
449 | 449 | let callerAddress = toBase58String(invoke.caller.bytes) | |
450 | 450 | let totalNFT = getIntegerByKey("total_nft_issued") | |
451 | 451 | let entryID = getStringByKey(((hash + "_") + issuer)) | |
452 | 452 | if ((entryID == "")) | |
453 | 453 | then throw("This artwork doesn't exit or you are not the owner") | |
454 | 454 | else { | |
455 | 455 | let userIsRegistered = getStringByKey(("user_status_" + callerAddress)) | |
456 | 456 | if (!(isDefined(userIsRegistered))) | |
457 | 457 | then throw("Please register this account first") | |
458 | 458 | else { | |
459 | 459 | let alreadySoldList = getStringByKey(((("art_sold_" + entryID) + "_") + issuer)) | |
460 | 460 | let amountSold = getIntegerByKey(((("art_issued_" + entryID) + "_") + issuer)) | |
461 | 461 | let artworkPrice = getIntegerByKey(((("art_price_" + entryID) + "_") + issuer)) | |
462 | 462 | if ((artworkPrice == 0)) | |
463 | 463 | then throw("This artwork is not for sell") | |
464 | 464 | else { | |
465 | 465 | let maxCanSell = getIntegerByKey(((("art_maxmint_" + entryID) + "_") + issuer)) | |
466 | 466 | let payment = value(invoke.payments[0]) | |
467 | 467 | let amount = value(payment.amount) | |
468 | 468 | let assetId = if (isDefined(payment.assetId)) | |
469 | 469 | then throw("Only Waves token accepted at the moment") | |
470 | 470 | else unit | |
471 | 471 | if ((amountSold == maxCanSell)) | |
472 | 472 | then throw("Cannot buy this artwork anymore") | |
473 | 473 | else if ((artworkPrice != amount)) | |
474 | 474 | then throw("Payment don't match seller price") | |
475 | 475 | else { | |
476 | 476 | let newAmountSold = (amountSold + 1) | |
477 | 477 | let entryDate = lastBlock.timestamp | |
478 | 478 | let issueMeta = (((((((((((((("{\"version\": 1,\"artID\": \"" + entryID) + "\",\"maxIssuable\": \"") + toString(maxCanSell)) + "\",\"signID\": \"SA_") + toString((totalNFT + 1))) + "\", \"creator\": \"") + issuer) + "\", \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", \"hash\": ") + hash) + "}") | |
479 | 479 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
480 | 480 | let idNFT = calculateAssetId(issueNFT) | |
481 | 481 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
482 | 482 | then false | |
483 | 483 | else true | |
484 | 484 | [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)] | |
485 | 485 | } | |
486 | 486 | } | |
487 | 487 | } | |
488 | 488 | } | |
489 | 489 | } | |
490 | 490 | ||
491 | 491 |
github/deemru/w8io/026f985 62.79 ms ◑