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