tx · 28yb5QgKjt9wrS5jJZhQqsqTviFuq1DKZSQkgQcwpDbJ

3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG:  -0.01400000 Waves

2020.10.16 12:22 [1222947] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves

{ "type": 13, "id": "28yb5QgKjt9wrS5jJZhQqsqTviFuq1DKZSQkgQcwpDbJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1602840175452, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "AZ9AczMwNGDrh9k4YtyXsBZxGpVVNHHmfa9z8vHJzQ68wgsGyMM9oVvw9Mw3VAHoNNt6jgwBKGMc2hRL4Yn6pQ1" ], "script": "base64:AAIEAAAAAAAAAFoIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgAAAA5AAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAACHNpZ25EYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQzI4aFNpdnJtc1RVWGFZRDF4NkwzNjJKNFpwVW5vVGRCAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAAC3NpZ25Bc3NldElkAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAALdXNkbkFzc2V0SWQBAAAAIA/yHBKs5MQ8muxGGqslqLDsugcrRsxtiHLwteKSSQG0AAAAAAx3YXZlc0Fz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AAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAANa2V5VXNlclNvY2lhbAAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAADGtleVVzZXJUaHVtYgAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAADWtleVVzZXJTdGF0dXMAAAABBQAAAAdhZGRyZXNzBQAAAAt1c2VyUmVtb3ZlZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAA5sYXN0X2ludm9rZV9pZAUAAAACaWQFAAAAA25pbAkAAAIAAAABAgAAAAtOb3QgYWxsb3dlZAAAAADs3GxJ", "height": 1222947, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dx9vfNH8Yn9kaTyA6kX3LEkrdu5ocbuSeUVzKJNj3LFT Next: DBcES3ySzFDTDxaNvfMkziDtgx6pcUpbptS7Bckz4uta Diff:
OldNewDifferences
2525
2626 let l = true
2727
28-let m = "ALLOWED"
28+let m = true
2929
30-let n = "REGISTERED"
30+let n = "SIGN Art is under maintenance"
3131
32-let o = "VERIFIED"
32+let o = "ALLOWED"
3333
34-let p = "SUSPENDED"
34+let p = "REGISTERED"
3535
36-let q = "REMOVED"
36+let q = "VERIFIED"
3737
38-let r = "UNREGISTERED"
38+let r = "SUSPENDED"
3939
40-let s = "RESET"
40+let s = "REMOVED"
4141
42-let t = "ON_SALE"
42+let t = "UNREGISTERED"
4343
44-let u = "SOLD"
44+let u = "RESET"
4545
46-let v = "CANCELED"
47-
48-func w (x) = {
49- let y = getString(this, x)
50- if ($isInstanceOf(y, "String"))
46+func v (w) = {
47+ let x = getString(this, w)
48+ if ($isInstanceOf(x, "String"))
5149 then {
52- let z = y
53- z
50+ let y = x
51+ y
5452 }
5553 else ""
5654 }
5755
5856
59-func A (x) = {
60- let y = getInteger(this, x)
61- if ($isInstanceOf(y, "Int"))
57+func z (w) = {
58+ let x = getInteger(this, w)
59+ if ($isInstanceOf(x, "Int"))
6260 then {
63- let B = y
64- B
61+ let A = x
62+ A
6563 }
6664 else 0
6765 }
6866
6967
70-func C (x) = {
71- let y = getBoolean(this, x)
72- if ($isInstanceOf(y, "Boolean"))
68+func B (w) = {
69+ let x = getBoolean(this, w)
70+ if ($isInstanceOf(x, "Boolean"))
7371 then {
74- let B = y
75- B
72+ let A = x
73+ A
7674 }
7775 else false
7876 }
7977
8078
81-func D (E,F,G) = {
82- let y = getString(b, ((("data_fc_" + E) + "_") + F))
83- if ($isInstanceOf(y, "String"))
79+func C (D,E,F) = {
80+ let x = getString(b, ((("data_fc_" + D) + "_") + E))
81+ if ($isInstanceOf(x, "String"))
8482 then {
85- let z = y
86- if (contains(z, G))
83+ let y = x
84+ if (contains(y, F))
8785 then true
8886 else false
8987 }
9189 }
9290
9391
94-func H (I) = if (if ((75 > size(I)))
95- then (60 > size(split(I, "/")[0]))
92+func G (H) = if (if ((75 > size(H)))
93+ then (60 > size(split(H, "/")[0]))
9694 else false)
97- then (16 > size(split(I, "/")[1]))
95+ then (16 > size(split(H, "/")[1]))
9896 else false
9997
10098
101-func J (K) = (65 > size(K))
99+func I (J) = (65 > size(J))
102100
103101
104-func L (M) = ("user_" + M)
102+func K (L) = ("user_" + L)
105103
106104
107-func N (M) = ("user_name_" + M)
105+func M (L) = ("user_name_" + L)
108106
109107
110-func O (M) = ("user_desc_" + M)
108+func N (L) = ("user_desc_" + L)
111109
112110
113-func P (M) = ("user_social_" + M)
111+func O (L) = ("user_social_" + L)
114112
115113
116-func Q (M) = ("user_thumb_" + M)
114+func P (L) = ("user_thumb_" + L)
117115
118116
119-func R (M) = ("user_status_" + M)
117+func Q (L) = ("user_status_" + L)
120118
121119
122-func S (M) = ("user_date_" + M)
120+func R (L) = ("user_date_" + L)
123121
124122
125-func T (M,U) = ((("art_date_" + U) + "_") + M)
123+func S (L,T) = ((("art_date_" + T) + "_") + L)
126124
127125
128-func V (M,U) = ((("art_name_" + U) + "_") + M)
126+func U (L,T) = ((("art_name_" + T) + "_") + L)
129127
130128
131-func W (M,U) = ((("art_desc_" + U) + "_") + M)
129+func V (L,T) = ((("art_desc_" + T) + "_") + L)
132130
133131
134-func X (M,U) = ((("art_display_cid_" + U) + "_") + M)
132+func W (L,T) = ((("art_display_cid_" + T) + "_") + L)
135133
136134
137-func Y (M,U) = ((("art_export_hash_" + U) + "_") + M)
135+func X (L,T) = ((("art_export_hash_" + T) + "_") + L)
138136
139137
140-func Z (M,U) = ((("art_export_cid_" + U) + "_") + M)
138+func Y (L,T) = ((("art_export_cid_" + T) + "_") + L)
141139
142140
143-func aa (M,U) = ((("art_maxmint_" + U) + "_") + M)
141+func Z (L,T) = ((("art_maxmint_" + T) + "_") + L)
144142
145143
146-func ab (M,U) = ((("art_signid_" + U) + "_") + M)
144+func aa (L,T) = ((("art_signid_" + T) + "_") + L)
147145
148146
149-func ac (M,U) = ((("art_issued_" + U) + "_") + M)
147+func ab (L,T) = ((("art_issued_" + T) + "_") + L)
150148
151149
152-func ad (M,U) = ((("art_onsale_" + U) + "_") + M)
150+func ac (L,T) = ((("art_onsale_" + T) + "_") + L)
153151
154152
155-func ae (M,U) = ((("art_licence_hash_" + U) + "_") + M)
153+func ad (L,T) = ((("art_licence_hash_" + T) + "_") + L)
156154
157155
158-func af (M,U) = ((("art_licence_cid_" + U) + "_") + M)
156+func ae (L,T) = ((("art_licence_cid_" + T) + "_") + L)
159157
160158
161-func ag (M,U) = ((("art_tags_" + U) + "_") + M)
159+func af (L,T) = ((("art_tags_" + T) + "_") + L)
162160
163161
164-func ah (M,U) = ((("art_type_" + U) + "_") + M)
162+func ag (L,T) = ((("art_type_" + T) + "_") + L)
165163
166164
167-func ai (M,U) = ((("art_price_" + U) + "_") + M)
165+func ah (L,T) = ((("art_price_" + T) + "_") + L)
168166
169167
170-func aj (M,U) = ((("art_assetAccepted_" + U) + "_") + M)
168+func ai (L,T) = ((("art_assetAccepted_" + T) + "_") + L)
171169
172170
173-func ak (M,al) = ((("get_hashbytxidaddr_" + al) + "_") + M)
171+func aj (L,ak) = ((("get_hashbytxidaddr_" + ak) + "_") + L)
174172
175173
176-func am (G) = ("get_owner_by_hash_" + G)
174+func al (F) = ("get_owner_by_hash_" + F)
177175
178176
179-func an (M,ao) = ((("get_artidbysignid_" + ao) + "_") + M)
177+func am (L,an) = ((("get_artidbysignid_" + an) + "_") + L)
180178
181179
182-func ap (G,M) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((G + M)))))
180+func ao (F,L) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((F + L)))))
183181
184182
185-func aq (ar,as,at) = if (if ((ar != ""))
186- then !(H(ar))
183+func ap (aq,ar,as) = if (if ((aq != ""))
184+ then !(G(aq))
187185 else false)
188- then throw("Wrong Display CID length")
189- else if (if ((as != ""))
190- then !(H(as))
186+ then throw("Wrong Display CID")
187+ else if (if ((ar != ""))
188+ then !(G(ar))
191189 else false)
192- then throw("Wrong Export CID length")
193- else if (if ((at != ""))
194- then !(H(at))
190+ then throw("Wrong Export CID")
191+ else if (if ((as != ""))
192+ then !(G(as))
195193 else false)
196- then throw("Wrong Licence CID length")
194+ then throw("Wrong Licence CID")
197195 else true
198196
199197
200-func au (av,aw) = if (if ((av != ""))
201- then !(J(av))
198+func at (au,av) = if (if ((au != ""))
199+ then !(I(au))
202200 else false)
203- then throw("Export Hash should be 64 characters maximum")
204- else if (if ((aw != ""))
205- then !(J(aw))
201+ then throw("Export Hash 64 char. max")
202+ else if (if ((av != ""))
203+ then !(I(av))
206204 else false)
207- then throw("Licence Hash should be 64 characters maximum")
205+ then throw("Licence Hash 64 char. max")
208206 else true
209207
210208
211-func ax (ay,az) = if ((size(ay) == 0))
209+func aw (ax,ay) = if ((size(ax) == 0))
212210 then throw("Field cannot be is empty")
213- else if ((size(ay) > az))
214- then throw((ay + " is too long"))
211+ else if ((size(ax) > ay))
212+ then throw((ax + " is too long"))
215213 else true
216214
217215
218-@Callable(B)
219-func registerUser (aA,aB,aC,aD) = {
220- let M = toString(addressFromPublicKey(B.callerPublicKey))
221- let aE = w(R(M))
222- let aF = toBase58String(B.transactionId)
223- let aG = lastBlock.timestamp
224- if (if ((aE == p))
225- then true
226- else (aE == q))
227- then throw("You are now allowed to register, your account have been suspended/ removed.")
228- else if ((aE == n))
229- then throw("You are already registered, please use update method instead.")
230- else if (if ((aE == ""))
231- then l
232- else false)
233- then throw("You are now allowed to register yet, please contact us first to get approved.")
234- else if (if ((aA == ""))
235- then true
236- else (aB == ""))
237- then throw("Name and description cannot be empty")
238- else if ((size(aB) > 600))
239- then throw("600 Characters maximum for the description")
240- else [IntegerEntry(S(M), aG), StringEntry(L(M), ((aF + "_") + toString(lastBlock.timestamp))), StringEntry(N(M), aA), StringEntry(O(M), aB), StringEntry(P(M), aD), StringEntry(Q(M), aC), StringEntry(R(M), n), StringEntry("last_invoke_id", aF)]
241- }
216+@Callable(A)
217+func registerUser (az,aA,aB,aC) = if (!(m))
218+ then throw(n)
219+ else {
220+ let L = toString(addressFromPublicKey(A.callerPublicKey))
221+ let aD = v(Q(L))
222+ let aE = toBase58String(A.transactionId)
223+ let aF = lastBlock.timestamp
224+ if (if ((aD == r))
225+ then true
226+ else (aD == s))
227+ then throw("Account suspended/ removed.")
228+ else if ((aD == p))
229+ then throw("Already registered")
230+ else if (if ((aD == ""))
231+ then l
232+ else false)
233+ then throw("Can't register, get approved first.")
234+ else if (if ((az == ""))
235+ then true
236+ else (aA == ""))
237+ then throw("Name and description cannot be empty")
238+ else if ((size(aA) > 600))
239+ then throw("600 Char. max description")
240+ else [IntegerEntry(R(L), aF), StringEntry(K(L), ((aE + "_") + toString(lastBlock.timestamp))), StringEntry(M(L), az), StringEntry(N(L), aA), StringEntry(O(L), aC), StringEntry(P(L), aB), StringEntry(Q(L), p), StringEntry("last_invoke_id", aE)]
241+ }
242242
243243
244244
245-@Callable(B)
246-func deleteEntry (aH) = {
247- let M = toString(addressFromPublicKey(B.callerPublicKey))
248- if ((M == j))
249- then [DeleteEntry(aH)]
245+@Callable(A)
246+func deleteEntry (aG) = {
247+ let L = toString(addressFromPublicKey(A.callerPublicKey))
248+ if ((L == j))
249+ then [DeleteEntry(aG)]
250250 else throw("no")
251251 }
252252
253253
254254
255-@Callable(B)
256-func updateUser (aA,aB,aC,aD) = {
257- let M = toString(addressFromPublicKey(B.callerPublicKey))
258- let aE = w(R(M))
259- if (if ((aE == p))
260- then true
261- else (aE == q))
262- then throw("You are now allowed to register, your account have been suspended/ removed.")
263- else if (if ((aE == ""))
255+@Callable(A)
256+func updateUser (az,aA,aB,aC) = if (!(m))
257+ then throw(n)
258+ else {
259+ let aE = toBase58String(A.transactionId)
260+ let L = toString(addressFromPublicKey(A.callerPublicKey))
261+ let aH = v(Q(L))
262+ if (if ((aH == r))
264263 then true
265- else (aE == m))
266- then throw("Please register first with registerUser")
267- else {
268- let aF = toBase58String(B.transactionId)
269- let aG = lastBlock.timestamp
270- if (if ((aA == ""))
264+ else (aH == s))
265+ then throw("Account suspended/ removed.")
266+ else if (if ((aH == ""))
267+ then true
268+ else (aH == o))
269+ then throw("Register first")
270+ else if (if ((az == ""))
271271 then true
272- else (aB == ""))
273- then throw("Name and description cannot be empty")
274- else if ((size(aB) > 600))
275- then throw("600 Characters maximum for the description")
276- else [StringEntry(N(M), aA), StringEntry(O(M), aB), StringEntry(P(M), aD), StringEntry(Q(M), aC), StringEntry("last_invoke_id", aF)]
277- }
278- }
272+ else (aA == ""))
273+ then throw("Name & description cannot be empty")
274+ else if ((size(aA) > 600))
275+ then throw("600 Char. max for description")
276+ else [StringEntry(M(L), az), StringEntry(N(L), aA), StringEntry(O(L), aC), StringEntry(P(L), aB), StringEntry("last_invoke_id", aE)]
277+ }
279278
280279
281280
282-@Callable(B)
283-func changeUserStatus (aI,aJ) = {
284- let M = toString(addressFromPublicKey(B.callerPublicKey))
285- let aF = toBase58String(B.transactionId)
286- let aK = w(R(aI))
287- let aL = if ((aJ == o))
288- then o
289- else if ((aJ == n))
290- then n
281+@Callable(A)
282+func changeUserStatus (aI,aJ) = if (!(m))
283+ then throw(n)
284+ else {
285+ let L = toString(addressFromPublicKey(A.callerPublicKey))
286+ let aE = toBase58String(A.transactionId)
287+ let aK = v(Q(aI))
288+ let aL = if ((aJ == q))
289+ then q
291290 else if ((aJ == p))
292291 then p
293- else if ((aJ == q))
294- then q
295- else if ((aJ == m))
296- then m
297- else if (if ((aJ == s))
298- then (aK == m)
299- else false)
300- then ""
301- else throw("Unknown status")
302- if (if ((aK == m))
303- then (aJ == m)
304- else false)
305- then throw("This user is already allowed")
306- else if (if ((aK == n))
307- then (aJ == m)
292+ else if ((aJ == r))
293+ then r
294+ else if ((aJ == s))
295+ then s
296+ else if ((aJ == o))
297+ then o
298+ else if (if ((aJ == u))
299+ then (aK == o)
300+ else false)
301+ then ""
302+ else throw("Unknown status")
303+ if (if ((aK == o))
304+ then (aJ == o)
308305 else false)
309- then throw("This user is already allowed and registered")
310- else if (if ((aK == o))
311- then (aJ == m)
306+ then throw("User already allowed")
307+ else if (if ((aK == p))
308+ then (aJ == o)
312309 else false)
313- then throw("This user is already allowed and verified")
314- else if (if ((M == j))
315- then true
316- else (M == k))
317- then [StringEntry(R(aI), aL), StringEntry("last_invoke_id", aF)]
318- else throw(((("You are not allowed to change user status " + M) + " / ") + j))
319- }
310+ then throw("User already allowed & registered")
311+ else if (if ((aK == q))
312+ then (aJ == o)
313+ else false)
314+ then throw("User already allowed & verified")
315+ else if (if ((L == j))
316+ then true
317+ else (L == k))
318+ then [StringEntry(Q(aI), aL), StringEntry("last_invoke_id", aE)]
319+ else throw(((("Not allowed to change user status " + L) + " / ") + j))
320+ }
320321
321322
322323
323-@Callable(B)
324+@Callable(A)
324325 func creditUser (aI) = {
325- let M = toString(addressFromPublicKey(B.callerPublicKey))
326- let aF = toBase58String(B.transactionId)
327- if (if ((M == j))
326+ let L = toString(addressFromPublicKey(A.callerPublicKey))
327+ let aE = toBase58String(A.transactionId)
328+ if (if ((L == j))
328329 then true
329- else (M == k))
330+ else (L == k))
330331 then [ScriptTransfer(Address(fromBase58String(aI)), 150000000000, d)]
331- else throw("You are not allowed to do that")
332+ else throw("Not allowed")
332333 }
333334
334335
335336
336337 @Callable(aM)
337-func addArtwork (G,E,aA,aB,aN,aO,aP,ar,av,as,aw,at) = {
338- let U = toBase58String(aM.transactionId)
339- let aQ = toBase58String(aM.caller.bytes)
340- if (!(aq(ar, as, at)))
341- then throw("Problem with CID")
342- else if (!(J(G)))
343- then throw("Hash should be 64 characters maximum")
344- else if (!(au(av, aw)))
338+func addArtwork (F,D,az,aA,aN,aO,aP,aq,au,ar,av,as) = if (!(m))
339+ then throw(n)
340+ else {
341+ let T = toBase58String(aM.transactionId)
342+ let L = toBase58String(aM.caller.bytes)
343+ if (!(ap(aq, ar, as)))
344+ then throw("Problem with CID")
345+ else if (!(I(F)))
346+ then throw("Hash should be 64 characters maximum")
347+ else if (!(at(au, av)))
348+ then throw("Problem with Hashes")
349+ else if ((size(aM.payments) == 0))
350+ then throw("No payment attached")
351+ else {
352+ let aQ = value(aM.payments[0])
353+ let aR = value(aQ.amount)
354+ let aS = if (if (isDefined(aQ.assetId))
355+ then (aQ.assetId == d)
356+ else false)
357+ then aQ.assetId
358+ else throw("Only SIGN token accepted at the moment")
359+ let aT = {
360+ let x = getInteger(a, ("certification_fee_" + toBase58String(d)))
361+ if ($isInstanceOf(x, "Int"))
362+ then {
363+ let aU = x
364+ aU
365+ }
366+ else throw("Price undefined in oracle")
367+ }
368+ if ((aR != aT))
369+ then throw(("Payment amount should be " + toString(aT)))
370+ else {
371+ let aV = v(ao(F, L))
372+ if ((aV != ""))
373+ then throw("You already added it")
374+ else {
375+ let aW = v(al(F))
376+ if ((aW != ""))
377+ then throw("Hash already registered")
378+ else {
379+ let aX = C(D, L, F)
380+ if (!(aX))
381+ then throw("Sign Certificate not found for this address.")
382+ else if ((size(aq) == 0))
383+ then throw("Display CID cannot be empty")
384+ else if (!(aw(az, 100)))
385+ then throw("100 Char. max name")
386+ else if (!(aw(aA, 1000)))
387+ then throw("1000 Char. max description")
388+ else if ((size(split(aN, ",")) > 5))
389+ then throw("5 tags max.")
390+ else {
391+ let aY = {
392+ let x = getString(this, ("user_status_" + L))
393+ if ($isInstanceOf(x, "String"))
394+ then {
395+ let aZ = x
396+ aZ
397+ }
398+ else t
399+ }
400+ let aF = lastBlock.timestamp
401+ if (if (isDefined(aY))
402+ then (aY == t)
403+ else false)
404+ then throw("Register this account first with \"User infos\" tab")
405+ else if ((aY == r))
406+ then throw("Account suspended")
407+ else if ((aY == s))
408+ then throw("Account removed")
409+ else if ((aP > 10))
410+ then throw("10 editions max")
411+ else if ((size(F) != 64))
412+ then throw("Hash 64 char. max")
413+ else [StringEntry(al(F), L), StringEntry(ao(F, L), T), IntegerEntry(S(L, T), aF), StringEntry(U(L, T), az), StringEntry(V(L, T), aA), StringEntry(W(L, T), aq), StringEntry(Y(L, T), ar), StringEntry(X(L, T), au), StringEntry(ad(L, T), av), StringEntry(ae(L, T), as), StringEntry(ag(L, T), aO), StringEntry(af(L, T), aN), IntegerEntry(Z(L, T), aP), StringEntry(aa(L, T), D), IntegerEntry(ab(L, T), 0), BooleanEntry(ac(L, T), false), StringEntry(am(L, D), T), StringEntry("last_invoke_id", T), StringEntry(aj(L, T), F), ScriptTransfer(Address(fromBase58String(c)), aR, aS)]
414+ }
415+ }
416+ }
417+ }
418+ }
419+ }
420+
421+
422+
423+@Callable(aM)
424+func updateArtwork (ak,az,aA,aN,aO,aP,aq,au,ar,av,as) = if (!(m))
425+ then throw(n)
426+ else {
427+ let ba = toBase58String(aM.transactionId)
428+ let L = toBase58String(aM.caller.bytes)
429+ if (!(ap(aq, ar, as)))
430+ then throw("Problem with CID")
431+ else if (!(at(au, av)))
345432 then throw("Problem with Hashes")
346- else if ((size(aM.payments) == 0))
347- then throw("No payment attached")
348- else {
349- let aR = value(aM.payments[0])
350- let aS = value(aR.amount)
351- let aT = if (if (isDefined(aR.assetId))
352- then (aR.assetId == d)
353- else false)
354- then aR.assetId
355- else throw("Only SIGN token accepted at the moment")
356- let aU = {
357- let y = getInteger(a, ("certification_fee_" + toBase58String(d)))
358- if ($isInstanceOf(y, "Int"))
359- then {
360- let aV = y
361- aV
433+ else {
434+ let aV = v(U(L, ak))
435+ if ((aV == ""))
436+ then throw("Entry not found")
437+ else if (!(aw(az, 100)))
438+ then throw("100 Char. max name")
439+ else if (!(aw(aA, 1000)))
440+ then throw("1000 Char. max description")
441+ else {
442+ let bb = {
443+ let x = getInteger(this, ab(L, ak))
444+ if ($isInstanceOf(x, "Int"))
445+ then {
446+ let bc = x
447+ if ((bc == 0))
448+ then false
449+ else true
450+ }
451+ else false
452+ }
453+ if ((size(split(aN, ",")) > 5))
454+ then throw("5 tags max.")
455+ else {
456+ let aY = {
457+ let x = getString(this, ("user_status_" + L))
458+ if ($isInstanceOf(x, "String"))
459+ then {
460+ let aZ = x
461+ aZ
462+ }
463+ else t
464+ }
465+ if (if (isDefined(aY))
466+ then (aY == t)
467+ else false)
468+ then throw("Register first with \"User infos\"")
469+ else if ((aY == r))
470+ then throw("Account suspended")
471+ else if ((aY == s))
472+ then throw("Account removed")
473+ else if ((aP > 10))
474+ then throw("10 editions max per artwork")
475+ else if (!(bb))
476+ then [StringEntry(U(L, ak), az), StringEntry(V(L, ak), aA), StringEntry(W(L, ak), aq), StringEntry(Y(L, ak), ar), StringEntry(X(L, ak), au), StringEntry(ae(L, ak), as), StringEntry(ad(L, ak), av), IntegerEntry(Z(L, ak), aP), StringEntry(af(L, ak), aN), StringEntry(ag(L, ak), aO), StringEntry("last_invoke_id", ba)]
477+ else throw("Already minted")
478+ }
362479 }
363- else throw("Price undefined in oracle")
364- }
365- if ((aS != aU))
366- then throw(("Payment amount should be " + toString(aU)))
367- else {
368- let aW = w(ap(G, aQ))
369- if ((aW != ""))
370- then throw("You already added it on Sign Art")
371- else {
372- let aX = w(am(G))
373- if ((aX != ""))
374- then throw("Hash already registered on Sign Art")
375- else {
376- let aY = D(E, aQ, G)
377- if (!(aY))
378- then throw("Sign Certificate not found for this address.")
379- else if ((size(ar) == 0))
380- then throw("Display CID cannot be empty")
381- else if (!(ax(aA, 100)))
382- then throw("100 Char. max for the name")
383- else if (!(ax(aB, 1000)))
384- then throw("1000 Char. max for the description")
385- else if ((size(split(aN, ",")) > 5))
386- then throw("5 tags max.")
387- else {
388- let aZ = {
389- let y = getString(this, ("user_status_" + aQ))
390- if ($isInstanceOf(y, "String"))
391- then {
392- let ba = y
393- ba
394- }
395- else r
396- }
397- let aG = lastBlock.timestamp
398- if (if (isDefined(aZ))
399- then (aZ == r)
400- else false)
401- then throw("Register this account first with \"User infos\" tab")
402- else if ((aZ == p))
403- then throw("Account suspended")
404- else if ((aZ == q))
405- then throw("Account removed")
406- else if ((aP > 10))
407- then throw("10 editions max per artwork")
408- else if ((size(G) != 64))
409- then throw("Hash should be 64 char.")
410- else [StringEntry(am(G), aQ), StringEntry(ap(G, aQ), U), IntegerEntry(T(aQ, U), aG), StringEntry(V(aQ, U), aA), StringEntry(W(aQ, U), aB), StringEntry(X(aQ, U), ar), StringEntry(Z(aQ, U), as), StringEntry(Y(aQ, U), av), StringEntry(ae(aQ, U), aw), StringEntry(af(aQ, U), at), StringEntry(ah(aQ, U), aO), StringEntry(ag(aQ, U), aN), IntegerEntry(aa(aQ, U), aP), StringEntry(ab(aQ, U), E), IntegerEntry(ac(aQ, U), 0), BooleanEntry(ad(aQ, U), false), StringEntry(an(aQ, E), U), StringEntry("last_invoke_id", U), StringEntry(ak(aQ, U), G), ScriptTransfer(Address(fromBase58String(c)), aS, aT)]
411- }
412- }
413- }
414- }
415- }
480+ }
481+ }
482+
483+
484+
485+@Callable(A)
486+func deleteArtwork (T,aI) = {
487+ let L = toString(addressFromPublicKey(A.callerPublicKey))
488+ let aE = toBase58String(A.transactionId)
489+ let bd = if (if ((L == j))
490+ then true
491+ else (L == k))
492+ then aI
493+ else L
494+ let aV = {
495+ let x = getString(this, U(bd, T))
496+ if ($isInstanceOf(x, "String"))
497+ then {
498+ let aZ = x
499+ aZ
500+ }
501+ else throw("No art matching")
502+ }
503+ let bb = {
504+ let x = getInteger(this, ab(bd, T))
505+ if ($isInstanceOf(x, "Int"))
506+ then {
507+ let bc = x
508+ if ((bc != 0))
509+ then true
510+ else false
511+ }
512+ else false
513+ }
514+ let be = z(Z(bd, T))
515+ let F = {
516+ let x = getString(this, aj(bd, T))
517+ if ($isInstanceOf(x, "String"))
518+ then {
519+ let aZ = x
520+ aZ
521+ }
522+ else throw("No art hash matching")
523+ }
524+ let D = {
525+ let x = getString(this, aa(bd, T))
526+ if ($isInstanceOf(x, "String"))
527+ then {
528+ let aZ = x
529+ aZ
530+ }
531+ else throw("No SIGN ID matching")
532+ }
533+ let bf = [DeleteEntry(S(bd, T)), DeleteEntry(U(bd, T)), DeleteEntry(V(bd, T)), DeleteEntry(W(bd, T)), DeleteEntry(Y(bd, T)), DeleteEntry(X(bd, T)), DeleteEntry(ad(bd, T)), DeleteEntry(ae(bd, T)), DeleteEntry(ag(bd, T)), DeleteEntry(af(bd, T)), DeleteEntry(Z(bd, T)), DeleteEntry(aa(bd, T)), DeleteEntry(ab(bd, T)), DeleteEntry(ac(bd, T)), StringEntry("last_invoke_id", aE), DeleteEntry(al(F)), DeleteEntry(am(bd, D)), DeleteEntry(ao(F, bd)), DeleteEntry(ah(bd, T)), DeleteEntry(Z(bd, T)), DeleteEntry(ai(bd, T)), DeleteEntry(((((("art_sold_1_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_2_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_3_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_4_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_5_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_6_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_7_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_8_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_9_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_10_of_" + toString(be)) + "_") + T) + "_") + bd))]
534+ if (if ((L == j))
535+ then true
536+ else (L == k))
537+ then (bf ++ [StringEntry(((("ban_" + T) + "_") + bd), L)])
538+ else if (!(bb))
539+ then if (!(m))
540+ then throw(n)
541+ else bf
542+ else throw("Art already minted, cannot delete")
416543 }
417544
418545
419546
420547 @Callable(aM)
421-func updateArtwork (al,aA,aB,aN,aO,aP,ar,av,as,aw,at) = {
422- let bb = toBase58String(aM.transactionId)
423- let aQ = toBase58String(aM.caller.bytes)
424- if (!(aq(ar, as, at)))
425- then throw("Problem with CID")
426- else if (!(au(av, aw)))
427- then throw("Problem with Hashes")
548+func sellArtwork (T,aU,be,aS) = if (!(m))
549+ then throw(n)
550+ else {
551+ let aE = toBase58String(aM.transactionId)
552+ let L = toBase58String(aM.caller.bytes)
553+ let bg = lastBlock.timestamp
554+ let bh = v(Y(L, T))
555+ if ((size(split(bh, "/")[0]) != 59))
556+ then throw("You cannot sell art with no export file")
428557 else {
429- let aW = w(V(aQ, al))
430- if ((aW == ""))
431- then throw("Entry not found")
432- else if (!(ax(aA, 100)))
433- then throw("100 Char. max for the name")
434- else if (!(ax(aB, 1000)))
435- then throw("1000 Char. max for the description")
436- else {
437- let bc = {
438- let y = getInteger(this, ac(aQ, al))
439- if ($isInstanceOf(y, "Int"))
440- then {
441- let bd = y
442- if ((bd == 0))
443- then false
444- else true
445- }
446- else false
447- }
448- if ((size(split(aN, ",")) > 5))
449- then throw("5 tags max.")
450- else {
451- let aZ = {
452- let y = getString(this, ("user_status_" + aQ))
453- if ($isInstanceOf(y, "String"))
454- then {
455- let ba = y
456- ba
457- }
458- else r
459- }
460- if (if (isDefined(aZ))
461- then (aZ == r)
462- else false)
463- then throw("Register this account first with \"User infos\" tab")
464- else if ((aZ == p))
465- then throw("Account suspended")
466- else if ((aZ == q))
467- then throw("Account removed")
468- else if ((aP > 10))
469- then throw("M10 editions max per artwork")
470- else if (!(bc))
471- then [StringEntry(V(aQ, al), aA), StringEntry(W(aQ, al), aB), StringEntry(X(aQ, al), ar), StringEntry(Z(aQ, al), as), StringEntry(Y(aQ, al), av), StringEntry(af(aQ, al), at), StringEntry(ae(aQ, al), aw), IntegerEntry(aa(aQ, al), aP), StringEntry(ag(aQ, al), aN), StringEntry(ah(aQ, al), aO), StringEntry("last_invoke_id", bb)]
472- else throw("Artwork already minted")
558+ let bi = v(X(L, T))
559+ if ((size(bi) != 64))
560+ then throw("You cannot sell art with no export hash")
561+ else if (if (if ((aS != toBase58String(d)))
562+ then (aS != toBase58String(f))
563+ else false)
564+ then (aS != toBase58String(e))
565+ else false)
566+ then throw("Only SIGN, USDN or WAVES accepted")
567+ else {
568+ let bj = {
569+ let x = getString(this, U(L, T))
570+ if ($isInstanceOf(x, "String"))
571+ then {
572+ let aZ = x
573+ aZ
473574 }
575+ else throw("This art doesn't match")
474576 }
577+ let aY = {
578+ let x = getString(this, Q(L))
579+ if ($isInstanceOf(x, "String"))
580+ then {
581+ let aZ = x
582+ aZ
583+ }
584+ else throw("Register this account first")
585+ }
586+ let bk = z(ab(L, T))
587+ let bl = z(Z(L, T))
588+ if (if ((bk != 0))
589+ then (bk == bl)
590+ else false)
591+ then throw("Max edition reached.")
592+ else if (if ((bk > 0))
593+ then (bl != be)
594+ else false)
595+ then throw("Cannot change maximum issuable anymore")
596+ else if ((aY == r))
597+ then throw("Account suspended")
598+ else if ((aY == s))
599+ then throw("Account deleted")
600+ else {
601+ let bm = if ((aU > 0))
602+ then true
603+ else false
604+[BooleanEntry(ac(L, T), bm), IntegerEntry(ah(L, T), aU), IntegerEntry(Z(L, T), be), StringEntry(ai(L, T), aS), StringEntry("last_invoke_id", aE)]
605+ }
606+ }
475607 }
476- }
477-
478-
479-
480-@Callable(B)
481-func deleteArtwork (U,aI) = {
482- let aQ = toString(addressFromPublicKey(B.callerPublicKey))
483- let aF = toBase58String(B.transactionId)
484- let be = if (if ((aQ == j))
485- then true
486- else (aQ == k))
487- then aI
488- else aQ
489- let aW = {
490- let y = getString(this, V(be, U))
491- if ($isInstanceOf(y, "String"))
492- then {
493- let ba = y
494- ba
495- }
496- else throw("No artwork matching")
497608 }
498- let bc = {
499- let y = getInteger(this, ac(be, U))
500- if ($isInstanceOf(y, "Int"))
501- then {
502- let bd = y
503- if ((bd != 0))
504- then true
505- else false
506- }
507- else false
508- }
509- let bf = A(aa(be, U))
510- let G = {
511- let y = getString(this, ak(be, U))
512- if ($isInstanceOf(y, "String"))
513- then {
514- let ba = y
515- ba
516- }
517- else throw("No artwork hash matching")
518- }
519- let E = {
520- let y = getString(this, ab(be, U))
521- if ($isInstanceOf(y, "String"))
522- then {
523- let ba = y
524- ba
525- }
526- else throw("No SIGN ID matching")
527- }
528- let bg = [DeleteEntry(T(be, U)), DeleteEntry(V(be, U)), DeleteEntry(W(be, U)), DeleteEntry(X(be, U)), DeleteEntry(Z(be, U)), DeleteEntry(Y(be, U)), DeleteEntry(ae(be, U)), DeleteEntry(af(be, U)), DeleteEntry(ah(be, U)), DeleteEntry(ag(be, U)), DeleteEntry(aa(be, U)), DeleteEntry(ab(be, U)), DeleteEntry(ac(be, U)), DeleteEntry(ad(be, U)), StringEntry("last_invoke_id", aF), DeleteEntry(am(G)), DeleteEntry(an(be, E)), DeleteEntry(ap(G, be)), DeleteEntry(ai(be, U)), DeleteEntry(aa(be, U)), DeleteEntry(aj(be, U)), DeleteEntry(((((("art_sold_1_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_2_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_3_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_4_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_5_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_6_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_7_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_8_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_9_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_10_of_" + toString(bf)) + "_") + U) + "_") + be))]
529- if (if ((aQ == j))
530- then true
531- else (aQ == k))
532- then bg
533- else if (!(bc))
534- then bg
535- else throw("Artwork already minted, you cannot delete it")
536- }
537609
538610
539611
540612 @Callable(aM)
541-func sellArtwork (U,aV,bf,aT) = {
542- let aF = toBase58String(aM.transactionId)
543- let aQ = toBase58String(aM.caller.bytes)
544- let bh = lastBlock.timestamp
545- let bi = w(Z(aQ, U))
546- if ((size(split(bi, "/")[0]) != 59))
547- then throw("You cannot sell artwork with no export file")
548- else {
549- let bj = w(Y(aQ, U))
550- if ((size(bj) != 64))
551- then throw("You cannot sell artwork with no export hash")
552- else if (if (if ((aT != toBase58String(d)))
553- then (aT != toBase58String(f))
554- else false)
555- then (aT != toBase58String(e))
556- else false)
557- then throw("Only SIGN, USDN or WAVES accepted")
558- else {
559- let bk = {
560- let y = getString(this, V(aQ, U))
561- if ($isInstanceOf(y, "String"))
562- then {
563- let ba = y
564- ba
565- }
566- else throw("This artwork doesn't match")
567- }
568- let aZ = {
569- let y = getString(this, R(aQ))
570- if ($isInstanceOf(y, "String"))
571- then {
572- let ba = y
573- ba
574- }
575- else throw("Register this account first")
576- }
577- let bl = A(ac(aQ, U))
578- let bm = A(aa(aQ, U))
579- if (if ((bl != 0))
580- then (bl == bm)
581- else false)
582- then throw("Max edition reached.")
583- else if (if ((bl > 0))
584- then (bm != bf)
585- else false)
586- then throw("Cannot change maximum issuable anymore")
587- else if ((aZ == p))
588- then throw("Account suspended")
589- else if ((aZ == q))
590- then throw("Account deleted")
591- else {
592- let bn = if ((aV > 0))
593- then true
594- else false
595-[BooleanEntry(ad(aQ, U), bn), IntegerEntry(ai(aQ, U), aV), IntegerEntry(aa(aQ, U), bf), StringEntry(aj(aQ, U), aT), StringEntry("last_invoke_id", aF)]
596- }
597- }
613+func buyArtwork (T,bn) = if (!(m))
614+ then throw(n)
615+ else {
616+ let aE = toBase58String(aM.transactionId)
617+ let L = toBase58String(aM.caller.bytes)
618+ let bo = z("total_nft_issued")
619+ let D = v(aa(bn, T))
620+ let bj = {
621+ let x = getString(this, U(bn, T))
622+ if ($isInstanceOf(x, "String"))
623+ then {
624+ let aZ = x
625+ aZ
626+ }
627+ else throw("Art doesn't exist")
598628 }
599- }
629+ let bp = v(W(bn, T))
630+ let bh = v(Y(bn, T))
631+ let bi = v(X(bn, T))
632+ let bq = v(ae(bn, T))
633+ let br = v(ad(bn, T))
634+ let aA = take(v(V(bn, T)), 50)
635+ let bk = z(ab(bn, T))
636+ let bs = z(ah(bn, T))
637+ let bt = B(ac(bn, T))
638+ let bu = v(ai(bn, T))
639+ let bv = v(aj(bn, T))
640+ if ((bs == 0))
641+ then throw("Art not for sell")
642+ else if (!(bt))
643+ then throw("Art not for sale")
644+ else {
645+ let bl = z(Z(bn, T))
646+ let aQ = value(aM.payments[0])
647+ let aR = value(aQ.amount)
648+ let aS = if (if (isDefined(aQ.assetId))
649+ then (aQ.assetId == fromBase58String(bu))
650+ else false)
651+ then aQ.assetId
652+ else throw((("Only " + bu) + " token id accepted at the moment"))
653+ let bw = if ((bu == toBase58String(d)))
654+ then 8
655+ else 10
656+ let bx = ((aR / 100) * bw)
657+ let by = (aR - bx)
658+ if ((bk == bl))
659+ then throw("Art sold out")
660+ else if ((bs != aR))
661+ then throw("Payment don't match")
662+ else {
663+ let bz = (bk + 1)
664+ let bA = lastBlock.timestamp
665+ let bB = (((((((((((((((((((((((((((("{\"version\": 1,
666+ \"creator\": \"" + bn) + "\",
667+ \"artID\": \"") + T) + "\",
668+ \"signID\": \"") + D) + "\",
669+ \"artwork_name\": \"") + bj) + "\",
670+ \"artwork_desc\": \"") + aA) + "\",
671+ \"issue\": \"") + toString(bz)) + "/") + toString(bl)) + "\",
672+ \"maxIssuable\": \"") + toString(bl)) + "\",
673+ \"source_hash\": \"") + bv) + "\",
674+ \"display_cid\": \"") + bp) + "\",
675+ \"export_cid\": \"") + bh) + "\",
676+ \"export_hash\": \"") + bi) + "\",
677+ \"licence_cid\": \"") + bq) + "\",
678+ \"licence_hash\": \"") + br) + "\"}")
679+ let bC = Issue(("SA_" + toString((bo + 1))), bB, 1, 0, false)
680+ let bD = calculateAssetId(bC)
681+ let bm = if ((bz == bl))
682+ then false
683+ else true
684+[IntegerEntry(ab(bn, T), bz), StringEntry(((((((("art_sold_" + toString(bz)) + "_of_") + toString(bl)) + "_") + T) + "_") + bn), ((((((((L + "_") + toString(bA)) + "_") + aE) + "_") + toString(bs)) + "_") + bu)), IntegerEntry("total_nft_issued", (bo + 1)), BooleanEntry(ac(bn, T), bm), StringEntry("last_invoke_id", aE), bC, ScriptTransfer(Address(fromBase58String(bn)), by, aS), ScriptTransfer(Address(fromBase58String(c)), bx, aS), ScriptTransfer(aM.caller, 1, bD)]
685+ }
686+ }
687+ }
600688
601689
602690
603-@Callable(aM)
604-func buyArtwork (U,bo) = {
605- let aF = toBase58String(aM.transactionId)
606- let aQ = toBase58String(aM.caller.bytes)
607- let bp = A("total_nft_issued")
608- let E = w(ab(bo, U))
609- let bk = {
610- let y = getString(this, V(bo, U))
611- if ($isInstanceOf(y, "String"))
612- then {
613- let ba = y
614- ba
615- }
616- else throw("Artwork doesn't exit")
617- }
618- let bq = w(X(bo, U))
619- let bi = w(Z(bo, U))
620- let bj = w(Y(bo, U))
621- let br = w(af(bo, U))
622- let bs = w(ae(bo, U))
623- let aB = take(w(W(bo, U)), 50)
624- let bl = A(ac(bo, U))
625- let bt = A(ai(bo, U))
626- let bu = C(ad(bo, U))
627- let bv = w(aj(bo, U))
628- let bw = w(ak(bo, U))
629- if ((bt == 0))
630- then throw("Artwork not for sell")
631- else if (!(bu))
632- then throw("Artwork not for sale")
633- else {
634- let bm = A(aa(bo, U))
635- let aR = value(aM.payments[0])
636- let aS = value(aR.amount)
637- let aT = if (if (isDefined(aR.assetId))
638- then (aR.assetId == fromBase58String(bv))
639- else false)
640- then aR.assetId
641- else throw((("Only " + bv) + " token id accepted at the moment"))
642- let bx = if ((bv == toBase58String(d)))
643- then 8
644- else 10
645- let by = ((aS / 100) * bx)
646- let bz = (aS - by)
647- if ((bl == bm))
648- then throw("Artwork sold out")
649- else if ((bt != aS))
650- then throw("Payment don't match")
651- else {
652- let bA = (bl + 1)
653- let bB = lastBlock.timestamp
654- let bC = (((((((((((((((((((((((((((("{\"version\": 1,
655- \"creator\": \"" + bo) + "\",
656- \"artID\": \"") + U) + "\",
657- \"signID\": \"") + E) + "\",
658- \"artwork_name\": \"") + bk) + "\",
659- \"artwork_desc\": \"") + aB) + "\",
660- \"issue\": \"") + toString(bA)) + "/") + toString(bm)) + "\",
661- \"maxIssuable\": \"") + toString(bm)) + "\",
662- \"source_hash\": \"") + bw) + "\",
663- \"display_cid\": \"") + bq) + "\",
664- \"export_cid\": \"") + bi) + "\",
665- \"export_hash\": \"") + bj) + "\",
666- \"licence_cid\": \"") + br) + "\",
667- \"licence_hash\": \"") + bs) + "\"}")
668- let bD = Issue(("SA_" + toString((bp + 1))), bC, 1, 0, false)
669- let bE = calculateAssetId(bD)
670- let bn = if ((bA == bm))
671- then false
672- else true
673-[IntegerEntry(ac(bo, U), bA), StringEntry(((((((("art_sold_" + toString(bA)) + "_of_") + toString(bm)) + "_") + U) + "_") + bo), ((((((((aQ + "_") + toString(bB)) + "_") + aF) + "_") + toString(bt)) + "_") + bv)), IntegerEntry("total_nft_issued", (bp + 1)), BooleanEntry(ad(bo, U), bn), StringEntry("last_invoke_id", aF), bD, ScriptTransfer(Address(fromBase58String(bo)), bz, aT), ScriptTransfer(Address(fromBase58String(c)), by, aT), ScriptTransfer(aM.caller, 1, bE)]
674- }
675- }
676- }
677-
678-
679-
680-@Callable(B)
691+@Callable(A)
681692 func deleteUser (aI) = {
682- let M = toString(addressFromPublicKey(B.callerPublicKey))
683- let aF = toBase58String(B.transactionId)
684- if (if ((M == j))
693+ let L = toString(addressFromPublicKey(A.callerPublicKey))
694+ let aE = toBase58String(A.transactionId)
695+ if (if ((L == j))
685696 then true
686- else (M == k))
687- then [DeleteEntry(S(aI)), DeleteEntry(L(aI)), DeleteEntry(N(aI)), DeleteEntry(O(aI)), DeleteEntry(P(aI)), DeleteEntry(Q(aI)), StringEntry(R(aI), q), StringEntry("last_invoke_id", aF)]
688- else throw("You are not allowed")
697+ else (L == k))
698+ then [DeleteEntry(R(aI)), DeleteEntry(K(aI)), DeleteEntry(M(aI)), DeleteEntry(N(aI)), DeleteEntry(O(aI)), DeleteEntry(P(aI)), StringEntry(Q(aI), s), StringEntry("last_invoke_id", aE)]
699+ else throw("Not allowed")
689700 }
690701
691702
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let b = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
77
88 let c = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
99
1010 let d = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
1111
1212 let e = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
1313
1414 let f = base58''
1515
1616 let g = 8
1717
1818 let h = 10
1919
2020 let i = 10
2121
2222 let j = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
2323
2424 let k = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
2525
2626 let l = true
2727
28-let m = "ALLOWED"
28+let m = true
2929
30-let n = "REGISTERED"
30+let n = "SIGN Art is under maintenance"
3131
32-let o = "VERIFIED"
32+let o = "ALLOWED"
3333
34-let p = "SUSPENDED"
34+let p = "REGISTERED"
3535
36-let q = "REMOVED"
36+let q = "VERIFIED"
3737
38-let r = "UNREGISTERED"
38+let r = "SUSPENDED"
3939
40-let s = "RESET"
40+let s = "REMOVED"
4141
42-let t = "ON_SALE"
42+let t = "UNREGISTERED"
4343
44-let u = "SOLD"
44+let u = "RESET"
4545
46-let v = "CANCELED"
47-
48-func w (x) = {
49- let y = getString(this, x)
50- if ($isInstanceOf(y, "String"))
46+func v (w) = {
47+ let x = getString(this, w)
48+ if ($isInstanceOf(x, "String"))
5149 then {
52- let z = y
53- z
50+ let y = x
51+ y
5452 }
5553 else ""
5654 }
5755
5856
59-func A (x) = {
60- let y = getInteger(this, x)
61- if ($isInstanceOf(y, "Int"))
57+func z (w) = {
58+ let x = getInteger(this, w)
59+ if ($isInstanceOf(x, "Int"))
6260 then {
63- let B = y
64- B
61+ let A = x
62+ A
6563 }
6664 else 0
6765 }
6866
6967
70-func C (x) = {
71- let y = getBoolean(this, x)
72- if ($isInstanceOf(y, "Boolean"))
68+func B (w) = {
69+ let x = getBoolean(this, w)
70+ if ($isInstanceOf(x, "Boolean"))
7371 then {
74- let B = y
75- B
72+ let A = x
73+ A
7674 }
7775 else false
7876 }
7977
8078
81-func D (E,F,G) = {
82- let y = getString(b, ((("data_fc_" + E) + "_") + F))
83- if ($isInstanceOf(y, "String"))
79+func C (D,E,F) = {
80+ let x = getString(b, ((("data_fc_" + D) + "_") + E))
81+ if ($isInstanceOf(x, "String"))
8482 then {
85- let z = y
86- if (contains(z, G))
83+ let y = x
84+ if (contains(y, F))
8785 then true
8886 else false
8987 }
9088 else false
9189 }
9290
9391
94-func H (I) = if (if ((75 > size(I)))
95- then (60 > size(split(I, "/")[0]))
92+func G (H) = if (if ((75 > size(H)))
93+ then (60 > size(split(H, "/")[0]))
9694 else false)
97- then (16 > size(split(I, "/")[1]))
95+ then (16 > size(split(H, "/")[1]))
9896 else false
9997
10098
101-func J (K) = (65 > size(K))
99+func I (J) = (65 > size(J))
102100
103101
104-func L (M) = ("user_" + M)
102+func K (L) = ("user_" + L)
105103
106104
107-func N (M) = ("user_name_" + M)
105+func M (L) = ("user_name_" + L)
108106
109107
110-func O (M) = ("user_desc_" + M)
108+func N (L) = ("user_desc_" + L)
111109
112110
113-func P (M) = ("user_social_" + M)
111+func O (L) = ("user_social_" + L)
114112
115113
116-func Q (M) = ("user_thumb_" + M)
114+func P (L) = ("user_thumb_" + L)
117115
118116
119-func R (M) = ("user_status_" + M)
117+func Q (L) = ("user_status_" + L)
120118
121119
122-func S (M) = ("user_date_" + M)
120+func R (L) = ("user_date_" + L)
123121
124122
125-func T (M,U) = ((("art_date_" + U) + "_") + M)
123+func S (L,T) = ((("art_date_" + T) + "_") + L)
126124
127125
128-func V (M,U) = ((("art_name_" + U) + "_") + M)
126+func U (L,T) = ((("art_name_" + T) + "_") + L)
129127
130128
131-func W (M,U) = ((("art_desc_" + U) + "_") + M)
129+func V (L,T) = ((("art_desc_" + T) + "_") + L)
132130
133131
134-func X (M,U) = ((("art_display_cid_" + U) + "_") + M)
132+func W (L,T) = ((("art_display_cid_" + T) + "_") + L)
135133
136134
137-func Y (M,U) = ((("art_export_hash_" + U) + "_") + M)
135+func X (L,T) = ((("art_export_hash_" + T) + "_") + L)
138136
139137
140-func Z (M,U) = ((("art_export_cid_" + U) + "_") + M)
138+func Y (L,T) = ((("art_export_cid_" + T) + "_") + L)
141139
142140
143-func aa (M,U) = ((("art_maxmint_" + U) + "_") + M)
141+func Z (L,T) = ((("art_maxmint_" + T) + "_") + L)
144142
145143
146-func ab (M,U) = ((("art_signid_" + U) + "_") + M)
144+func aa (L,T) = ((("art_signid_" + T) + "_") + L)
147145
148146
149-func ac (M,U) = ((("art_issued_" + U) + "_") + M)
147+func ab (L,T) = ((("art_issued_" + T) + "_") + L)
150148
151149
152-func ad (M,U) = ((("art_onsale_" + U) + "_") + M)
150+func ac (L,T) = ((("art_onsale_" + T) + "_") + L)
153151
154152
155-func ae (M,U) = ((("art_licence_hash_" + U) + "_") + M)
153+func ad (L,T) = ((("art_licence_hash_" + T) + "_") + L)
156154
157155
158-func af (M,U) = ((("art_licence_cid_" + U) + "_") + M)
156+func ae (L,T) = ((("art_licence_cid_" + T) + "_") + L)
159157
160158
161-func ag (M,U) = ((("art_tags_" + U) + "_") + M)
159+func af (L,T) = ((("art_tags_" + T) + "_") + L)
162160
163161
164-func ah (M,U) = ((("art_type_" + U) + "_") + M)
162+func ag (L,T) = ((("art_type_" + T) + "_") + L)
165163
166164
167-func ai (M,U) = ((("art_price_" + U) + "_") + M)
165+func ah (L,T) = ((("art_price_" + T) + "_") + L)
168166
169167
170-func aj (M,U) = ((("art_assetAccepted_" + U) + "_") + M)
168+func ai (L,T) = ((("art_assetAccepted_" + T) + "_") + L)
171169
172170
173-func ak (M,al) = ((("get_hashbytxidaddr_" + al) + "_") + M)
171+func aj (L,ak) = ((("get_hashbytxidaddr_" + ak) + "_") + L)
174172
175173
176-func am (G) = ("get_owner_by_hash_" + G)
174+func al (F) = ("get_owner_by_hash_" + F)
177175
178176
179-func an (M,ao) = ((("get_artidbysignid_" + ao) + "_") + M)
177+func am (L,an) = ((("get_artidbysignid_" + an) + "_") + L)
180178
181179
182-func ap (G,M) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((G + M)))))
180+func ao (F,L) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((F + L)))))
183181
184182
185-func aq (ar,as,at) = if (if ((ar != ""))
186- then !(H(ar))
183+func ap (aq,ar,as) = if (if ((aq != ""))
184+ then !(G(aq))
187185 else false)
188- then throw("Wrong Display CID length")
189- else if (if ((as != ""))
190- then !(H(as))
186+ then throw("Wrong Display CID")
187+ else if (if ((ar != ""))
188+ then !(G(ar))
191189 else false)
192- then throw("Wrong Export CID length")
193- else if (if ((at != ""))
194- then !(H(at))
190+ then throw("Wrong Export CID")
191+ else if (if ((as != ""))
192+ then !(G(as))
195193 else false)
196- then throw("Wrong Licence CID length")
194+ then throw("Wrong Licence CID")
197195 else true
198196
199197
200-func au (av,aw) = if (if ((av != ""))
201- then !(J(av))
198+func at (au,av) = if (if ((au != ""))
199+ then !(I(au))
202200 else false)
203- then throw("Export Hash should be 64 characters maximum")
204- else if (if ((aw != ""))
205- then !(J(aw))
201+ then throw("Export Hash 64 char. max")
202+ else if (if ((av != ""))
203+ then !(I(av))
206204 else false)
207- then throw("Licence Hash should be 64 characters maximum")
205+ then throw("Licence Hash 64 char. max")
208206 else true
209207
210208
211-func ax (ay,az) = if ((size(ay) == 0))
209+func aw (ax,ay) = if ((size(ax) == 0))
212210 then throw("Field cannot be is empty")
213- else if ((size(ay) > az))
214- then throw((ay + " is too long"))
211+ else if ((size(ax) > ay))
212+ then throw((ax + " is too long"))
215213 else true
216214
217215
218-@Callable(B)
219-func registerUser (aA,aB,aC,aD) = {
220- let M = toString(addressFromPublicKey(B.callerPublicKey))
221- let aE = w(R(M))
222- let aF = toBase58String(B.transactionId)
223- let aG = lastBlock.timestamp
224- if (if ((aE == p))
225- then true
226- else (aE == q))
227- then throw("You are now allowed to register, your account have been suspended/ removed.")
228- else if ((aE == n))
229- then throw("You are already registered, please use update method instead.")
230- else if (if ((aE == ""))
231- then l
232- else false)
233- then throw("You are now allowed to register yet, please contact us first to get approved.")
234- else if (if ((aA == ""))
235- then true
236- else (aB == ""))
237- then throw("Name and description cannot be empty")
238- else if ((size(aB) > 600))
239- then throw("600 Characters maximum for the description")
240- else [IntegerEntry(S(M), aG), StringEntry(L(M), ((aF + "_") + toString(lastBlock.timestamp))), StringEntry(N(M), aA), StringEntry(O(M), aB), StringEntry(P(M), aD), StringEntry(Q(M), aC), StringEntry(R(M), n), StringEntry("last_invoke_id", aF)]
241- }
216+@Callable(A)
217+func registerUser (az,aA,aB,aC) = if (!(m))
218+ then throw(n)
219+ else {
220+ let L = toString(addressFromPublicKey(A.callerPublicKey))
221+ let aD = v(Q(L))
222+ let aE = toBase58String(A.transactionId)
223+ let aF = lastBlock.timestamp
224+ if (if ((aD == r))
225+ then true
226+ else (aD == s))
227+ then throw("Account suspended/ removed.")
228+ else if ((aD == p))
229+ then throw("Already registered")
230+ else if (if ((aD == ""))
231+ then l
232+ else false)
233+ then throw("Can't register, get approved first.")
234+ else if (if ((az == ""))
235+ then true
236+ else (aA == ""))
237+ then throw("Name and description cannot be empty")
238+ else if ((size(aA) > 600))
239+ then throw("600 Char. max description")
240+ else [IntegerEntry(R(L), aF), StringEntry(K(L), ((aE + "_") + toString(lastBlock.timestamp))), StringEntry(M(L), az), StringEntry(N(L), aA), StringEntry(O(L), aC), StringEntry(P(L), aB), StringEntry(Q(L), p), StringEntry("last_invoke_id", aE)]
241+ }
242242
243243
244244
245-@Callable(B)
246-func deleteEntry (aH) = {
247- let M = toString(addressFromPublicKey(B.callerPublicKey))
248- if ((M == j))
249- then [DeleteEntry(aH)]
245+@Callable(A)
246+func deleteEntry (aG) = {
247+ let L = toString(addressFromPublicKey(A.callerPublicKey))
248+ if ((L == j))
249+ then [DeleteEntry(aG)]
250250 else throw("no")
251251 }
252252
253253
254254
255-@Callable(B)
256-func updateUser (aA,aB,aC,aD) = {
257- let M = toString(addressFromPublicKey(B.callerPublicKey))
258- let aE = w(R(M))
259- if (if ((aE == p))
260- then true
261- else (aE == q))
262- then throw("You are now allowed to register, your account have been suspended/ removed.")
263- else if (if ((aE == ""))
255+@Callable(A)
256+func updateUser (az,aA,aB,aC) = if (!(m))
257+ then throw(n)
258+ else {
259+ let aE = toBase58String(A.transactionId)
260+ let L = toString(addressFromPublicKey(A.callerPublicKey))
261+ let aH = v(Q(L))
262+ if (if ((aH == r))
264263 then true
265- else (aE == m))
266- then throw("Please register first with registerUser")
267- else {
268- let aF = toBase58String(B.transactionId)
269- let aG = lastBlock.timestamp
270- if (if ((aA == ""))
264+ else (aH == s))
265+ then throw("Account suspended/ removed.")
266+ else if (if ((aH == ""))
267+ then true
268+ else (aH == o))
269+ then throw("Register first")
270+ else if (if ((az == ""))
271271 then true
272- else (aB == ""))
273- then throw("Name and description cannot be empty")
274- else if ((size(aB) > 600))
275- then throw("600 Characters maximum for the description")
276- else [StringEntry(N(M), aA), StringEntry(O(M), aB), StringEntry(P(M), aD), StringEntry(Q(M), aC), StringEntry("last_invoke_id", aF)]
277- }
278- }
272+ else (aA == ""))
273+ then throw("Name & description cannot be empty")
274+ else if ((size(aA) > 600))
275+ then throw("600 Char. max for description")
276+ else [StringEntry(M(L), az), StringEntry(N(L), aA), StringEntry(O(L), aC), StringEntry(P(L), aB), StringEntry("last_invoke_id", aE)]
277+ }
279278
280279
281280
282-@Callable(B)
283-func changeUserStatus (aI,aJ) = {
284- let M = toString(addressFromPublicKey(B.callerPublicKey))
285- let aF = toBase58String(B.transactionId)
286- let aK = w(R(aI))
287- let aL = if ((aJ == o))
288- then o
289- else if ((aJ == n))
290- then n
281+@Callable(A)
282+func changeUserStatus (aI,aJ) = if (!(m))
283+ then throw(n)
284+ else {
285+ let L = toString(addressFromPublicKey(A.callerPublicKey))
286+ let aE = toBase58String(A.transactionId)
287+ let aK = v(Q(aI))
288+ let aL = if ((aJ == q))
289+ then q
291290 else if ((aJ == p))
292291 then p
293- else if ((aJ == q))
294- then q
295- else if ((aJ == m))
296- then m
297- else if (if ((aJ == s))
298- then (aK == m)
299- else false)
300- then ""
301- else throw("Unknown status")
302- if (if ((aK == m))
303- then (aJ == m)
304- else false)
305- then throw("This user is already allowed")
306- else if (if ((aK == n))
307- then (aJ == m)
292+ else if ((aJ == r))
293+ then r
294+ else if ((aJ == s))
295+ then s
296+ else if ((aJ == o))
297+ then o
298+ else if (if ((aJ == u))
299+ then (aK == o)
300+ else false)
301+ then ""
302+ else throw("Unknown status")
303+ if (if ((aK == o))
304+ then (aJ == o)
308305 else false)
309- then throw("This user is already allowed and registered")
310- else if (if ((aK == o))
311- then (aJ == m)
306+ then throw("User already allowed")
307+ else if (if ((aK == p))
308+ then (aJ == o)
312309 else false)
313- then throw("This user is already allowed and verified")
314- else if (if ((M == j))
315- then true
316- else (M == k))
317- then [StringEntry(R(aI), aL), StringEntry("last_invoke_id", aF)]
318- else throw(((("You are not allowed to change user status " + M) + " / ") + j))
319- }
310+ then throw("User already allowed & registered")
311+ else if (if ((aK == q))
312+ then (aJ == o)
313+ else false)
314+ then throw("User already allowed & verified")
315+ else if (if ((L == j))
316+ then true
317+ else (L == k))
318+ then [StringEntry(Q(aI), aL), StringEntry("last_invoke_id", aE)]
319+ else throw(((("Not allowed to change user status " + L) + " / ") + j))
320+ }
320321
321322
322323
323-@Callable(B)
324+@Callable(A)
324325 func creditUser (aI) = {
325- let M = toString(addressFromPublicKey(B.callerPublicKey))
326- let aF = toBase58String(B.transactionId)
327- if (if ((M == j))
326+ let L = toString(addressFromPublicKey(A.callerPublicKey))
327+ let aE = toBase58String(A.transactionId)
328+ if (if ((L == j))
328329 then true
329- else (M == k))
330+ else (L == k))
330331 then [ScriptTransfer(Address(fromBase58String(aI)), 150000000000, d)]
331- else throw("You are not allowed to do that")
332+ else throw("Not allowed")
332333 }
333334
334335
335336
336337 @Callable(aM)
337-func addArtwork (G,E,aA,aB,aN,aO,aP,ar,av,as,aw,at) = {
338- let U = toBase58String(aM.transactionId)
339- let aQ = toBase58String(aM.caller.bytes)
340- if (!(aq(ar, as, at)))
341- then throw("Problem with CID")
342- else if (!(J(G)))
343- then throw("Hash should be 64 characters maximum")
344- else if (!(au(av, aw)))
338+func addArtwork (F,D,az,aA,aN,aO,aP,aq,au,ar,av,as) = if (!(m))
339+ then throw(n)
340+ else {
341+ let T = toBase58String(aM.transactionId)
342+ let L = toBase58String(aM.caller.bytes)
343+ if (!(ap(aq, ar, as)))
344+ then throw("Problem with CID")
345+ else if (!(I(F)))
346+ then throw("Hash should be 64 characters maximum")
347+ else if (!(at(au, av)))
348+ then throw("Problem with Hashes")
349+ else if ((size(aM.payments) == 0))
350+ then throw("No payment attached")
351+ else {
352+ let aQ = value(aM.payments[0])
353+ let aR = value(aQ.amount)
354+ let aS = if (if (isDefined(aQ.assetId))
355+ then (aQ.assetId == d)
356+ else false)
357+ then aQ.assetId
358+ else throw("Only SIGN token accepted at the moment")
359+ let aT = {
360+ let x = getInteger(a, ("certification_fee_" + toBase58String(d)))
361+ if ($isInstanceOf(x, "Int"))
362+ then {
363+ let aU = x
364+ aU
365+ }
366+ else throw("Price undefined in oracle")
367+ }
368+ if ((aR != aT))
369+ then throw(("Payment amount should be " + toString(aT)))
370+ else {
371+ let aV = v(ao(F, L))
372+ if ((aV != ""))
373+ then throw("You already added it")
374+ else {
375+ let aW = v(al(F))
376+ if ((aW != ""))
377+ then throw("Hash already registered")
378+ else {
379+ let aX = C(D, L, F)
380+ if (!(aX))
381+ then throw("Sign Certificate not found for this address.")
382+ else if ((size(aq) == 0))
383+ then throw("Display CID cannot be empty")
384+ else if (!(aw(az, 100)))
385+ then throw("100 Char. max name")
386+ else if (!(aw(aA, 1000)))
387+ then throw("1000 Char. max description")
388+ else if ((size(split(aN, ",")) > 5))
389+ then throw("5 tags max.")
390+ else {
391+ let aY = {
392+ let x = getString(this, ("user_status_" + L))
393+ if ($isInstanceOf(x, "String"))
394+ then {
395+ let aZ = x
396+ aZ
397+ }
398+ else t
399+ }
400+ let aF = lastBlock.timestamp
401+ if (if (isDefined(aY))
402+ then (aY == t)
403+ else false)
404+ then throw("Register this account first with \"User infos\" tab")
405+ else if ((aY == r))
406+ then throw("Account suspended")
407+ else if ((aY == s))
408+ then throw("Account removed")
409+ else if ((aP > 10))
410+ then throw("10 editions max")
411+ else if ((size(F) != 64))
412+ then throw("Hash 64 char. max")
413+ else [StringEntry(al(F), L), StringEntry(ao(F, L), T), IntegerEntry(S(L, T), aF), StringEntry(U(L, T), az), StringEntry(V(L, T), aA), StringEntry(W(L, T), aq), StringEntry(Y(L, T), ar), StringEntry(X(L, T), au), StringEntry(ad(L, T), av), StringEntry(ae(L, T), as), StringEntry(ag(L, T), aO), StringEntry(af(L, T), aN), IntegerEntry(Z(L, T), aP), StringEntry(aa(L, T), D), IntegerEntry(ab(L, T), 0), BooleanEntry(ac(L, T), false), StringEntry(am(L, D), T), StringEntry("last_invoke_id", T), StringEntry(aj(L, T), F), ScriptTransfer(Address(fromBase58String(c)), aR, aS)]
414+ }
415+ }
416+ }
417+ }
418+ }
419+ }
420+
421+
422+
423+@Callable(aM)
424+func updateArtwork (ak,az,aA,aN,aO,aP,aq,au,ar,av,as) = if (!(m))
425+ then throw(n)
426+ else {
427+ let ba = toBase58String(aM.transactionId)
428+ let L = toBase58String(aM.caller.bytes)
429+ if (!(ap(aq, ar, as)))
430+ then throw("Problem with CID")
431+ else if (!(at(au, av)))
345432 then throw("Problem with Hashes")
346- else if ((size(aM.payments) == 0))
347- then throw("No payment attached")
348- else {
349- let aR = value(aM.payments[0])
350- let aS = value(aR.amount)
351- let aT = if (if (isDefined(aR.assetId))
352- then (aR.assetId == d)
353- else false)
354- then aR.assetId
355- else throw("Only SIGN token accepted at the moment")
356- let aU = {
357- let y = getInteger(a, ("certification_fee_" + toBase58String(d)))
358- if ($isInstanceOf(y, "Int"))
359- then {
360- let aV = y
361- aV
433+ else {
434+ let aV = v(U(L, ak))
435+ if ((aV == ""))
436+ then throw("Entry not found")
437+ else if (!(aw(az, 100)))
438+ then throw("100 Char. max name")
439+ else if (!(aw(aA, 1000)))
440+ then throw("1000 Char. max description")
441+ else {
442+ let bb = {
443+ let x = getInteger(this, ab(L, ak))
444+ if ($isInstanceOf(x, "Int"))
445+ then {
446+ let bc = x
447+ if ((bc == 0))
448+ then false
449+ else true
450+ }
451+ else false
452+ }
453+ if ((size(split(aN, ",")) > 5))
454+ then throw("5 tags max.")
455+ else {
456+ let aY = {
457+ let x = getString(this, ("user_status_" + L))
458+ if ($isInstanceOf(x, "String"))
459+ then {
460+ let aZ = x
461+ aZ
462+ }
463+ else t
464+ }
465+ if (if (isDefined(aY))
466+ then (aY == t)
467+ else false)
468+ then throw("Register first with \"User infos\"")
469+ else if ((aY == r))
470+ then throw("Account suspended")
471+ else if ((aY == s))
472+ then throw("Account removed")
473+ else if ((aP > 10))
474+ then throw("10 editions max per artwork")
475+ else if (!(bb))
476+ then [StringEntry(U(L, ak), az), StringEntry(V(L, ak), aA), StringEntry(W(L, ak), aq), StringEntry(Y(L, ak), ar), StringEntry(X(L, ak), au), StringEntry(ae(L, ak), as), StringEntry(ad(L, ak), av), IntegerEntry(Z(L, ak), aP), StringEntry(af(L, ak), aN), StringEntry(ag(L, ak), aO), StringEntry("last_invoke_id", ba)]
477+ else throw("Already minted")
478+ }
362479 }
363- else throw("Price undefined in oracle")
364- }
365- if ((aS != aU))
366- then throw(("Payment amount should be " + toString(aU)))
367- else {
368- let aW = w(ap(G, aQ))
369- if ((aW != ""))
370- then throw("You already added it on Sign Art")
371- else {
372- let aX = w(am(G))
373- if ((aX != ""))
374- then throw("Hash already registered on Sign Art")
375- else {
376- let aY = D(E, aQ, G)
377- if (!(aY))
378- then throw("Sign Certificate not found for this address.")
379- else if ((size(ar) == 0))
380- then throw("Display CID cannot be empty")
381- else if (!(ax(aA, 100)))
382- then throw("100 Char. max for the name")
383- else if (!(ax(aB, 1000)))
384- then throw("1000 Char. max for the description")
385- else if ((size(split(aN, ",")) > 5))
386- then throw("5 tags max.")
387- else {
388- let aZ = {
389- let y = getString(this, ("user_status_" + aQ))
390- if ($isInstanceOf(y, "String"))
391- then {
392- let ba = y
393- ba
394- }
395- else r
396- }
397- let aG = lastBlock.timestamp
398- if (if (isDefined(aZ))
399- then (aZ == r)
400- else false)
401- then throw("Register this account first with \"User infos\" tab")
402- else if ((aZ == p))
403- then throw("Account suspended")
404- else if ((aZ == q))
405- then throw("Account removed")
406- else if ((aP > 10))
407- then throw("10 editions max per artwork")
408- else if ((size(G) != 64))
409- then throw("Hash should be 64 char.")
410- else [StringEntry(am(G), aQ), StringEntry(ap(G, aQ), U), IntegerEntry(T(aQ, U), aG), StringEntry(V(aQ, U), aA), StringEntry(W(aQ, U), aB), StringEntry(X(aQ, U), ar), StringEntry(Z(aQ, U), as), StringEntry(Y(aQ, U), av), StringEntry(ae(aQ, U), aw), StringEntry(af(aQ, U), at), StringEntry(ah(aQ, U), aO), StringEntry(ag(aQ, U), aN), IntegerEntry(aa(aQ, U), aP), StringEntry(ab(aQ, U), E), IntegerEntry(ac(aQ, U), 0), BooleanEntry(ad(aQ, U), false), StringEntry(an(aQ, E), U), StringEntry("last_invoke_id", U), StringEntry(ak(aQ, U), G), ScriptTransfer(Address(fromBase58String(c)), aS, aT)]
411- }
412- }
413- }
414- }
415- }
480+ }
481+ }
482+
483+
484+
485+@Callable(A)
486+func deleteArtwork (T,aI) = {
487+ let L = toString(addressFromPublicKey(A.callerPublicKey))
488+ let aE = toBase58String(A.transactionId)
489+ let bd = if (if ((L == j))
490+ then true
491+ else (L == k))
492+ then aI
493+ else L
494+ let aV = {
495+ let x = getString(this, U(bd, T))
496+ if ($isInstanceOf(x, "String"))
497+ then {
498+ let aZ = x
499+ aZ
500+ }
501+ else throw("No art matching")
502+ }
503+ let bb = {
504+ let x = getInteger(this, ab(bd, T))
505+ if ($isInstanceOf(x, "Int"))
506+ then {
507+ let bc = x
508+ if ((bc != 0))
509+ then true
510+ else false
511+ }
512+ else false
513+ }
514+ let be = z(Z(bd, T))
515+ let F = {
516+ let x = getString(this, aj(bd, T))
517+ if ($isInstanceOf(x, "String"))
518+ then {
519+ let aZ = x
520+ aZ
521+ }
522+ else throw("No art hash matching")
523+ }
524+ let D = {
525+ let x = getString(this, aa(bd, T))
526+ if ($isInstanceOf(x, "String"))
527+ then {
528+ let aZ = x
529+ aZ
530+ }
531+ else throw("No SIGN ID matching")
532+ }
533+ let bf = [DeleteEntry(S(bd, T)), DeleteEntry(U(bd, T)), DeleteEntry(V(bd, T)), DeleteEntry(W(bd, T)), DeleteEntry(Y(bd, T)), DeleteEntry(X(bd, T)), DeleteEntry(ad(bd, T)), DeleteEntry(ae(bd, T)), DeleteEntry(ag(bd, T)), DeleteEntry(af(bd, T)), DeleteEntry(Z(bd, T)), DeleteEntry(aa(bd, T)), DeleteEntry(ab(bd, T)), DeleteEntry(ac(bd, T)), StringEntry("last_invoke_id", aE), DeleteEntry(al(F)), DeleteEntry(am(bd, D)), DeleteEntry(ao(F, bd)), DeleteEntry(ah(bd, T)), DeleteEntry(Z(bd, T)), DeleteEntry(ai(bd, T)), DeleteEntry(((((("art_sold_1_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_2_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_3_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_4_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_5_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_6_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_7_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_8_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_9_of_" + toString(be)) + "_") + T) + "_") + bd)), DeleteEntry(((((("art_sold_10_of_" + toString(be)) + "_") + T) + "_") + bd))]
534+ if (if ((L == j))
535+ then true
536+ else (L == k))
537+ then (bf ++ [StringEntry(((("ban_" + T) + "_") + bd), L)])
538+ else if (!(bb))
539+ then if (!(m))
540+ then throw(n)
541+ else bf
542+ else throw("Art already minted, cannot delete")
416543 }
417544
418545
419546
420547 @Callable(aM)
421-func updateArtwork (al,aA,aB,aN,aO,aP,ar,av,as,aw,at) = {
422- let bb = toBase58String(aM.transactionId)
423- let aQ = toBase58String(aM.caller.bytes)
424- if (!(aq(ar, as, at)))
425- then throw("Problem with CID")
426- else if (!(au(av, aw)))
427- then throw("Problem with Hashes")
548+func sellArtwork (T,aU,be,aS) = if (!(m))
549+ then throw(n)
550+ else {
551+ let aE = toBase58String(aM.transactionId)
552+ let L = toBase58String(aM.caller.bytes)
553+ let bg = lastBlock.timestamp
554+ let bh = v(Y(L, T))
555+ if ((size(split(bh, "/")[0]) != 59))
556+ then throw("You cannot sell art with no export file")
428557 else {
429- let aW = w(V(aQ, al))
430- if ((aW == ""))
431- then throw("Entry not found")
432- else if (!(ax(aA, 100)))
433- then throw("100 Char. max for the name")
434- else if (!(ax(aB, 1000)))
435- then throw("1000 Char. max for the description")
436- else {
437- let bc = {
438- let y = getInteger(this, ac(aQ, al))
439- if ($isInstanceOf(y, "Int"))
440- then {
441- let bd = y
442- if ((bd == 0))
443- then false
444- else true
445- }
446- else false
447- }
448- if ((size(split(aN, ",")) > 5))
449- then throw("5 tags max.")
450- else {
451- let aZ = {
452- let y = getString(this, ("user_status_" + aQ))
453- if ($isInstanceOf(y, "String"))
454- then {
455- let ba = y
456- ba
457- }
458- else r
459- }
460- if (if (isDefined(aZ))
461- then (aZ == r)
462- else false)
463- then throw("Register this account first with \"User infos\" tab")
464- else if ((aZ == p))
465- then throw("Account suspended")
466- else if ((aZ == q))
467- then throw("Account removed")
468- else if ((aP > 10))
469- then throw("M10 editions max per artwork")
470- else if (!(bc))
471- then [StringEntry(V(aQ, al), aA), StringEntry(W(aQ, al), aB), StringEntry(X(aQ, al), ar), StringEntry(Z(aQ, al), as), StringEntry(Y(aQ, al), av), StringEntry(af(aQ, al), at), StringEntry(ae(aQ, al), aw), IntegerEntry(aa(aQ, al), aP), StringEntry(ag(aQ, al), aN), StringEntry(ah(aQ, al), aO), StringEntry("last_invoke_id", bb)]
472- else throw("Artwork already minted")
558+ let bi = v(X(L, T))
559+ if ((size(bi) != 64))
560+ then throw("You cannot sell art with no export hash")
561+ else if (if (if ((aS != toBase58String(d)))
562+ then (aS != toBase58String(f))
563+ else false)
564+ then (aS != toBase58String(e))
565+ else false)
566+ then throw("Only SIGN, USDN or WAVES accepted")
567+ else {
568+ let bj = {
569+ let x = getString(this, U(L, T))
570+ if ($isInstanceOf(x, "String"))
571+ then {
572+ let aZ = x
573+ aZ
473574 }
575+ else throw("This art doesn't match")
474576 }
577+ let aY = {
578+ let x = getString(this, Q(L))
579+ if ($isInstanceOf(x, "String"))
580+ then {
581+ let aZ = x
582+ aZ
583+ }
584+ else throw("Register this account first")
585+ }
586+ let bk = z(ab(L, T))
587+ let bl = z(Z(L, T))
588+ if (if ((bk != 0))
589+ then (bk == bl)
590+ else false)
591+ then throw("Max edition reached.")
592+ else if (if ((bk > 0))
593+ then (bl != be)
594+ else false)
595+ then throw("Cannot change maximum issuable anymore")
596+ else if ((aY == r))
597+ then throw("Account suspended")
598+ else if ((aY == s))
599+ then throw("Account deleted")
600+ else {
601+ let bm = if ((aU > 0))
602+ then true
603+ else false
604+[BooleanEntry(ac(L, T), bm), IntegerEntry(ah(L, T), aU), IntegerEntry(Z(L, T), be), StringEntry(ai(L, T), aS), StringEntry("last_invoke_id", aE)]
605+ }
606+ }
475607 }
476- }
477-
478-
479-
480-@Callable(B)
481-func deleteArtwork (U,aI) = {
482- let aQ = toString(addressFromPublicKey(B.callerPublicKey))
483- let aF = toBase58String(B.transactionId)
484- let be = if (if ((aQ == j))
485- then true
486- else (aQ == k))
487- then aI
488- else aQ
489- let aW = {
490- let y = getString(this, V(be, U))
491- if ($isInstanceOf(y, "String"))
492- then {
493- let ba = y
494- ba
495- }
496- else throw("No artwork matching")
497608 }
498- let bc = {
499- let y = getInteger(this, ac(be, U))
500- if ($isInstanceOf(y, "Int"))
501- then {
502- let bd = y
503- if ((bd != 0))
504- then true
505- else false
506- }
507- else false
508- }
509- let bf = A(aa(be, U))
510- let G = {
511- let y = getString(this, ak(be, U))
512- if ($isInstanceOf(y, "String"))
513- then {
514- let ba = y
515- ba
516- }
517- else throw("No artwork hash matching")
518- }
519- let E = {
520- let y = getString(this, ab(be, U))
521- if ($isInstanceOf(y, "String"))
522- then {
523- let ba = y
524- ba
525- }
526- else throw("No SIGN ID matching")
527- }
528- let bg = [DeleteEntry(T(be, U)), DeleteEntry(V(be, U)), DeleteEntry(W(be, U)), DeleteEntry(X(be, U)), DeleteEntry(Z(be, U)), DeleteEntry(Y(be, U)), DeleteEntry(ae(be, U)), DeleteEntry(af(be, U)), DeleteEntry(ah(be, U)), DeleteEntry(ag(be, U)), DeleteEntry(aa(be, U)), DeleteEntry(ab(be, U)), DeleteEntry(ac(be, U)), DeleteEntry(ad(be, U)), StringEntry("last_invoke_id", aF), DeleteEntry(am(G)), DeleteEntry(an(be, E)), DeleteEntry(ap(G, be)), DeleteEntry(ai(be, U)), DeleteEntry(aa(be, U)), DeleteEntry(aj(be, U)), DeleteEntry(((((("art_sold_1_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_2_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_3_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_4_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_5_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_6_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_7_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_8_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_9_of_" + toString(bf)) + "_") + U) + "_") + be)), DeleteEntry(((((("art_sold_10_of_" + toString(bf)) + "_") + U) + "_") + be))]
529- if (if ((aQ == j))
530- then true
531- else (aQ == k))
532- then bg
533- else if (!(bc))
534- then bg
535- else throw("Artwork already minted, you cannot delete it")
536- }
537609
538610
539611
540612 @Callable(aM)
541-func sellArtwork (U,aV,bf,aT) = {
542- let aF = toBase58String(aM.transactionId)
543- let aQ = toBase58String(aM.caller.bytes)
544- let bh = lastBlock.timestamp
545- let bi = w(Z(aQ, U))
546- if ((size(split(bi, "/")[0]) != 59))
547- then throw("You cannot sell artwork with no export file")
548- else {
549- let bj = w(Y(aQ, U))
550- if ((size(bj) != 64))
551- then throw("You cannot sell artwork with no export hash")
552- else if (if (if ((aT != toBase58String(d)))
553- then (aT != toBase58String(f))
554- else false)
555- then (aT != toBase58String(e))
556- else false)
557- then throw("Only SIGN, USDN or WAVES accepted")
558- else {
559- let bk = {
560- let y = getString(this, V(aQ, U))
561- if ($isInstanceOf(y, "String"))
562- then {
563- let ba = y
564- ba
565- }
566- else throw("This artwork doesn't match")
567- }
568- let aZ = {
569- let y = getString(this, R(aQ))
570- if ($isInstanceOf(y, "String"))
571- then {
572- let ba = y
573- ba
574- }
575- else throw("Register this account first")
576- }
577- let bl = A(ac(aQ, U))
578- let bm = A(aa(aQ, U))
579- if (if ((bl != 0))
580- then (bl == bm)
581- else false)
582- then throw("Max edition reached.")
583- else if (if ((bl > 0))
584- then (bm != bf)
585- else false)
586- then throw("Cannot change maximum issuable anymore")
587- else if ((aZ == p))
588- then throw("Account suspended")
589- else if ((aZ == q))
590- then throw("Account deleted")
591- else {
592- let bn = if ((aV > 0))
593- then true
594- else false
595-[BooleanEntry(ad(aQ, U), bn), IntegerEntry(ai(aQ, U), aV), IntegerEntry(aa(aQ, U), bf), StringEntry(aj(aQ, U), aT), StringEntry("last_invoke_id", aF)]
596- }
597- }
613+func buyArtwork (T,bn) = if (!(m))
614+ then throw(n)
615+ else {
616+ let aE = toBase58String(aM.transactionId)
617+ let L = toBase58String(aM.caller.bytes)
618+ let bo = z("total_nft_issued")
619+ let D = v(aa(bn, T))
620+ let bj = {
621+ let x = getString(this, U(bn, T))
622+ if ($isInstanceOf(x, "String"))
623+ then {
624+ let aZ = x
625+ aZ
626+ }
627+ else throw("Art doesn't exist")
598628 }
599- }
629+ let bp = v(W(bn, T))
630+ let bh = v(Y(bn, T))
631+ let bi = v(X(bn, T))
632+ let bq = v(ae(bn, T))
633+ let br = v(ad(bn, T))
634+ let aA = take(v(V(bn, T)), 50)
635+ let bk = z(ab(bn, T))
636+ let bs = z(ah(bn, T))
637+ let bt = B(ac(bn, T))
638+ let bu = v(ai(bn, T))
639+ let bv = v(aj(bn, T))
640+ if ((bs == 0))
641+ then throw("Art not for sell")
642+ else if (!(bt))
643+ then throw("Art not for sale")
644+ else {
645+ let bl = z(Z(bn, T))
646+ let aQ = value(aM.payments[0])
647+ let aR = value(aQ.amount)
648+ let aS = if (if (isDefined(aQ.assetId))
649+ then (aQ.assetId == fromBase58String(bu))
650+ else false)
651+ then aQ.assetId
652+ else throw((("Only " + bu) + " token id accepted at the moment"))
653+ let bw = if ((bu == toBase58String(d)))
654+ then 8
655+ else 10
656+ let bx = ((aR / 100) * bw)
657+ let by = (aR - bx)
658+ if ((bk == bl))
659+ then throw("Art sold out")
660+ else if ((bs != aR))
661+ then throw("Payment don't match")
662+ else {
663+ let bz = (bk + 1)
664+ let bA = lastBlock.timestamp
665+ let bB = (((((((((((((((((((((((((((("{\"version\": 1,
666+ \"creator\": \"" + bn) + "\",
667+ \"artID\": \"") + T) + "\",
668+ \"signID\": \"") + D) + "\",
669+ \"artwork_name\": \"") + bj) + "\",
670+ \"artwork_desc\": \"") + aA) + "\",
671+ \"issue\": \"") + toString(bz)) + "/") + toString(bl)) + "\",
672+ \"maxIssuable\": \"") + toString(bl)) + "\",
673+ \"source_hash\": \"") + bv) + "\",
674+ \"display_cid\": \"") + bp) + "\",
675+ \"export_cid\": \"") + bh) + "\",
676+ \"export_hash\": \"") + bi) + "\",
677+ \"licence_cid\": \"") + bq) + "\",
678+ \"licence_hash\": \"") + br) + "\"}")
679+ let bC = Issue(("SA_" + toString((bo + 1))), bB, 1, 0, false)
680+ let bD = calculateAssetId(bC)
681+ let bm = if ((bz == bl))
682+ then false
683+ else true
684+[IntegerEntry(ab(bn, T), bz), StringEntry(((((((("art_sold_" + toString(bz)) + "_of_") + toString(bl)) + "_") + T) + "_") + bn), ((((((((L + "_") + toString(bA)) + "_") + aE) + "_") + toString(bs)) + "_") + bu)), IntegerEntry("total_nft_issued", (bo + 1)), BooleanEntry(ac(bn, T), bm), StringEntry("last_invoke_id", aE), bC, ScriptTransfer(Address(fromBase58String(bn)), by, aS), ScriptTransfer(Address(fromBase58String(c)), bx, aS), ScriptTransfer(aM.caller, 1, bD)]
685+ }
686+ }
687+ }
600688
601689
602690
603-@Callable(aM)
604-func buyArtwork (U,bo) = {
605- let aF = toBase58String(aM.transactionId)
606- let aQ = toBase58String(aM.caller.bytes)
607- let bp = A("total_nft_issued")
608- let E = w(ab(bo, U))
609- let bk = {
610- let y = getString(this, V(bo, U))
611- if ($isInstanceOf(y, "String"))
612- then {
613- let ba = y
614- ba
615- }
616- else throw("Artwork doesn't exit")
617- }
618- let bq = w(X(bo, U))
619- let bi = w(Z(bo, U))
620- let bj = w(Y(bo, U))
621- let br = w(af(bo, U))
622- let bs = w(ae(bo, U))
623- let aB = take(w(W(bo, U)), 50)
624- let bl = A(ac(bo, U))
625- let bt = A(ai(bo, U))
626- let bu = C(ad(bo, U))
627- let bv = w(aj(bo, U))
628- let bw = w(ak(bo, U))
629- if ((bt == 0))
630- then throw("Artwork not for sell")
631- else if (!(bu))
632- then throw("Artwork not for sale")
633- else {
634- let bm = A(aa(bo, U))
635- let aR = value(aM.payments[0])
636- let aS = value(aR.amount)
637- let aT = if (if (isDefined(aR.assetId))
638- then (aR.assetId == fromBase58String(bv))
639- else false)
640- then aR.assetId
641- else throw((("Only " + bv) + " token id accepted at the moment"))
642- let bx = if ((bv == toBase58String(d)))
643- then 8
644- else 10
645- let by = ((aS / 100) * bx)
646- let bz = (aS - by)
647- if ((bl == bm))
648- then throw("Artwork sold out")
649- else if ((bt != aS))
650- then throw("Payment don't match")
651- else {
652- let bA = (bl + 1)
653- let bB = lastBlock.timestamp
654- let bC = (((((((((((((((((((((((((((("{\"version\": 1,
655- \"creator\": \"" + bo) + "\",
656- \"artID\": \"") + U) + "\",
657- \"signID\": \"") + E) + "\",
658- \"artwork_name\": \"") + bk) + "\",
659- \"artwork_desc\": \"") + aB) + "\",
660- \"issue\": \"") + toString(bA)) + "/") + toString(bm)) + "\",
661- \"maxIssuable\": \"") + toString(bm)) + "\",
662- \"source_hash\": \"") + bw) + "\",
663- \"display_cid\": \"") + bq) + "\",
664- \"export_cid\": \"") + bi) + "\",
665- \"export_hash\": \"") + bj) + "\",
666- \"licence_cid\": \"") + br) + "\",
667- \"licence_hash\": \"") + bs) + "\"}")
668- let bD = Issue(("SA_" + toString((bp + 1))), bC, 1, 0, false)
669- let bE = calculateAssetId(bD)
670- let bn = if ((bA == bm))
671- then false
672- else true
673-[IntegerEntry(ac(bo, U), bA), StringEntry(((((((("art_sold_" + toString(bA)) + "_of_") + toString(bm)) + "_") + U) + "_") + bo), ((((((((aQ + "_") + toString(bB)) + "_") + aF) + "_") + toString(bt)) + "_") + bv)), IntegerEntry("total_nft_issued", (bp + 1)), BooleanEntry(ad(bo, U), bn), StringEntry("last_invoke_id", aF), bD, ScriptTransfer(Address(fromBase58String(bo)), bz, aT), ScriptTransfer(Address(fromBase58String(c)), by, aT), ScriptTransfer(aM.caller, 1, bE)]
674- }
675- }
676- }
677-
678-
679-
680-@Callable(B)
691+@Callable(A)
681692 func deleteUser (aI) = {
682- let M = toString(addressFromPublicKey(B.callerPublicKey))
683- let aF = toBase58String(B.transactionId)
684- if (if ((M == j))
693+ let L = toString(addressFromPublicKey(A.callerPublicKey))
694+ let aE = toBase58String(A.transactionId)
695+ if (if ((L == j))
685696 then true
686- else (M == k))
687- then [DeleteEntry(S(aI)), DeleteEntry(L(aI)), DeleteEntry(N(aI)), DeleteEntry(O(aI)), DeleteEntry(P(aI)), DeleteEntry(Q(aI)), StringEntry(R(aI), q), StringEntry("last_invoke_id", aF)]
688- else throw("You are not allowed")
697+ else (L == k))
698+ then [DeleteEntry(R(aI)), DeleteEntry(K(aI)), DeleteEntry(M(aI)), DeleteEntry(N(aI)), DeleteEntry(O(aI)), DeleteEntry(P(aI)), StringEntry(Q(aI), s), StringEntry("last_invoke_id", aE)]
699+ else throw("Not allowed")
689700 }
690701
691702

github/deemru/w8io/026f985 
164.21 ms