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