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