tx · A5ewwrzvGtgchFzDoDUdqoSPybwsBJbTiWMzqhdLcnHU 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG: -0.01400000 Waves 2020.10.10 11:27 [1214236] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves
{ "type": 13, "id": "A5ewwrzvGtgchFzDoDUdqoSPybwsBJbTiWMzqhdLcnHU", "fee": 1400000, "feeAssetId": null, "timestamp": 1602318512143, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "3txwRLSwCaB1MvFRFJ1LQzVxm2sMn4UAaiu93rF8fesLAPPKJoHxVPNGRxvfMbyY4ZcDh7VuktiihGML1uZrzKoR" ], "script": "base64:AAIEAAAAAAAAAFoIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgAAAA2AAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAADHNpZ25WZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3N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AAAAEJAQAAAA1rZXlVc2VyU29jaWFsAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAMa2V5VXNlclRodW1iAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAANa2V5VXNlclN0YXR1cwAAAAEFAAAAB2FkZHJlc3MFAAAAC3VzZXJSZW1vdmVkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAADmxhc3RfaW52b2tlX2lkBQAAAAJpZAUAAAADbmlsCQAAAgAAAAECAAAAHllvdSBhcmUgbm90IGFsbG93ZWQgdG8gZG8gdGhhdAAAAAAKJ14E", "height": 1214236, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8orFhj3AyJFL1AJUSEi31sHAagofQrmcPH167R74bb6V Next: 8aqnMtMq3mMoGKvXFPvtghf41gL2ZvmvPYthkxAQRNeE Diff:
Old | New | Differences | |
---|---|---|---|
402 | 402 | let aZ = toBase58String(aE.transactionId) | |
403 | 403 | let aN = toBase58String(aE.caller.bytes) | |
404 | 404 | if (!(I(aI))) | |
405 | - | then throw("Display CID | |
405 | + | then throw("Wrong Display CID length") | |
406 | 406 | else if (!(I(aK))) | |
407 | - | then throw("Export CID | |
407 | + | then throw("Wrong Export CID length") | |
408 | 408 | else if (!(I(aM))) | |
409 | - | then throw("Licence CID | |
409 | + | then throw("Wrong Licence CID length") | |
410 | 410 | else if (!(K(aJ))) | |
411 | 411 | then throw("Export Hash should be 64 characters maximum") | |
412 | 412 | else if (!(K(aL))) | |
460 | 460 | then throw("Maximum 10 editions per artwork") | |
461 | 461 | else if (!(ba)) | |
462 | 462 | then [StringEntry(Z(aN, ap), au), StringEntry(aa(aN, ap), av), StringEntry(ab(aN, ap), aI), StringEntry(ad(aN, ap), aK), StringEntry(ac(aN, ap), aJ), StringEntry(aj(aN, ap), aM), StringEntry(ai(aN, ap), aL), IntegerEntry(ae(aN, ap), aH), StringEntry(ak(aN, ap), aF), StringEntry(al(aN, ap), aG), StringEntry("last_invoke_id", aZ)] | |
463 | - | else throw("You cannot edit artwork that have already minted NFT") | |
463 | + | else throw("You cannot edit artwork that have already minted NFT(s)") | |
464 | 464 | } | |
465 | 465 | } | |
466 | 466 | } | |
533 | 533 | let aN = toBase58String(aE.caller.bytes) | |
534 | 534 | let be = lastBlock.timestamp | |
535 | 535 | let bf = t(ad(aN, Y)) | |
536 | - | if ((size(bf) | |
536 | + | if ((size(split(bf, "/")[0]) != 59)) | |
537 | 537 | then throw("You cannot sell artwork with no export file") | |
538 | 538 | else { | |
539 | 539 | let bg = t(ac(aN, Y)) | |
540 | - | if ((size(bg) | |
540 | + | if ((size(bg) != 64)) | |
541 | 541 | then throw("You cannot sell artwork with no export hash") | |
542 | 542 | else if (if (if ((aQ != toBase58String(d))) | |
543 | 543 | then (aQ != toBase58String(f)) | |
655 | 655 | let bx = (((((((((((((((((((((((((((("{\"version\": 1, | |
656 | 656 | \"creator\": \"" + bm) + "\", | |
657 | 657 | \"artID\": \"") + Y) + "\", | |
658 | - | \"maxIssuable\": \"") + toString(bk)) + "\", | |
659 | 658 | \"signID\": \"") + B) + "\", | |
660 | - | \"issue\": \"") + toString(bv)) + "/") + toString(bk)) + "\", | |
661 | - | \"source_hash\": \"") + bu) + "\", | |
662 | 659 | \"artwork_name\": \"") + bh) + "\", | |
663 | 660 | \"artwork_desc\": \"") + av) + "\", | |
661 | + | \"issue\": \"") + toString(bv)) + "/") + toString(bk)) + "\", | |
662 | + | \"maxIssuable\": \"") + toString(bk)) + "\", | |
663 | + | \"source_hash\": \"") + bu) + "\", | |
664 | 664 | \"display_cid\": \"") + bo) + "\", | |
665 | 665 | \"export_cid\": \"") + bf) + "\", | |
666 | 666 | \"export_hash\": \"") + bg) + "\", |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let b = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
7 | 7 | ||
8 | 8 | let c = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
9 | 9 | ||
10 | 10 | let d = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
11 | 11 | ||
12 | 12 | let e = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
13 | 13 | ||
14 | 14 | let f = base58'' | |
15 | 15 | ||
16 | 16 | let g = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
17 | 17 | ||
18 | 18 | let h = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
19 | 19 | ||
20 | 20 | let i = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
21 | 21 | ||
22 | 22 | let j = true | |
23 | 23 | ||
24 | 24 | let k = "ALLOWED" | |
25 | 25 | ||
26 | 26 | let l = "REGISTERED" | |
27 | 27 | ||
28 | 28 | let m = "VERIFIED" | |
29 | 29 | ||
30 | 30 | let n = "SUSPENDED" | |
31 | 31 | ||
32 | 32 | let o = "REMOVED" | |
33 | 33 | ||
34 | 34 | let p = "UNREGISTERED" | |
35 | 35 | ||
36 | 36 | let q = "ON_SALE" | |
37 | 37 | ||
38 | 38 | let r = "SOLD" | |
39 | 39 | ||
40 | 40 | let s = "CANCELED" | |
41 | 41 | ||
42 | 42 | func t (u) = { | |
43 | 43 | let v = getString(this, u) | |
44 | 44 | if ($isInstanceOf(v, "String")) | |
45 | 45 | then { | |
46 | 46 | let w = v | |
47 | 47 | w | |
48 | 48 | } | |
49 | 49 | else "" | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func x (u) = { | |
54 | 54 | let v = getInteger(this, u) | |
55 | 55 | if ($isInstanceOf(v, "Int")) | |
56 | 56 | then { | |
57 | 57 | let y = v | |
58 | 58 | y | |
59 | 59 | } | |
60 | 60 | else 0 | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func z (u) = { | |
65 | 65 | let v = getBoolean(this, u) | |
66 | 66 | if ($isInstanceOf(v, "Boolean")) | |
67 | 67 | then { | |
68 | 68 | let y = v | |
69 | 69 | y | |
70 | 70 | } | |
71 | 71 | else false | |
72 | 72 | } | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func A (B,C,D) = { | |
76 | 76 | let v = getString(b, ((("data_fc_" + B) + "_") + C)) | |
77 | 77 | if ($isInstanceOf(v, "String")) | |
78 | 78 | then { | |
79 | 79 | let w = v | |
80 | 80 | if (contains(w, D)) | |
81 | 81 | then true | |
82 | 82 | else false | |
83 | 83 | } | |
84 | 84 | else false | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func E (F,G) = { | |
89 | 89 | let H = value(assetInfo(fromBase58String(G))) | |
90 | 90 | if (if (if ((H.quantity != 1)) | |
91 | 91 | then true | |
92 | 92 | else (H.decimals != 0)) | |
93 | 93 | then true | |
94 | 94 | else (H.reissuable != false)) | |
95 | 95 | then (F + 0) | |
96 | 96 | else (F + 1) | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func I (J) = if (if ((75 > size(J))) | |
101 | 101 | then (60 > size(split(J, "/")[0])) | |
102 | 102 | else false) | |
103 | 103 | then (16 > size(split(J, "/")[1])) | |
104 | 104 | else false | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func K (L) = (65 > size(L)) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func M (N) = { | |
111 | 111 | let v = getString(this, ("user_status_" + N)) | |
112 | 112 | if ($isInstanceOf(v, "String")) | |
113 | 113 | then { | |
114 | 114 | let O = v | |
115 | 115 | O | |
116 | 116 | } | |
117 | 117 | else throw("Something went wrong.") | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func P (Q) = ("user_" + Q) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func R (Q) = ("user_name_" + Q) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func S (Q) = ("user_desc_" + Q) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func T (Q) = ("user_social_" + Q) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func U (Q) = ("user_thumb_" + Q) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func V (Q) = ("user_status_" + Q) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func W (Q) = ("user_date_" + Q) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func X (Q,Y) = ((("art_date_" + Y) + "_") + Q) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func Z (Q,Y) = ((("art_name_" + Y) + "_") + Q) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func aa (Q,Y) = ((("art_desc_" + Y) + "_") + Q) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func ab (Q,Y) = ((("art_display_cid_" + Y) + "_") + Q) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ac (Q,Y) = ((("art_export_hash_" + Y) + "_") + Q) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func ad (Q,Y) = ((("art_export_cid_" + Y) + "_") + Q) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func ae (Q,Y) = ((("art_maxmint_" + Y) + "_") + Q) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func af (Q,Y) = ((("art_signid_" + Y) + "_") + Q) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func ag (Q,Y) = ((("art_issued_" + Y) + "_") + Q) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func ah (Q,Y) = ((("art_onsale_" + Y) + "_") + Q) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func ai (Q,Y) = ((("art_licence_hash_" + Y) + "_") + Q) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func aj (Q,Y) = ((("art_licence_cid_" + Y) + "_") + Q) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func ak (Q,Y) = ((("art_tags_" + Y) + "_") + Q) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func al (Q,Y) = ((("art_type_" + Y) + "_") + Q) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func am (Q,Y) = ((("art_price_" + Y) + "_") + Q) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func an (Q,Y) = ((("art_assetAccepted_" + Y) + "_") + Q) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func ao (Q,ap) = ((("get_hashbytxidaddr_" + ap) + "_") + Q) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func aq (D) = ("get_owner_by_hash_" + D) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func ar (Q,as) = ((("get_artidbysignid_" + as) + "_") + Q) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func at (D,Q) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((D + Q))))) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | @Callable(y) | |
203 | 203 | func registerUser (au,av,aw,ax) = { | |
204 | 204 | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
205 | 205 | let ay = t(V(Q)) | |
206 | 206 | let G = toBase58String(y.transactionId) | |
207 | 207 | let az = lastBlock.timestamp | |
208 | 208 | if (if ((ay == n)) | |
209 | 209 | then true | |
210 | 210 | else (ay == o)) | |
211 | 211 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
212 | 212 | else if ((ay == l)) | |
213 | 213 | then throw("You are already registered, please use update method instead.") | |
214 | 214 | else if (if ((ay == "")) | |
215 | 215 | then j | |
216 | 216 | else false) | |
217 | 217 | then throw("You are now allowed to register yet, please contact us first to get approved.") | |
218 | 218 | else if (if ((au == "")) | |
219 | 219 | then true | |
220 | 220 | else (av == "")) | |
221 | 221 | then throw("Name and description cannot be empty") | |
222 | 222 | else if ((size(av) > 600)) | |
223 | 223 | then throw("600 Characters maximum for the description") | |
224 | 224 | else [IntegerEntry(W(Q), az), StringEntry(P(Q), ((G + "_") + toString(lastBlock.timestamp))), StringEntry(R(Q), au), StringEntry(S(Q), av), StringEntry(T(Q), ax), StringEntry(U(Q), aw), StringEntry(V(Q), l), StringEntry("last_invoke_id", G)] | |
225 | 225 | } | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | ||
229 | 229 | @Callable(y) | |
230 | 230 | func deleteEntry (aA) = { | |
231 | 231 | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
232 | 232 | if ((Q == h)) | |
233 | 233 | then [DeleteEntry(aA)] | |
234 | 234 | else throw("no") | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | ||
239 | 239 | @Callable(y) | |
240 | 240 | func updateUser (au,av,aw,ax) = { | |
241 | 241 | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
242 | 242 | let ay = t(V(Q)) | |
243 | 243 | if (if ((ay == n)) | |
244 | 244 | then true | |
245 | 245 | else (ay == o)) | |
246 | 246 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
247 | 247 | else if (if ((ay == "")) | |
248 | 248 | then true | |
249 | 249 | else (ay == k)) | |
250 | 250 | then throw("Please register first with registerUser") | |
251 | 251 | else { | |
252 | 252 | let G = toBase58String(y.transactionId) | |
253 | 253 | let az = lastBlock.timestamp | |
254 | 254 | if (if ((au == "")) | |
255 | 255 | then true | |
256 | 256 | else (av == "")) | |
257 | 257 | then throw("Name and description cannot be empty") | |
258 | 258 | else if ((size(av) > 600)) | |
259 | 259 | then throw("600 Characters maximum for the description") | |
260 | 260 | else [StringEntry(R(Q), au), StringEntry(S(Q), av), StringEntry(T(Q), ax), StringEntry(U(Q), aw), StringEntry("last_invoke_id", G)] | |
261 | 261 | } | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | ||
266 | 266 | @Callable(y) | |
267 | 267 | func changeUserStatus (aB,aC) = { | |
268 | 268 | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
269 | 269 | let G = toBase58String(y.transactionId) | |
270 | 270 | let aD = if ((aC == m)) | |
271 | 271 | then m | |
272 | 272 | else if ((aC == l)) | |
273 | 273 | then l | |
274 | 274 | else if ((aC == n)) | |
275 | 275 | then n | |
276 | 276 | else if ((aC == o)) | |
277 | 277 | then o | |
278 | 278 | else if ((aC == k)) | |
279 | 279 | then k | |
280 | 280 | else throw("Unknown status") | |
281 | 281 | if (if ((Q == h)) | |
282 | 282 | then true | |
283 | 283 | else (Q == i)) | |
284 | 284 | then [StringEntry(V(aB), aD), StringEntry("last_invoke_id", G)] | |
285 | 285 | else throw(((("You are not allowed to change user status " + Q) + " / ") + h)) | |
286 | 286 | } | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | ||
290 | 290 | @Callable(y) | |
291 | 291 | func creditUser (aB) = { | |
292 | 292 | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
293 | 293 | let G = toBase58String(y.transactionId) | |
294 | 294 | if (if ((Q == h)) | |
295 | 295 | then true | |
296 | 296 | else (Q == i)) | |
297 | 297 | then [ScriptTransfer(Address(fromBase58String(aB)), 150000000000, d)] | |
298 | 298 | else throw("You are not allowed to do that") | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | ||
303 | 303 | @Callable(aE) | |
304 | 304 | func addArtwork (D,B,au,av,aF,aG,aH,aI,aJ,aK,aL,aM) = { | |
305 | 305 | let Y = toBase58String(aE.transactionId) | |
306 | 306 | let aN = toBase58String(aE.caller.bytes) | |
307 | 307 | if (!(I(aI))) | |
308 | 308 | then throw("Wrong Display CID length") | |
309 | 309 | else if (!(I(aK))) | |
310 | 310 | then throw("Wrong Export CID length") | |
311 | 311 | else if (!(I(aM))) | |
312 | 312 | then throw("Wrong Licence CID length") | |
313 | 313 | else if (!(K(D))) | |
314 | 314 | then throw("Source Hash should be 64 characters maximum") | |
315 | 315 | else if (!(K(aJ))) | |
316 | 316 | then throw("Export Hash should be 64 characters maximum") | |
317 | 317 | else if (!(K(aL))) | |
318 | 318 | then throw("Licence Hash should be 64 characters maximum") | |
319 | 319 | else if ((size(aE.payments) == 0)) | |
320 | 320 | then throw("No payment attached") | |
321 | 321 | else { | |
322 | 322 | let aO = value(aE.payments[0]) | |
323 | 323 | let aP = value(aO.amount) | |
324 | 324 | let aQ = if (if (isDefined(aO.assetId)) | |
325 | 325 | then (aO.assetId == d) | |
326 | 326 | else false) | |
327 | 327 | then aO.assetId | |
328 | 328 | else throw("Only SIGN token accepted at the moment") | |
329 | 329 | let aR = { | |
330 | 330 | let v = getInteger(a, ("certification_fee_" + toBase58String(d))) | |
331 | 331 | if ($isInstanceOf(v, "Int")) | |
332 | 332 | then { | |
333 | 333 | let aS = v | |
334 | 334 | aS | |
335 | 335 | } | |
336 | 336 | else throw("Price undefined in oracle") | |
337 | 337 | } | |
338 | 338 | if ((aP != aR)) | |
339 | 339 | then throw(("Payment amount should be " + toString(aR))) | |
340 | 340 | else { | |
341 | 341 | let aT = t(at(D, aN)) | |
342 | 342 | if ((aT != "")) | |
343 | 343 | then throw("You already added this artwork on Sign Art") | |
344 | 344 | else { | |
345 | 345 | let aU = t(aq(D)) | |
346 | 346 | if ((aU != "")) | |
347 | 347 | then throw("This artwork hash is already registered on Sign Art") | |
348 | 348 | else { | |
349 | 349 | let aV = A(B, aN, D) | |
350 | 350 | if (!(aV)) | |
351 | 351 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
352 | 352 | else if ((size(aI) == 0)) | |
353 | 353 | then throw("Display CID cannot be empty") | |
354 | 354 | else if ((size(au) == 0)) | |
355 | 355 | then throw("Title cannot be empty") | |
356 | 356 | else if ((size(au) > 100)) | |
357 | 357 | then throw("100 Characters maximum for the name") | |
358 | 358 | else if ((size(av) > 1000)) | |
359 | 359 | then throw("1000 Characters maximum for the description") | |
360 | 360 | else if ((size(av) == 0)) | |
361 | 361 | then throw("Description cannot be empty") | |
362 | 362 | else { | |
363 | 363 | let aW = split(aF, ",") | |
364 | 364 | if ((size(aW) > 5)) | |
365 | 365 | then throw("Tags should be maximum 5 single word separated by space.") | |
366 | 366 | else { | |
367 | 367 | let aX = { | |
368 | 368 | let v = getString(this, ("user_status_" + aN)) | |
369 | 369 | if ($isInstanceOf(v, "String")) | |
370 | 370 | then { | |
371 | 371 | let aY = v | |
372 | 372 | aY | |
373 | 373 | } | |
374 | 374 | else p | |
375 | 375 | } | |
376 | 376 | let az = lastBlock.timestamp | |
377 | 377 | if (if (isDefined(aX)) | |
378 | 378 | then (aX == p) | |
379 | 379 | else false) | |
380 | 380 | then throw("Please register this account first with \"User infos\" tab") | |
381 | 381 | else if ((aX == n)) | |
382 | 382 | then throw("Your account is suspended") | |
383 | 383 | else if ((aX == o)) | |
384 | 384 | then throw("Your account have been removed") | |
385 | 385 | else if ((aH > 10)) | |
386 | 386 | then throw("Maximum 10 editions per artwork") | |
387 | 387 | else if ((size(D) != 64)) | |
388 | 388 | then throw("Hash should be sha256 string composed of 64 char.") | |
389 | 389 | else [StringEntry(aq(D), aN), StringEntry(at(D, aN), Y), IntegerEntry(X(aN, Y), az), StringEntry(Z(aN, Y), au), StringEntry(aa(aN, Y), av), StringEntry(ab(aN, Y), aI), StringEntry(ad(aN, Y), aK), StringEntry(ac(aN, Y), aJ), StringEntry(ai(aN, Y), aL), StringEntry(aj(aN, Y), aM), StringEntry(al(aN, Y), aG), StringEntry(ak(aN, Y), aF), IntegerEntry(ae(aN, Y), aH), StringEntry(af(aN, Y), B), IntegerEntry(ag(aN, Y), 0), BooleanEntry(ah(aN, Y), false), StringEntry(ar(aN, B), Y), StringEntry("last_invoke_id", Y), StringEntry(ao(aN, Y), D), ScriptTransfer(Address(fromBase58String(c)), aP, aQ)] | |
390 | 390 | } | |
391 | 391 | } | |
392 | 392 | } | |
393 | 393 | } | |
394 | 394 | } | |
395 | 395 | } | |
396 | 396 | } | |
397 | 397 | ||
398 | 398 | ||
399 | 399 | ||
400 | 400 | @Callable(aE) | |
401 | 401 | func updateArtwork (ap,au,av,aF,aG,aH,aI,aJ,aK,aL,aM) = { | |
402 | 402 | let aZ = toBase58String(aE.transactionId) | |
403 | 403 | let aN = toBase58String(aE.caller.bytes) | |
404 | 404 | if (!(I(aI))) | |
405 | - | then throw("Display CID | |
405 | + | then throw("Wrong Display CID length") | |
406 | 406 | else if (!(I(aK))) | |
407 | - | then throw("Export CID | |
407 | + | then throw("Wrong Export CID length") | |
408 | 408 | else if (!(I(aM))) | |
409 | - | then throw("Licence CID | |
409 | + | then throw("Wrong Licence CID length") | |
410 | 410 | else if (!(K(aJ))) | |
411 | 411 | then throw("Export Hash should be 64 characters maximum") | |
412 | 412 | else if (!(K(aL))) | |
413 | 413 | then throw("Licence Hash should be 64 characters maximum") | |
414 | 414 | else { | |
415 | 415 | let aT = t(Z(aN, ap)) | |
416 | 416 | if ((aT == "")) | |
417 | 417 | then throw("This entry doesn't exist or you are not the owner") | |
418 | 418 | else if ((size(au) == 0)) | |
419 | 419 | then throw("Title cannot be empty") | |
420 | 420 | else if ((size(au) > 100)) | |
421 | 421 | then throw("100 Characters maximum for the name") | |
422 | 422 | else if ((size(av) > 1000)) | |
423 | 423 | then throw("1000 Characters maximum for the description") | |
424 | 424 | else if ((size(av) == 0)) | |
425 | 425 | then throw("Description cannot be empty") | |
426 | 426 | else { | |
427 | 427 | let ba = { | |
428 | 428 | let v = getInteger(this, ag(aN, ap)) | |
429 | 429 | if ($isInstanceOf(v, "Int")) | |
430 | 430 | then { | |
431 | 431 | let O = v | |
432 | 432 | if ((O == 0)) | |
433 | 433 | then false | |
434 | 434 | else true | |
435 | 435 | } | |
436 | 436 | else false | |
437 | 437 | } | |
438 | 438 | let aW = split(aF, ",") | |
439 | 439 | if ((size(aW) > 5)) | |
440 | 440 | then throw("Tags should be maximum 5 single word separated by space.") | |
441 | 441 | else { | |
442 | 442 | let aX = { | |
443 | 443 | let v = getString(this, ("user_status_" + aN)) | |
444 | 444 | if ($isInstanceOf(v, "String")) | |
445 | 445 | then { | |
446 | 446 | let aY = v | |
447 | 447 | aY | |
448 | 448 | } | |
449 | 449 | else p | |
450 | 450 | } | |
451 | 451 | if (if (isDefined(aX)) | |
452 | 452 | then (aX == p) | |
453 | 453 | else false) | |
454 | 454 | then throw("Please register this account first with \"User infos\" tab") | |
455 | 455 | else if ((aX == n)) | |
456 | 456 | then throw("Your account is suspended") | |
457 | 457 | else if ((aX == o)) | |
458 | 458 | then throw("Your account have been removed") | |
459 | 459 | else if ((aH > 10)) | |
460 | 460 | then throw("Maximum 10 editions per artwork") | |
461 | 461 | else if (!(ba)) | |
462 | 462 | then [StringEntry(Z(aN, ap), au), StringEntry(aa(aN, ap), av), StringEntry(ab(aN, ap), aI), StringEntry(ad(aN, ap), aK), StringEntry(ac(aN, ap), aJ), StringEntry(aj(aN, ap), aM), StringEntry(ai(aN, ap), aL), IntegerEntry(ae(aN, ap), aH), StringEntry(ak(aN, ap), aF), StringEntry(al(aN, ap), aG), StringEntry("last_invoke_id", aZ)] | |
463 | - | else throw("You cannot edit artwork that have already minted NFT") | |
463 | + | else throw("You cannot edit artwork that have already minted NFT(s)") | |
464 | 464 | } | |
465 | 465 | } | |
466 | 466 | } | |
467 | 467 | } | |
468 | 468 | ||
469 | 469 | ||
470 | 470 | ||
471 | 471 | @Callable(y) | |
472 | 472 | func deleteArtwork (Y,aB) = { | |
473 | 473 | let aN = toString(addressFromPublicKey(y.callerPublicKey)) | |
474 | 474 | let G = toBase58String(y.transactionId) | |
475 | 475 | let bb = if (if ((aN == h)) | |
476 | 476 | then true | |
477 | 477 | else (aN == i)) | |
478 | 478 | then aB | |
479 | 479 | else aN | |
480 | 480 | let aT = { | |
481 | 481 | let v = getString(this, Z(bb, Y)) | |
482 | 482 | if ($isInstanceOf(v, "String")) | |
483 | 483 | then { | |
484 | 484 | let aY = v | |
485 | 485 | aY | |
486 | 486 | } | |
487 | 487 | else throw("No artwork matching this request or you are not allowed") | |
488 | 488 | } | |
489 | 489 | let ba = { | |
490 | 490 | let v = getInteger(this, ag(bb, Y)) | |
491 | 491 | if ($isInstanceOf(v, "Int")) | |
492 | 492 | then { | |
493 | 493 | let O = v | |
494 | 494 | if ((O == 0)) | |
495 | 495 | then false | |
496 | 496 | else true | |
497 | 497 | } | |
498 | 498 | else false | |
499 | 499 | } | |
500 | 500 | let D = { | |
501 | 501 | let v = getString(this, ao(bb, Y)) | |
502 | 502 | if ($isInstanceOf(v, "String")) | |
503 | 503 | then { | |
504 | 504 | let aY = v | |
505 | 505 | aY | |
506 | 506 | } | |
507 | 507 | else throw("No artwork hash matching this request") | |
508 | 508 | } | |
509 | 509 | let B = { | |
510 | 510 | let v = getString(this, af(bb, Y)) | |
511 | 511 | if ($isInstanceOf(v, "String")) | |
512 | 512 | then { | |
513 | 513 | let aY = v | |
514 | 514 | aY | |
515 | 515 | } | |
516 | 516 | else throw("No SIGN ID matching this request") | |
517 | 517 | } | |
518 | 518 | let bc = [DeleteEntry(X(bb, Y)), DeleteEntry(Z(bb, Y)), DeleteEntry(aa(bb, Y)), DeleteEntry(ab(bb, Y)), DeleteEntry(ad(bb, Y)), DeleteEntry(ac(bb, Y)), DeleteEntry(ai(bb, Y)), DeleteEntry(aj(bb, Y)), DeleteEntry(al(bb, Y)), DeleteEntry(ak(bb, Y)), DeleteEntry(ae(bb, Y)), DeleteEntry(af(bb, Y)), DeleteEntry(ag(bb, Y)), DeleteEntry(ah(bb, Y)), StringEntry("last_invoke_id", G), DeleteEntry(aq(D)), DeleteEntry(ar(bb, B)), DeleteEntry(at(D, bb))] | |
519 | 519 | if (if ((aN == h)) | |
520 | 520 | then true | |
521 | 521 | else (aN == i)) | |
522 | 522 | then bc | |
523 | 523 | else if (!(ba)) | |
524 | 524 | then bc | |
525 | 525 | else throw("This artwork already have minted NFT, you cannot delete it") | |
526 | 526 | } | |
527 | 527 | ||
528 | 528 | ||
529 | 529 | ||
530 | 530 | @Callable(aE) | |
531 | 531 | func sellArtwork (Y,aS,bd,aQ) = { | |
532 | 532 | let G = toBase58String(aE.transactionId) | |
533 | 533 | let aN = toBase58String(aE.caller.bytes) | |
534 | 534 | let be = lastBlock.timestamp | |
535 | 535 | let bf = t(ad(aN, Y)) | |
536 | - | if ((size(bf) | |
536 | + | if ((size(split(bf, "/")[0]) != 59)) | |
537 | 537 | then throw("You cannot sell artwork with no export file") | |
538 | 538 | else { | |
539 | 539 | let bg = t(ac(aN, Y)) | |
540 | - | if ((size(bg) | |
540 | + | if ((size(bg) != 64)) | |
541 | 541 | then throw("You cannot sell artwork with no export hash") | |
542 | 542 | else if (if (if ((aQ != toBase58String(d))) | |
543 | 543 | then (aQ != toBase58String(f)) | |
544 | 544 | else false) | |
545 | 545 | then (aQ != toBase58String(e)) | |
546 | 546 | else false) | |
547 | 547 | then throw("Only SIGN, USDN or WAVES currency accepted at the moment") | |
548 | 548 | else { | |
549 | 549 | let bh = { | |
550 | 550 | let v = getString(this, Z(aN, Y)) | |
551 | 551 | if ($isInstanceOf(v, "String")) | |
552 | 552 | then { | |
553 | 553 | let aY = v | |
554 | 554 | aY | |
555 | 555 | } | |
556 | 556 | else throw("This artwork doesn't exit or you are not the owner") | |
557 | 557 | } | |
558 | 558 | let aX = { | |
559 | 559 | let v = getString(this, V(aN)) | |
560 | 560 | if ($isInstanceOf(v, "String")) | |
561 | 561 | then { | |
562 | 562 | let aY = v | |
563 | 563 | aY | |
564 | 564 | } | |
565 | 565 | else throw("Please register this account first") | |
566 | 566 | } | |
567 | 567 | let bi = { | |
568 | 568 | let v = getInteger(this, ag(aN, Y)) | |
569 | 569 | if ($isInstanceOf(v, "Int")) | |
570 | 570 | then { | |
571 | 571 | let bj = v | |
572 | 572 | bj | |
573 | 573 | } | |
574 | 574 | else 0 | |
575 | 575 | } | |
576 | 576 | let bk = { | |
577 | 577 | let v = getInteger(this, ae(aN, Y)) | |
578 | 578 | if ($isInstanceOf(v, "Int")) | |
579 | 579 | then { | |
580 | 580 | let bj = v | |
581 | 581 | bj | |
582 | 582 | } | |
583 | 583 | else 0 | |
584 | 584 | } | |
585 | 585 | if (if ((bi != 0)) | |
586 | 586 | then (bi == bk) | |
587 | 587 | else false) | |
588 | 588 | then throw("You reached the max edition allowed to sell for this edition.") | |
589 | 589 | else if (if ((bi > 0)) | |
590 | 590 | then (bk != bd) | |
591 | 591 | else false) | |
592 | 592 | then throw("You cannot change the maximum issuable anymore") | |
593 | 593 | else if ((aX == n)) | |
594 | 594 | then throw("Your account is suspended") | |
595 | 595 | else if ((aX == o)) | |
596 | 596 | then throw("Your account have been deleted") | |
597 | 597 | else { | |
598 | 598 | let bl = if ((aS > 0)) | |
599 | 599 | then true | |
600 | 600 | else false | |
601 | 601 | [BooleanEntry(ah(aN, Y), bl), IntegerEntry(am(aN, Y), aS), IntegerEntry(ae(aN, Y), bd), StringEntry(an(aN, Y), aQ), StringEntry("last_invoke_id", G)] | |
602 | 602 | } | |
603 | 603 | } | |
604 | 604 | } | |
605 | 605 | } | |
606 | 606 | ||
607 | 607 | ||
608 | 608 | ||
609 | 609 | @Callable(aE) | |
610 | 610 | func buyArtwork (Y,bm) = { | |
611 | 611 | let G = toBase58String(aE.transactionId) | |
612 | 612 | let aN = toBase58String(aE.caller.bytes) | |
613 | 613 | let bn = x("total_nft_issued") | |
614 | 614 | let B = t(af(bm, Y)) | |
615 | 615 | let bh = { | |
616 | 616 | let v = getString(this, Z(bm, Y)) | |
617 | 617 | if ($isInstanceOf(v, "String")) | |
618 | 618 | then { | |
619 | 619 | let aY = v | |
620 | 620 | aY | |
621 | 621 | } | |
622 | 622 | else throw("This artwork doesn't exit") | |
623 | 623 | } | |
624 | 624 | let bo = t(ab(bm, Y)) | |
625 | 625 | let bf = t(ad(bm, Y)) | |
626 | 626 | let bg = t(ac(bm, Y)) | |
627 | 627 | let bp = t(aj(bm, Y)) | |
628 | 628 | let bq = t(ai(bm, Y)) | |
629 | 629 | let av = take(t(aa(bm, Y)), 50) | |
630 | 630 | let bi = x(ag(bm, Y)) | |
631 | 631 | let br = x(am(bm, Y)) | |
632 | 632 | let bs = z(ah(bm, Y)) | |
633 | 633 | let bt = t(an(bm, Y)) | |
634 | 634 | let bu = t(ao(bm, Y)) | |
635 | 635 | if ((br == 0)) | |
636 | 636 | then throw("This artwork is not for sell") | |
637 | 637 | else if (!(bs)) | |
638 | 638 | then throw("This artwork is not for sale") | |
639 | 639 | else { | |
640 | 640 | let bk = x(ae(bm, Y)) | |
641 | 641 | let aO = value(aE.payments[0]) | |
642 | 642 | let aP = value(aO.amount) | |
643 | 643 | let aQ = if (if (isDefined(aO.assetId)) | |
644 | 644 | then (aO.assetId == fromBase58String(bt)) | |
645 | 645 | else false) | |
646 | 646 | then aO.assetId | |
647 | 647 | else throw((("Only " + bt) + " token id accepted at the moment")) | |
648 | 648 | if ((bi == bk)) | |
649 | 649 | then throw("Cannot buy this artwork anymore, maximum editions reached") | |
650 | 650 | else if ((br != aP)) | |
651 | 651 | then throw(((("Payment don't match seller price: " + toString(br)) + " vs ") + toString(aP))) | |
652 | 652 | else { | |
653 | 653 | let bv = (bi + 1) | |
654 | 654 | let bw = lastBlock.timestamp | |
655 | 655 | let bx = (((((((((((((((((((((((((((("{\"version\": 1, | |
656 | 656 | \"creator\": \"" + bm) + "\", | |
657 | 657 | \"artID\": \"") + Y) + "\", | |
658 | - | \"maxIssuable\": \"") + toString(bk)) + "\", | |
659 | 658 | \"signID\": \"") + B) + "\", | |
660 | - | \"issue\": \"") + toString(bv)) + "/") + toString(bk)) + "\", | |
661 | - | \"source_hash\": \"") + bu) + "\", | |
662 | 659 | \"artwork_name\": \"") + bh) + "\", | |
663 | 660 | \"artwork_desc\": \"") + av) + "\", | |
661 | + | \"issue\": \"") + toString(bv)) + "/") + toString(bk)) + "\", | |
662 | + | \"maxIssuable\": \"") + toString(bk)) + "\", | |
663 | + | \"source_hash\": \"") + bu) + "\", | |
664 | 664 | \"display_cid\": \"") + bo) + "\", | |
665 | 665 | \"export_cid\": \"") + bf) + "\", | |
666 | 666 | \"export_hash\": \"") + bg) + "\", | |
667 | 667 | \"licence_cid\": \"") + bp) + "\", | |
668 | 668 | \"licence_hash\": \"") + bq) + "\"}") | |
669 | 669 | let by = Issue(("SA_" + toString((bn + 1))), bx, 1, 0, false) | |
670 | 670 | let bz = calculateAssetId(by) | |
671 | 671 | let bl = if ((bv == bk)) | |
672 | 672 | then false | |
673 | 673 | else true | |
674 | 674 | [IntegerEntry(ag(bm, Y), bv), StringEntry(((((((("art_sold_" + toString(bv)) + "_of_") + toString(bk)) + "_") + Y) + "_") + bm), ((((((aN + "_") + toString(bw)) + "_") + G) + "_") + toString(br))), IntegerEntry("total_nft_issued", (bn + 1)), BooleanEntry(ah(bm, Y), bl), StringEntry("last_invoke_id", G), by, ScriptTransfer(Address(fromBase58String(bm)), aP, aQ), ScriptTransfer(aE.caller, 1, bz)] | |
675 | 675 | } | |
676 | 676 | } | |
677 | 677 | } | |
678 | 678 | ||
679 | 679 | ||
680 | 680 | ||
681 | 681 | @Callable(y) | |
682 | 682 | func deleteUser (aB) = { | |
683 | 683 | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
684 | 684 | let G = toBase58String(y.transactionId) | |
685 | 685 | if (if ((Q == h)) | |
686 | 686 | then true | |
687 | 687 | else (Q == i)) | |
688 | 688 | then [DeleteEntry(W(aB)), DeleteEntry(P(aB)), DeleteEntry(R(aB)), DeleteEntry(S(aB)), DeleteEntry(T(aB)), DeleteEntry(U(aB)), StringEntry(V(aB), o), StringEntry("last_invoke_id", G)] | |
689 | 689 | else throw("You are not allowed to do that") | |
690 | 690 | } | |
691 | 691 | ||
692 | 692 |
github/deemru/w8io/026f985 79.49 ms ◑