tx · G72qiqcFjCDoriQCoyoZ2tpPv4Tp8dua9gGQYWsPFZts 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG: -0.01400000 Waves 2020.10.10 07:03 [1213965] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves
{ "type": 13, "id": "G72qiqcFjCDoriQCoyoZ2tpPv4Tp8dua9gGQYWsPFZts", "fee": 1400000, "feeAssetId": null, "timestamp": 1602302607630, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "45dsogibMzWHZGPGw2oMnyu9c2zwDoPzaNjkF2ij1a5it6iCTCi2JtH6e9iqz4fLLkqLwWkAKVcq2qs6Y1ehf7vd" ], "script": "base64:AAIEAAAAAAAAAFoIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgAAAA0AAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAADHNpZ25WZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3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AMa2V5VXNlclRodW1iAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAANa2V5VXNlclN0YXR1cwAAAAEFAAAAB2FkZHJlc3MFAAAAC3VzZXJSZW1vdmVkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAADmxhc3RfaW52b2tlX2lkBQAAAAJpZAUAAAADbmlsCQAAAgAAAAECAAAAHllvdSBhcmUgbm90IGFsbG93ZWQgdG8gZG8gdGhhdAAAAABWciuN", "height": 1213965, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 64P6W5BWr5z8fSPTrzNTRn3tLyPdeXdgf79dbBHDVzuw Next: 8orFhj3AyJFL1AJUSEi31sHAagofQrmcPH167R74bb6V Diff:
Old | New | Differences | |
---|---|---|---|
538 | 538 | let exportHash = getStringByKey(keyArtExportHash(issuer, artId)) | |
539 | 539 | let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId)) | |
540 | 540 | let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId)) | |
541 | + | let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50) | |
541 | 542 | let amountSold = getIntegerByKey(keyArtIssued(issuer, artId)) | |
542 | 543 | let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId)) | |
543 | 544 | let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId)) | |
563 | 564 | else { | |
564 | 565 | let newAmountSold = (amountSold + 1) | |
565 | 566 | let entryDate = lastBlock.timestamp | |
566 | - | let issueMeta = (((((((((((((((((((((((((("{\"version\": 1, | |
567 | + | let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1, | |
567 | 568 | \"creator\": \"" + issuer) + "\", | |
568 | 569 | \"artID\": \"") + artId) + "\", | |
569 | 570 | \"maxIssuable\": \"") + toString(maxCanSell)) + "\", | |
570 | 571 | \"signID\": \"") + signID) + "\", | |
571 | 572 | \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", | |
572 | 573 | \"source_hash\": \"") + sourceHash) + "\", | |
573 | - | \"artwork_name\": \"") + artworkName) + "\", | |
574 | + | \"artwork_name\": \"") + artworkName) + "\", | |
575 | + | \"artwork_desc\": \"") + description) + "\", | |
574 | 576 | \"display_cid\": \"") + displayCID) + "\", | |
575 | 577 | \"export_cid\": \"") + exportCID) + "\", | |
576 | 578 | \"export_hash\": \"") + exportHash) + "\", |
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 usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
13 | 13 | ||
14 | 14 | let wavesAssetId = base58'' | |
15 | 15 | ||
16 | 16 | let usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
17 | 17 | ||
18 | 18 | let admin = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
19 | 19 | ||
20 | 20 | let admin2 = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
21 | 21 | ||
22 | 22 | let WHITELISTEDONLY = true | |
23 | 23 | ||
24 | 24 | let userAllowed = "ALLOWED" | |
25 | 25 | ||
26 | 26 | let userRegistered = "REGISTERED" | |
27 | 27 | ||
28 | 28 | let userVerified = "VERIFIED" | |
29 | 29 | ||
30 | 30 | let userSuspended = "SUSPENDED" | |
31 | 31 | ||
32 | 32 | let userRemoved = "REMOVED" | |
33 | 33 | ||
34 | 34 | let userUnregistered = "UNREGISTERED" | |
35 | 35 | ||
36 | 36 | let onSale = "ON_SALE" | |
37 | 37 | ||
38 | 38 | let sold = "SOLD" | |
39 | 39 | ||
40 | 40 | let canceled = "CANCELED" | |
41 | 41 | ||
42 | 42 | func getStringByKey (key) = match getString(this, key) { | |
43 | 43 | case a: String => | |
44 | 44 | a | |
45 | 45 | case _ => | |
46 | 46 | "" | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func getIntegerByKey (key) = match getInteger(this, key) { | |
51 | 51 | case i: Int => | |
52 | 52 | i | |
53 | 53 | case _ => | |
54 | 54 | 0 | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func getBooleanByKey (key) = match getBoolean(this, key) { | |
59 | 59 | case i: Boolean => | |
60 | 60 | i | |
61 | 61 | case _ => | |
62 | 62 | false | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signVerifier, ((("data_fc_" + signID) + "_") + Owner)) { | |
67 | 67 | case a: String => | |
68 | 68 | if (contains(a, sha256Hash)) | |
69 | 69 | then true | |
70 | 70 | else false | |
71 | 71 | case _ => | |
72 | 72 | false | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func validateNFTs (accumulator,id) = { | |
77 | 77 | let assetDetails = value(assetInfo(fromBase58String(id))) | |
78 | 78 | if (if (if ((assetDetails.quantity != 1)) | |
79 | 79 | then true | |
80 | 80 | else (assetDetails.decimals != 0)) | |
81 | 81 | then true | |
82 | 82 | else (assetDetails.reissuable != false)) | |
83 | 83 | then (accumulator + 0) | |
84 | 84 | else (accumulator + 1) | |
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 keyUserStatus (callerAddr) = ("user_status_" + callerAddr) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func keyUserDate (callerAddr) = ("user_date_" + callerAddr) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func keyArtDate (callerAddr,artId) = ((("art_date_" + artId) + "_") + callerAddr) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func keyArtName (callerAddr,artId) = ((("art_name_" + artId) + "_") + callerAddr) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func keyArtDesc (callerAddr,artId) = ((("art_desc_" + artId) + "_") + callerAddr) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func keyArtDisplayCid (callerAddr,artId) = ((("art_display_cid_" + artId) + "_") + callerAddr) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func keyArtExportHash (callerAddr,artId) = ((("art_export_hash_" + artId) + "_") + callerAddr) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func keyArtExportCid (callerAddr,artId) = ((("art_export_cid_" + artId) + "_") + callerAddr) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyArtMaxMint (callerAddr,artId) = ((("art_maxmint_" + artId) + "_") + callerAddr) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyArtSignID (callerAddr,artId) = ((("art_signid_" + artId) + "_") + callerAddr) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyArtIssued (callerAddr,artId) = ((("art_issued_" + artId) + "_") + callerAddr) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyArtOnSale (callerAddr,artId) = ((("art_onsale_" + artId) + "_") + callerAddr) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func keyArtLicenceHash (callerAddr,artId) = ((("art_licence_hash_" + artId) + "_") + callerAddr) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func keyArtLicenceCid (callerAddr,artId) = ((("art_licence_cid_" + artId) + "_") + callerAddr) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func keyArtTags (callerAddr,artId) = ((("art_tags_" + artId) + "_") + callerAddr) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func keyArtType (callerAddr,artId) = ((("art_type_" + artId) + "_") + callerAddr) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func keyArtPrice (callerAddr,artId) = ((("art_price_" + artId) + "_") + callerAddr) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func keyArtAssetIdAccepted (callerAddr,artId) = ((("art_assetAccepted_" + artId) + "_") + callerAddr) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func keyArtHashByTxidAddr (callerAddr,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + callerAddr) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func keyArtArtidBySignid (callerAddr,signId) = ((("get_artidbysignid_" + signId) + "_") + callerAddr) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func keyArtTxidByHashOwner (sha256Hash,callerAddr) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + callerAddr))))) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | @Callable(i) | |
178 | 178 | func registerUser (name,description,thumb,social) = { | |
179 | 179 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
180 | 180 | let userCanRegister = getStringByKey(keyUserStatus(callerAddr)) | |
181 | 181 | let id = toBase58String(i.transactionId) | |
182 | 182 | let timestamp = lastBlock.timestamp | |
183 | 183 | if (if ((userCanRegister == userSuspended)) | |
184 | 184 | then true | |
185 | 185 | else (userCanRegister == userRemoved)) | |
186 | 186 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
187 | 187 | else if ((userCanRegister == userRegistered)) | |
188 | 188 | then throw("You are already registered, please use update method instead.") | |
189 | 189 | else if (if ((userCanRegister == "")) | |
190 | 190 | then WHITELISTEDONLY | |
191 | 191 | else false) | |
192 | 192 | then throw("You are now allowed to register yet, please contact us first to get approved.") | |
193 | 193 | else if (if ((name == "")) | |
194 | 194 | then true | |
195 | 195 | else (description == "")) | |
196 | 196 | then throw("Name and description cannot be empty") | |
197 | 197 | else if ((size(description) > 600)) | |
198 | 198 | then throw("600 Characters maximum for the description") | |
199 | 199 | 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)] | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | ||
204 | 204 | @Callable(i) | |
205 | 205 | func deleteEntry (entry) = { | |
206 | 206 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
207 | 207 | if ((callerAddr == admin)) | |
208 | 208 | then [DeleteEntry(entry)] | |
209 | 209 | else throw("no") | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(i) | |
215 | 215 | func updateUser (name,description,thumb,social) = { | |
216 | 216 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
217 | 217 | let userCanRegister = getStringByKey(keyUserStatus(callerAddr)) | |
218 | 218 | if (if ((userCanRegister == userSuspended)) | |
219 | 219 | then true | |
220 | 220 | else (userCanRegister == userRemoved)) | |
221 | 221 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
222 | 222 | else if (if ((userCanRegister == "")) | |
223 | 223 | then true | |
224 | 224 | else (userCanRegister == userAllowed)) | |
225 | 225 | then throw("Please register first with registerUser") | |
226 | 226 | else { | |
227 | 227 | let id = toBase58String(i.transactionId) | |
228 | 228 | let timestamp = lastBlock.timestamp | |
229 | 229 | if (if ((name == "")) | |
230 | 230 | then true | |
231 | 231 | else (description == "")) | |
232 | 232 | then throw("Name and description cannot be empty") | |
233 | 233 | else if ((size(description) > 600)) | |
234 | 234 | then throw("600 Characters maximum for the description") | |
235 | 235 | else [StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb), StringEntry("last_invoke_id", id)] | |
236 | 236 | } | |
237 | 237 | } | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | ||
241 | 241 | @Callable(i) | |
242 | 242 | func changeUserStatus (address,status) = { | |
243 | 243 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
244 | 244 | let id = toBase58String(i.transactionId) | |
245 | 245 | let statusToSet = if ((status == userVerified)) | |
246 | 246 | then userVerified | |
247 | 247 | else if ((status == userRegistered)) | |
248 | 248 | then userRegistered | |
249 | 249 | else if ((status == userSuspended)) | |
250 | 250 | then userSuspended | |
251 | 251 | else if ((status == userRemoved)) | |
252 | 252 | then userRemoved | |
253 | 253 | else if ((status == userAllowed)) | |
254 | 254 | then userAllowed | |
255 | 255 | else throw("Unknown status") | |
256 | 256 | if (if ((callerAddr == admin)) | |
257 | 257 | then true | |
258 | 258 | else (callerAddr == admin2)) | |
259 | 259 | then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)] | |
260 | 260 | else throw(((("You are not allowed to change user status " + callerAddr) + " / ") + admin)) | |
261 | 261 | } | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | ||
265 | 265 | @Callable(i) | |
266 | 266 | func creditUser (address) = { | |
267 | 267 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
268 | 268 | let id = toBase58String(i.transactionId) | |
269 | 269 | if (if ((callerAddr == admin)) | |
270 | 270 | then true | |
271 | 271 | else (callerAddr == admin2)) | |
272 | 272 | then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)] | |
273 | 273 | else throw("You are not allowed to do that") | |
274 | 274 | } | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | ||
278 | 278 | @Callable(invoke) | |
279 | 279 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
280 | 280 | let artId = toBase58String(invoke.transactionId) | |
281 | 281 | let callerAddress = toBase58String(invoke.caller.bytes) | |
282 | 282 | if ((size(invoke.payments) == 0)) | |
283 | 283 | then throw("No payment attached") | |
284 | 284 | else { | |
285 | 285 | let payment = value(invoke.payments[0]) | |
286 | 286 | let amount = value(payment.amount) | |
287 | 287 | let assetId = if (if (isDefined(payment.assetId)) | |
288 | 288 | then (payment.assetId == signAssetId) | |
289 | 289 | else false) | |
290 | 290 | then payment.assetId | |
291 | 291 | else throw("Only SIGN token accepted at the moment") | |
292 | 292 | let currentCertificationPrice = match getInteger(storageVerifier, ("certification_fee_" + toBase58String(signAssetId))) { | |
293 | 293 | case price: Int => | |
294 | 294 | price | |
295 | 295 | case _ => | |
296 | 296 | throw("Price undefined in oracle") | |
297 | 297 | } | |
298 | 298 | if ((amount != currentCertificationPrice)) | |
299 | 299 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
300 | 300 | else { | |
301 | 301 | let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress)) | |
302 | 302 | if ((entryExist != "")) | |
303 | 303 | then throw("You already added this artwork on Sign Art") | |
304 | 304 | else { | |
305 | 305 | let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash)) | |
306 | 306 | if ((hashExist != "")) | |
307 | 307 | then throw("This artwork hash is already registered on Sign Art") | |
308 | 308 | else { | |
309 | 309 | let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash) | |
310 | 310 | if (!(isSignCertified)) | |
311 | 311 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
312 | 312 | else if ((size(cidDisplay) == 0)) | |
313 | 313 | then throw("Display CID cannot be empty") | |
314 | 314 | else if ((size(name) == 0)) | |
315 | 315 | then throw("Title cannot be empty") | |
316 | 316 | else if ((size(name) > 100)) | |
317 | 317 | then throw("100 Characters maximum for the name") | |
318 | 318 | else if ((size(description) > 1000)) | |
319 | 319 | then throw("1000 Characters maximum for the description") | |
320 | 320 | else if ((size(description) == 0)) | |
321 | 321 | then throw("Description cannot be empty") | |
322 | 322 | else { | |
323 | 323 | let tagsList = split(tags, ",") | |
324 | 324 | if ((size(tagsList) > 5)) | |
325 | 325 | then throw("Tags should be maximum 5 single word separated by space.") | |
326 | 326 | else { | |
327 | 327 | let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) { | |
328 | 328 | case s: String => | |
329 | 329 | s | |
330 | 330 | case _ => | |
331 | 331 | userUnregistered | |
332 | 332 | } | |
333 | 333 | let timestamp = lastBlock.timestamp | |
334 | 334 | if (if (isDefined(userIsRegistered)) | |
335 | 335 | then (userIsRegistered == userUnregistered) | |
336 | 336 | else false) | |
337 | 337 | then throw("Please register this account first with \"User infos\" tab") | |
338 | 338 | else if ((userIsRegistered == userSuspended)) | |
339 | 339 | then throw("Your account is suspended") | |
340 | 340 | else if ((userIsRegistered == userRemoved)) | |
341 | 341 | then throw("Your account have been removed") | |
342 | 342 | else if ((maxmint > 10)) | |
343 | 343 | then throw("Maximum 10 editions per artwork") | |
344 | 344 | else if ((size(sha256Hash) != 64)) | |
345 | 345 | then throw("Hash should be sha256 string composed of 64 char.") | |
346 | 346 | 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)] | |
347 | 347 | } | |
348 | 348 | } | |
349 | 349 | } | |
350 | 350 | } | |
351 | 351 | } | |
352 | 352 | } | |
353 | 353 | } | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | ||
357 | 357 | @Callable(invoke) | |
358 | 358 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
359 | 359 | let updateId = toBase58String(invoke.transactionId) | |
360 | 360 | let callerAddress = toBase58String(invoke.caller.bytes) | |
361 | 361 | let entryExist = getStringByKey(keyArtName(callerAddress, txid)) | |
362 | 362 | if ((entryExist == "")) | |
363 | 363 | then throw("This entry doesn't exist or you are not the owner") | |
364 | 364 | else if ((size(name) == 0)) | |
365 | 365 | then throw("Title cannot be empty") | |
366 | 366 | else if ((size(name) > 100)) | |
367 | 367 | then throw("100 Characters maximum for the name") | |
368 | 368 | else if ((size(description) > 1000)) | |
369 | 369 | then throw("1000 Characters maximum for the description") | |
370 | 370 | else if ((size(description) == 0)) | |
371 | 371 | then throw("Description cannot be empty") | |
372 | 372 | else { | |
373 | 373 | let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, txid)) { | |
374 | 374 | case b: Int => | |
375 | 375 | if ((b == 0)) | |
376 | 376 | then false | |
377 | 377 | else true | |
378 | 378 | case _ => | |
379 | 379 | false | |
380 | 380 | } | |
381 | 381 | let tagsList = split(tags, ",") | |
382 | 382 | if ((size(tagsList) > 5)) | |
383 | 383 | then throw("Tags should be maximum 5 single word separated by space.") | |
384 | 384 | else { | |
385 | 385 | let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) { | |
386 | 386 | case s: String => | |
387 | 387 | s | |
388 | 388 | case _ => | |
389 | 389 | userUnregistered | |
390 | 390 | } | |
391 | 391 | if (if (isDefined(userIsRegistered)) | |
392 | 392 | then (userIsRegistered == userUnregistered) | |
393 | 393 | else false) | |
394 | 394 | then throw("Please register this account first with \"User infos\" tab") | |
395 | 395 | else if ((userIsRegistered == userSuspended)) | |
396 | 396 | then throw("Your account is suspended") | |
397 | 397 | else if ((userIsRegistered == userRemoved)) | |
398 | 398 | then throw("Your account have been removed") | |
399 | 399 | else if ((maxmint > 10)) | |
400 | 400 | then throw("Maximum 10 editions per artwork") | |
401 | 401 | else if (!(artworkMinted)) | |
402 | 402 | 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)] | |
403 | 403 | 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)] | |
404 | 404 | } | |
405 | 405 | } | |
406 | 406 | } | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | ||
410 | 410 | @Callable(i) | |
411 | 411 | func deleteArtwork (artId,address) = { | |
412 | 412 | let callerAddress = toString(addressFromPublicKey(i.callerPublicKey)) | |
413 | 413 | let id = toBase58String(i.transactionId) | |
414 | 414 | let addressToUse = if (if ((callerAddress == admin)) | |
415 | 415 | then true | |
416 | 416 | else (callerAddress == admin2)) | |
417 | 417 | then address | |
418 | 418 | else callerAddress | |
419 | 419 | let entryExist = match getString(this, keyArtName(addressToUse, artId)) { | |
420 | 420 | case s: String => | |
421 | 421 | s | |
422 | 422 | case _ => | |
423 | 423 | throw("No artwork matching this request or you are not allowed") | |
424 | 424 | } | |
425 | 425 | let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) { | |
426 | 426 | case b: Int => | |
427 | 427 | if ((b == 0)) | |
428 | 428 | then false | |
429 | 429 | else true | |
430 | 430 | case _ => | |
431 | 431 | false | |
432 | 432 | } | |
433 | 433 | let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) { | |
434 | 434 | case s: String => | |
435 | 435 | s | |
436 | 436 | case _ => | |
437 | 437 | throw("No artwork hash matching this request") | |
438 | 438 | } | |
439 | 439 | let signID = match getString(this, keyArtSignID(addressToUse, artId)) { | |
440 | 440 | case s: String => | |
441 | 441 | s | |
442 | 442 | case _ => | |
443 | 443 | throw("No SIGN ID matching this request") | |
444 | 444 | } | |
445 | 445 | 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))] | |
446 | 446 | if (if ((callerAddress == admin)) | |
447 | 447 | then true | |
448 | 448 | else (callerAddress == admin2)) | |
449 | 449 | then dataToDelete | |
450 | 450 | else if (!(artworkMinted)) | |
451 | 451 | then dataToDelete | |
452 | 452 | else throw("This artwork already have minted NFT, you cannot delete it") | |
453 | 453 | } | |
454 | 454 | ||
455 | 455 | ||
456 | 456 | ||
457 | 457 | @Callable(invoke) | |
458 | 458 | func sellArtwork (artId,price,maxMint,assetId) = { | |
459 | 459 | let id = toBase58String(invoke.transactionId) | |
460 | 460 | let callerAddress = toBase58String(invoke.caller.bytes) | |
461 | 461 | let sellDate = lastBlock.timestamp | |
462 | 462 | let exportCID = getStringByKey(keyArtExportCid(callerAddress, artId)) | |
463 | 463 | if ((size(exportCID) == 0)) | |
464 | 464 | then throw("You cannot sell artwork with no export file") | |
465 | 465 | else { | |
466 | 466 | let exportHash = getStringByKey(keyArtExportHash(callerAddress, artId)) | |
467 | 467 | if ((size(exportHash) == 0)) | |
468 | 468 | then throw("You cannot sell artwork with no export hash") | |
469 | 469 | else if (if (if ((assetId != toBase58String(signAssetId))) | |
470 | 470 | then (assetId != toBase58String(wavesAssetId)) | |
471 | 471 | else false) | |
472 | 472 | then (assetId != toBase58String(usdnAssetId)) | |
473 | 473 | else false) | |
474 | 474 | then throw("Only SIGN, USDN or WAVES currency accepted at the moment") | |
475 | 475 | else { | |
476 | 476 | let artworkName = match getString(this, keyArtName(callerAddress, artId)) { | |
477 | 477 | case s: String => | |
478 | 478 | s | |
479 | 479 | case _ => | |
480 | 480 | throw("This artwork doesn't exit or you are not the owner") | |
481 | 481 | } | |
482 | 482 | let userIsRegistered = match getString(this, keyUserStatus(callerAddress)) { | |
483 | 483 | case s: String => | |
484 | 484 | s | |
485 | 485 | case _ => | |
486 | 486 | throw("Please register this account first") | |
487 | 487 | } | |
488 | 488 | let amountSold = match getInteger(this, keyArtIssued(callerAddress, artId)) { | |
489 | 489 | case n: Int => | |
490 | 490 | n | |
491 | 491 | case _ => | |
492 | 492 | 0 | |
493 | 493 | } | |
494 | 494 | let maxCanSell = match getInteger(this, keyArtMaxMint(callerAddress, artId)) { | |
495 | 495 | case n: Int => | |
496 | 496 | n | |
497 | 497 | case _ => | |
498 | 498 | 0 | |
499 | 499 | } | |
500 | 500 | if (if ((amountSold != 0)) | |
501 | 501 | then (amountSold == maxCanSell) | |
502 | 502 | else false) | |
503 | 503 | then throw("You reached the max edition allowed to sell for this edition.") | |
504 | 504 | else if (if ((amountSold > 0)) | |
505 | 505 | then (maxCanSell != maxMint) | |
506 | 506 | else false) | |
507 | 507 | then throw("You cannot change the maximum issuable anymore") | |
508 | 508 | else if ((userIsRegistered == userSuspended)) | |
509 | 509 | then throw("Your account is suspended") | |
510 | 510 | else if ((userIsRegistered == userRemoved)) | |
511 | 511 | then throw("Your account have been deleted") | |
512 | 512 | else { | |
513 | 513 | let sellStatus = if ((price > 0)) | |
514 | 514 | then true | |
515 | 515 | else false | |
516 | 516 | [BooleanEntry(keyArtOnSale(callerAddress, artId), sellStatus), IntegerEntry(keyArtPrice(callerAddress, artId), price), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxMint), StringEntry(keyArtAssetIdAccepted(callerAddress, artId), assetId), StringEntry("last_invoke_id", id)] | |
517 | 517 | } | |
518 | 518 | } | |
519 | 519 | } | |
520 | 520 | } | |
521 | 521 | ||
522 | 522 | ||
523 | 523 | ||
524 | 524 | @Callable(invoke) | |
525 | 525 | func buyArtwork (artId,issuer) = { | |
526 | 526 | let id = toBase58String(invoke.transactionId) | |
527 | 527 | let callerAddress = toBase58String(invoke.caller.bytes) | |
528 | 528 | let totalNFT = getIntegerByKey("total_nft_issued") | |
529 | 529 | let signID = getStringByKey(keyArtSignID(issuer, artId)) | |
530 | 530 | let artworkName = match getString(this, keyArtName(issuer, artId)) { | |
531 | 531 | case s: String => | |
532 | 532 | s | |
533 | 533 | case _ => | |
534 | 534 | throw("This artwork doesn't exit") | |
535 | 535 | } | |
536 | 536 | let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId)) | |
537 | 537 | let exportCID = getStringByKey(keyArtExportCid(issuer, artId)) | |
538 | 538 | let exportHash = getStringByKey(keyArtExportHash(issuer, artId)) | |
539 | 539 | let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId)) | |
540 | 540 | let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId)) | |
541 | + | let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50) | |
541 | 542 | let amountSold = getIntegerByKey(keyArtIssued(issuer, artId)) | |
542 | 543 | let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId)) | |
543 | 544 | let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId)) | |
544 | 545 | let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId)) | |
545 | 546 | let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId)) | |
546 | 547 | if ((artworkPrice == 0)) | |
547 | 548 | then throw("This artwork is not for sell") | |
548 | 549 | else if (!(isOnSale)) | |
549 | 550 | then throw("This artwork is not for sale") | |
550 | 551 | else { | |
551 | 552 | let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId)) | |
552 | 553 | let payment = value(invoke.payments[0]) | |
553 | 554 | let amount = value(payment.amount) | |
554 | 555 | let assetId = if (if (isDefined(payment.assetId)) | |
555 | 556 | then (payment.assetId == fromBase58String(priceAssetId)) | |
556 | 557 | else false) | |
557 | 558 | then payment.assetId | |
558 | 559 | else throw((("Only " + priceAssetId) + " token id accepted at the moment")) | |
559 | 560 | if ((amountSold == maxCanSell)) | |
560 | 561 | then throw("Cannot buy this artwork anymore, maximum editions reached") | |
561 | 562 | else if ((artworkPrice != amount)) | |
562 | 563 | then throw(((("Payment don't match seller price: " + toString(artworkPrice)) + " vs ") + toString(amount))) | |
563 | 564 | else { | |
564 | 565 | let newAmountSold = (amountSold + 1) | |
565 | 566 | let entryDate = lastBlock.timestamp | |
566 | - | let issueMeta = (((((((((((((((((((((((((("{\"version\": 1, | |
567 | + | let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1, | |
567 | 568 | \"creator\": \"" + issuer) + "\", | |
568 | 569 | \"artID\": \"") + artId) + "\", | |
569 | 570 | \"maxIssuable\": \"") + toString(maxCanSell)) + "\", | |
570 | 571 | \"signID\": \"") + signID) + "\", | |
571 | 572 | \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", | |
572 | 573 | \"source_hash\": \"") + sourceHash) + "\", | |
573 | - | \"artwork_name\": \"") + artworkName) + "\", | |
574 | + | \"artwork_name\": \"") + artworkName) + "\", | |
575 | + | \"artwork_desc\": \"") + description) + "\", | |
574 | 576 | \"display_cid\": \"") + displayCID) + "\", | |
575 | 577 | \"export_cid\": \"") + exportCID) + "\", | |
576 | 578 | \"export_hash\": \"") + exportHash) + "\", | |
577 | 579 | \"licence_cid\": \"") + licenceCID) + "\", | |
578 | 580 | \"licence_hash\": \"") + licenceHash) + "\"}") | |
579 | 581 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
580 | 582 | let idNFT = calculateAssetId(issueNFT) | |
581 | 583 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
582 | 584 | then false | |
583 | 585 | else true | |
584 | 586 | [IntegerEntry(keyArtIssued(issuer, artId), newAmountSold), StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer), ((((((callerAddress + "_") + toString(entryDate)) + "_") + id) + "_") + toString(artworkPrice))), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyArtOnSale(issuer, artId), sellStatus), StringEntry("last_invoke_id", id), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amount, assetId), ScriptTransfer(invoke.caller, 1, idNFT)] | |
585 | 587 | } | |
586 | 588 | } | |
587 | 589 | } | |
588 | 590 | ||
589 | 591 | ||
590 | 592 | ||
591 | 593 | @Callable(i) | |
592 | 594 | func deleteUser (address) = { | |
593 | 595 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
594 | 596 | let id = toBase58String(i.transactionId) | |
595 | 597 | if (if ((callerAddr == admin)) | |
596 | 598 | then true | |
597 | 599 | else (callerAddr == admin2)) | |
598 | 600 | 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)] | |
599 | 601 | else throw("You are not allowed to do that") | |
600 | 602 | } | |
601 | 603 | ||
602 | 604 |
github/deemru/w8io/026f985 69.39 ms ◑