tx · CEnkytyM37DR8WkzB75UajwaiEsAs3x3fEgXM5S1qAyb 3My71eA5781UVppziZNzPzoaXoQ79XLfpou: -0.01400000 Waves 2020.09.17 10:17 [1180954] smart account 3My71eA5781UVppziZNzPzoaXoQ79XLfpou > SELF 0.00000000 Waves
{ "type": 13, "id": "CEnkytyM37DR8WkzB75UajwaiEsAs3x3fEgXM5S1qAyb", "fee": 1400000, "feeAssetId": null, "timestamp": 1600327027526, "version": 2, "chainId": 84, "sender": "3My71eA5781UVppziZNzPzoaXoQ79XLfpou", "senderPublicKey": "xu7oh5A3xfh5PtSRAoZLCyetRFpcf6bq7bCzGtTCUyL", "proofs": [ "5caFUo7CuX9xnRYyWTmsd6cYhcpwSc2zcESNJTH5eMNMhRAVAWCDb3X5Ag8diFkZSqVMjggKdCFzpWzSfuDtzKNX" ], "script": "base64:AAIEAAAAAAAAAE0IAhIGCgQICAgIEgYKBAgICAgSAwoBCBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIECgIIARIECgIICAAAAC4AAAAAD3N0b3JhZ2VWZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAANdXNlcldoaXRlbGlzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXBKRWIzNlpReWsxaGFLbm9jYXlKY1lNMzFjTlBYUGlLMwAAAAAMc2lnblZlcmlmaWVyCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQzI4aFNpdnJtc1RVWGFZRDF4NkwzNjJKNFpwVW5vVGRCAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAAC3NpZ25Bc3NldElkAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAGdXNkbklEAgAAACwzS0ZYQk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AAAAAAAQUAAAAFaWRORlQFAAAAA25pbAAAAACcUoex", "height": 1180954, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HH7icM5gE8FzP9YQarSkfigHpW9NFiiL5Ws89st2oGTB Next: 3Fmp3rwDmpPKvjpLJ4Vhr21vkEssm5pa2HkXPuEQyGsS Diff:
Old | New | Differences | |
---|---|---|---|
286 | 286 | let aI = w(x, aA, z) | |
287 | 287 | if (!(aI)) | |
288 | 288 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
289 | - | else if ((size(ai) == 0)) | |
290 | - | then throw("Title cannot be empty") | |
291 | - | else if ((size(ai) > 100)) | |
292 | - | then throw("100 Characters maximum for the name") | |
293 | - | else if ((size(aj) > 1000)) | |
294 | - | then throw("1000 Characters maximum for the description") | |
295 | - | else if ((size(aj) == 0)) | |
296 | - | then throw("Description cannot be empty") | |
297 | - | else { | |
298 | - | let aJ = split(as, ",") | |
299 | - | if ((size(aJ) > 5)) | |
300 | - | then throw("Tags should be maximum 5 single word separated by space.") | |
301 | - | else { | |
302 | - | let aK = { | |
303 | - | let s = getString(this, ("user_status_" + aA)) | |
304 | - | if ($isInstanceOf(s, "String")) | |
305 | - | then { | |
306 | - | let aL = s | |
307 | - | aL | |
308 | - | } | |
309 | - | else m | |
289 | + | else if ((size(av) == 0)) | |
290 | + | then throw("Display CID cannot be empty") | |
291 | + | else if ((size(ai) == 0)) | |
292 | + | then throw("Title cannot be empty") | |
293 | + | else if ((size(ai) > 100)) | |
294 | + | then throw("100 Characters maximum for the name") | |
295 | + | else if ((size(aj) > 1000)) | |
296 | + | then throw("1000 Characters maximum for the description") | |
297 | + | else if ((size(aj) == 0)) | |
298 | + | then throw("Description cannot be empty") | |
299 | + | else { | |
300 | + | let aJ = split(as, ",") | |
301 | + | if ((size(aJ) > 5)) | |
302 | + | then throw("Tags should be maximum 5 single word separated by space.") | |
303 | + | else { | |
304 | + | let aK = { | |
305 | + | let s = getString(this, ("user_status_" + aA)) | |
306 | + | if ($isInstanceOf(s, "String")) | |
307 | + | then { | |
308 | + | let aL = s | |
309 | + | aL | |
310 | + | } | |
311 | + | else m | |
312 | + | } | |
313 | + | let ao = lastBlock.timestamp | |
314 | + | if (if (isDefined(aK)) | |
315 | + | then (aK == m) | |
316 | + | else false) | |
317 | + | then throw("Please register this account first with \"User infos\" tab") | |
318 | + | else if ((aK == k)) | |
319 | + | then throw("Your account is suspended") | |
320 | + | else if ((aK == l)) | |
321 | + | then throw("Your account have been removed") | |
322 | + | else if ((au > 10)) | |
323 | + | then throw("Maximum 10 editions per artwork") | |
324 | + | else if ((size(z) != 64)) | |
325 | + | then throw("Hash should be sha256 string composed of 64 char.") | |
326 | + | else [StringEntry(ag(z), aA), StringEntry(ah(z, aA), S), BooleanEntry(O(aA), true), IntegerEntry(R(aA, S), ao), StringEntry(T(aA, S), ai), StringEntry(U(aA, S), aj), StringEntry(V(aA, S), av), StringEntry(X(aA, S), ax), StringEntry(W(aA, S), aw), StringEntry(ac(aA, S), ay), StringEntry(ad(aA, S), az), StringEntry(af(aA, S), at), StringEntry(ae(aA, S), as), IntegerEntry(Y(aA, S), au), StringEntry(Z(aA, S), x), IntegerEntry(aa(aA, S), 0), BooleanEntry(ab(aA, S), false), StringEntry("last_invoke_id", S), ScriptTransfer(Address(fromBase58String(d)), aC, aD)] | |
310 | 327 | } | |
311 | - | let ao = lastBlock.timestamp | |
312 | - | if (if (isDefined(aK)) | |
313 | - | then (aK == m) | |
314 | - | else false) | |
315 | - | then throw("Please register this account first with \"User infos\" tab") | |
316 | - | else if ((aK == k)) | |
317 | - | then throw("Your account is suspended") | |
318 | - | else if ((aK == l)) | |
319 | - | then throw("Your account have been removed") | |
320 | - | else if ((au > 10)) | |
321 | - | then throw("Maximum 10 editions per artwork") | |
322 | - | else if ((size(z) != 64)) | |
323 | - | then throw("Hash should be sha256 string composed of 64 char.") | |
324 | - | else [StringEntry(ag(z), aA), StringEntry(ah(z, aA), S), BooleanEntry(O(aA), true), IntegerEntry(R(aA, S), ao), StringEntry(T(aA, S), ai), StringEntry(U(aA, S), aj), StringEntry(V(aA, S), av), StringEntry(X(aA, S), ax), StringEntry(W(aA, S), aw), StringEntry(ac(aA, S), ay), StringEntry(ad(aA, S), az), StringEntry(af(aA, S), at), StringEntry(ae(aA, S), as), IntegerEntry(Y(aA, S), au), StringEntry(Z(aA, S), x), IntegerEntry(aa(aA, S), 0), BooleanEntry(ab(aA, S), false), StringEntry("last_invoke_id", S), ScriptTransfer(Address(fromBase58String(d)), aC, aD)] | |
325 | - | } | |
326 | - | } | |
328 | + | } | |
327 | 329 | } | |
328 | 330 | } | |
329 | 331 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let b = value(addressFromString("3MpJEb36ZQyk1haKnocayJcYM31cNPXPiK3")) | |
7 | 7 | ||
8 | 8 | let c = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | 9 | ||
10 | 10 | let d = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
11 | 11 | ||
12 | 12 | let e = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
13 | 13 | ||
14 | 14 | let f = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
15 | 15 | ||
16 | 16 | let g = "3NCqpdb8jHW1d1hqZgeS9AE2MJ2Keh95jMC" | |
17 | 17 | ||
18 | 18 | let h = true | |
19 | 19 | ||
20 | 20 | let i = "CREATED" | |
21 | 21 | ||
22 | 22 | let j = "VERIFIED" | |
23 | 23 | ||
24 | 24 | let k = "SUSPENDED" | |
25 | 25 | ||
26 | 26 | let l = "REMOVED" | |
27 | 27 | ||
28 | 28 | let m = "UNREGISTERED" | |
29 | 29 | ||
30 | 30 | let n = "ON_SALE" | |
31 | 31 | ||
32 | 32 | let o = "SOLD" | |
33 | 33 | ||
34 | 34 | let p = "CANCELED" | |
35 | 35 | ||
36 | 36 | func q (r) = { | |
37 | 37 | let s = getString(this, r) | |
38 | 38 | if ($isInstanceOf(s, "String")) | |
39 | 39 | then { | |
40 | 40 | let t = s | |
41 | 41 | t | |
42 | 42 | } | |
43 | 43 | else "" | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func u (r) = { | |
48 | 48 | let s = getInteger(this, r) | |
49 | 49 | if ($isInstanceOf(s, "Int")) | |
50 | 50 | then { | |
51 | 51 | let v = s | |
52 | 52 | v | |
53 | 53 | } | |
54 | 54 | else 0 | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func w (x,y,z) = { | |
59 | 59 | let s = getString(c, ((("data_fc_" + x) + "_") + y)) | |
60 | 60 | if ($isInstanceOf(s, "String")) | |
61 | 61 | then { | |
62 | 62 | let t = s | |
63 | 63 | if (contains(t, z)) | |
64 | 64 | then true | |
65 | 65 | else false | |
66 | 66 | } | |
67 | 67 | else false | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func A (B,C) = { | |
72 | 72 | let D = value(assetInfo(fromBase58String(C))) | |
73 | 73 | if (if (if ((D.quantity != 1)) | |
74 | 74 | then true | |
75 | 75 | else (D.decimals != 0)) | |
76 | 76 | then true | |
77 | 77 | else (D.reissuable != false)) | |
78 | 78 | then (B + 0) | |
79 | 79 | else (B + 1) | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func E (F) = if (!(h)) | |
84 | 84 | then true | |
85 | 85 | else { | |
86 | 86 | let s = getBoolean(b, F) | |
87 | 87 | if ($isInstanceOf(s, "Boolean")) | |
88 | 88 | then { | |
89 | 89 | let G = s | |
90 | 90 | G | |
91 | 91 | } | |
92 | 92 | else throw("You are not allowed, please contact us first.") | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func H (F) = { | |
97 | 97 | let s = getString(this, ("user_status_" + F)) | |
98 | 98 | if ($isInstanceOf(s, "String")) | |
99 | 99 | then { | |
100 | 100 | let G = s | |
101 | 101 | G | |
102 | 102 | } | |
103 | 103 | else throw("Something went wrong.") | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func I (J) = ("user_" + J) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func K (J) = ("user_name_" + J) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func L (J) = ("user_desc_" + J) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func M (J) = ("user_social_" + J) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func N (J) = ("user_thumb_" + J) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func O (J) = ("user_isartist_" + J) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func P (J) = ("user_status_" + J) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func Q (J) = ("user_date_" + J) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func R (J,S) = ((("art_date_" + S) + "_") + J) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func T (J,S) = ((("art_name_" + S) + "_") + J) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func U (J,S) = ((("art_desc_" + S) + "_") + J) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func V (J,S) = ((("art_display_cid_" + S) + "_") + J) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func W (J,S) = ((("art_export_hash_" + S) + "_") + J) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func X (J,S) = ((("art_export_cid_" + S) + "_") + J) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func Y (J,S) = ((("art_maxmint_" + S) + "_") + J) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func Z (J,S) = ((("art_signid_" + S) + "_") + J) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func aa (J,S) = ((("art_issued_" + S) + "_") + J) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func ab (J,S) = ((("art_onsale_" + S) + "_") + J) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func ac (J,S) = ((("art_licence_hash_" + S) + "_") + J) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func ad (J,S) = ((("art_licence_cid_" + S) + "_") + J) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func ae (J,S) = ((("art_tags_" + S) + "_") + J) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func af (J,S) = ((("art_type_" + S) + "_") + J) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func ag (z) = ("art_owner_by_hash_" + z) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func ah (z,J) = ("art_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((z + J))))) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | @Callable(v) | |
180 | 180 | func registerUser (ai,aj,ak,al) = { | |
181 | 181 | let J = toString(addressFromPublicKey(v.callerPublicKey)) | |
182 | 182 | let am = E(J) | |
183 | 183 | let C = toBase58String(v.transactionId) | |
184 | 184 | let an = q(("user_" + J)) | |
185 | 185 | let ao = lastBlock.timestamp | |
186 | 186 | if (!(am)) | |
187 | 187 | then throw("You are now allowed to register yet, please contact us first to get approved.") | |
188 | 188 | else if (if ((ai == "")) | |
189 | 189 | then true | |
190 | 190 | else (aj == "")) | |
191 | 191 | then throw("Name and description cannot be empty") | |
192 | 192 | else if ((size(aj) > 600)) | |
193 | 193 | then throw("600 Characters maximum for the description") | |
194 | 194 | else if ((an == "")) | |
195 | 195 | then [IntegerEntry(Q(J), ao), StringEntry(I(J), ((C + "_") + toString(lastBlock.timestamp))), StringEntry(K(J), ai), StringEntry(L(J), aj), StringEntry(M(J), al), StringEntry(N(J), ak), BooleanEntry(O(J), false), StringEntry(P(J), i), StringEntry("last_invoke_id", C)] | |
196 | 196 | else throw("This user is already registered, use updateUser instead") | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | ||
201 | 201 | @Callable(v) | |
202 | 202 | func updateUser (ai,aj,ak,al) = { | |
203 | 203 | let J = toString(addressFromPublicKey(v.callerPublicKey)) | |
204 | 204 | let am = E(J) | |
205 | 205 | if (!(am)) | |
206 | 206 | then throw("You are now allowed to update your infos anymore.") | |
207 | 207 | else { | |
208 | 208 | let C = toBase58String(v.transactionId) | |
209 | 209 | let an = q(("user_" + J)) | |
210 | 210 | let ao = lastBlock.timestamp | |
211 | 211 | let ap = H(J) | |
212 | 212 | if ((ap == k)) | |
213 | 213 | then throw("Your account have been suspended") | |
214 | 214 | else if ((ap == l)) | |
215 | 215 | then throw("Your account have been removed") | |
216 | 216 | else if (if ((ai == "")) | |
217 | 217 | then true | |
218 | 218 | else (aj == "")) | |
219 | 219 | then throw("Name and description cannot be empty") | |
220 | 220 | else if ((size(aj) > 600)) | |
221 | 221 | then throw("600 Characters maximum for the description") | |
222 | 222 | else if ((an != "")) | |
223 | 223 | then [StringEntry(K(J), ai), StringEntry(L(J), aj), StringEntry(M(J), al), StringEntry(N(J), ak), StringEntry("last_invoke_id", C)] | |
224 | 224 | else throw("Please register first with registerUser") | |
225 | 225 | } | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | ||
230 | 230 | @Callable(v) | |
231 | 231 | func deleteUser (aq) = { | |
232 | 232 | let J = toString(addressFromPublicKey(v.callerPublicKey)) | |
233 | 233 | let C = toBase58String(v.transactionId) | |
234 | 234 | if ((J != g)) | |
235 | 235 | then throw("You are not allowed to do that") | |
236 | 236 | else [DeleteEntry(Q(J)), DeleteEntry(I(J)), DeleteEntry(K(J)), DeleteEntry(L(J)), DeleteEntry(M(J)), DeleteEntry(N(J)), DeleteEntry(O(J)), StringEntry(P(J), l), StringEntry("last_invoke_id", C)] | |
237 | 237 | } | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | ||
241 | 241 | @Callable(v) | |
242 | 242 | func suspendUser (aq) = { | |
243 | 243 | let J = toString(addressFromPublicKey(v.callerPublicKey)) | |
244 | 244 | let C = toBase58String(v.transactionId) | |
245 | 245 | if ((J != g)) | |
246 | 246 | then throw("You are not allowed to do that") | |
247 | 247 | else [StringEntry(P(J), k), StringEntry("last_invoke_id", C)] | |
248 | 248 | } | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | ||
252 | 252 | @Callable(ar) | |
253 | 253 | func addArtwork (z,x,ai,aj,as,at,au,av,aw,ax,ay,az) = { | |
254 | 254 | let S = toBase58String(ar.transactionId) | |
255 | 255 | let aA = toBase58String(ar.caller.bytes) | |
256 | 256 | if ((size(ar.payments) == 0)) | |
257 | 257 | then throw("No payment attached") | |
258 | 258 | else { | |
259 | 259 | let aB = value(ar.payments[0]) | |
260 | 260 | let aC = value(aB.amount) | |
261 | 261 | let aD = if (if (isDefined(aB.assetId)) | |
262 | 262 | then (aB.assetId == e) | |
263 | 263 | else false) | |
264 | 264 | then aB.assetId | |
265 | 265 | else throw("Only SIGN token accepted at the moment") | |
266 | 266 | let aE = { | |
267 | 267 | let s = getInteger(a, ("certification_fee_" + toBase58String(e))) | |
268 | 268 | if ($isInstanceOf(s, "Int")) | |
269 | 269 | then { | |
270 | 270 | let aF = s | |
271 | 271 | aF | |
272 | 272 | } | |
273 | 273 | else throw("Price undefined in oracle") | |
274 | 274 | } | |
275 | 275 | if ((aC != aE)) | |
276 | 276 | then throw(("Payment amount should be " + toString(aE))) | |
277 | 277 | else { | |
278 | 278 | let aG = q(ah(z, aA)) | |
279 | 279 | if ((aG != "")) | |
280 | 280 | then throw("You already added this artwork on Sign Art") | |
281 | 281 | else { | |
282 | 282 | let aH = q(ag(z)) | |
283 | 283 | if ((aH != "")) | |
284 | 284 | then throw("This artwork hash is already registered on Sign Art") | |
285 | 285 | else { | |
286 | 286 | let aI = w(x, aA, z) | |
287 | 287 | if (!(aI)) | |
288 | 288 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
289 | - | else if ((size(ai) == 0)) | |
290 | - | then throw("Title cannot be empty") | |
291 | - | else if ((size(ai) > 100)) | |
292 | - | then throw("100 Characters maximum for the name") | |
293 | - | else if ((size(aj) > 1000)) | |
294 | - | then throw("1000 Characters maximum for the description") | |
295 | - | else if ((size(aj) == 0)) | |
296 | - | then throw("Description cannot be empty") | |
297 | - | else { | |
298 | - | let aJ = split(as, ",") | |
299 | - | if ((size(aJ) > 5)) | |
300 | - | then throw("Tags should be maximum 5 single word separated by space.") | |
301 | - | else { | |
302 | - | let aK = { | |
303 | - | let s = getString(this, ("user_status_" + aA)) | |
304 | - | if ($isInstanceOf(s, "String")) | |
305 | - | then { | |
306 | - | let aL = s | |
307 | - | aL | |
308 | - | } | |
309 | - | else m | |
289 | + | else if ((size(av) == 0)) | |
290 | + | then throw("Display CID cannot be empty") | |
291 | + | else if ((size(ai) == 0)) | |
292 | + | then throw("Title cannot be empty") | |
293 | + | else if ((size(ai) > 100)) | |
294 | + | then throw("100 Characters maximum for the name") | |
295 | + | else if ((size(aj) > 1000)) | |
296 | + | then throw("1000 Characters maximum for the description") | |
297 | + | else if ((size(aj) == 0)) | |
298 | + | then throw("Description cannot be empty") | |
299 | + | else { | |
300 | + | let aJ = split(as, ",") | |
301 | + | if ((size(aJ) > 5)) | |
302 | + | then throw("Tags should be maximum 5 single word separated by space.") | |
303 | + | else { | |
304 | + | let aK = { | |
305 | + | let s = getString(this, ("user_status_" + aA)) | |
306 | + | if ($isInstanceOf(s, "String")) | |
307 | + | then { | |
308 | + | let aL = s | |
309 | + | aL | |
310 | + | } | |
311 | + | else m | |
312 | + | } | |
313 | + | let ao = lastBlock.timestamp | |
314 | + | if (if (isDefined(aK)) | |
315 | + | then (aK == m) | |
316 | + | else false) | |
317 | + | then throw("Please register this account first with \"User infos\" tab") | |
318 | + | else if ((aK == k)) | |
319 | + | then throw("Your account is suspended") | |
320 | + | else if ((aK == l)) | |
321 | + | then throw("Your account have been removed") | |
322 | + | else if ((au > 10)) | |
323 | + | then throw("Maximum 10 editions per artwork") | |
324 | + | else if ((size(z) != 64)) | |
325 | + | then throw("Hash should be sha256 string composed of 64 char.") | |
326 | + | else [StringEntry(ag(z), aA), StringEntry(ah(z, aA), S), BooleanEntry(O(aA), true), IntegerEntry(R(aA, S), ao), StringEntry(T(aA, S), ai), StringEntry(U(aA, S), aj), StringEntry(V(aA, S), av), StringEntry(X(aA, S), ax), StringEntry(W(aA, S), aw), StringEntry(ac(aA, S), ay), StringEntry(ad(aA, S), az), StringEntry(af(aA, S), at), StringEntry(ae(aA, S), as), IntegerEntry(Y(aA, S), au), StringEntry(Z(aA, S), x), IntegerEntry(aa(aA, S), 0), BooleanEntry(ab(aA, S), false), StringEntry("last_invoke_id", S), ScriptTransfer(Address(fromBase58String(d)), aC, aD)] | |
310 | 327 | } | |
311 | - | let ao = lastBlock.timestamp | |
312 | - | if (if (isDefined(aK)) | |
313 | - | then (aK == m) | |
314 | - | else false) | |
315 | - | then throw("Please register this account first with \"User infos\" tab") | |
316 | - | else if ((aK == k)) | |
317 | - | then throw("Your account is suspended") | |
318 | - | else if ((aK == l)) | |
319 | - | then throw("Your account have been removed") | |
320 | - | else if ((au > 10)) | |
321 | - | then throw("Maximum 10 editions per artwork") | |
322 | - | else if ((size(z) != 64)) | |
323 | - | then throw("Hash should be sha256 string composed of 64 char.") | |
324 | - | else [StringEntry(ag(z), aA), StringEntry(ah(z, aA), S), BooleanEntry(O(aA), true), IntegerEntry(R(aA, S), ao), StringEntry(T(aA, S), ai), StringEntry(U(aA, S), aj), StringEntry(V(aA, S), av), StringEntry(X(aA, S), ax), StringEntry(W(aA, S), aw), StringEntry(ac(aA, S), ay), StringEntry(ad(aA, S), az), StringEntry(af(aA, S), at), StringEntry(ae(aA, S), as), IntegerEntry(Y(aA, S), au), StringEntry(Z(aA, S), x), IntegerEntry(aa(aA, S), 0), BooleanEntry(ab(aA, S), false), StringEntry("last_invoke_id", S), ScriptTransfer(Address(fromBase58String(d)), aC, aD)] | |
325 | - | } | |
326 | - | } | |
328 | + | } | |
327 | 329 | } | |
328 | 330 | } | |
329 | 331 | } | |
330 | 332 | } | |
331 | 333 | } | |
332 | 334 | ||
333 | 335 | ||
334 | 336 | ||
335 | 337 | @Callable(ar) | |
336 | 338 | func updateArtwork (aM,ai,aj,as,at,au,av,aw,ax,ay,az) = { | |
337 | 339 | let aN = toBase58String(ar.transactionId) | |
338 | 340 | let aA = toBase58String(ar.caller.bytes) | |
339 | 341 | let aG = q(T(aA, aM)) | |
340 | 342 | if ((aG == "")) | |
341 | 343 | then throw("This entry doesn't exist or you are not the owner") | |
342 | 344 | else if ((size(ai) == 0)) | |
343 | 345 | then throw("Title cannot be empty") | |
344 | 346 | else if ((size(ai) > 100)) | |
345 | 347 | then throw("100 Characters maximum for the name") | |
346 | 348 | else if ((size(aj) > 1000)) | |
347 | 349 | then throw("1000 Characters maximum for the description") | |
348 | 350 | else if ((size(aj) == 0)) | |
349 | 351 | then throw("Description cannot be empty") | |
350 | 352 | else { | |
351 | 353 | let aO = { | |
352 | 354 | let s = getInteger(this, aa(aA, aM)) | |
353 | 355 | if ($isInstanceOf(s, "Int")) | |
354 | 356 | then { | |
355 | 357 | let G = s | |
356 | 358 | if ((G == 0)) | |
357 | 359 | then false | |
358 | 360 | else true | |
359 | 361 | } | |
360 | 362 | else throw("Something went wrong.") | |
361 | 363 | } | |
362 | 364 | let aJ = split(as, ",") | |
363 | 365 | if ((size(aJ) > 5)) | |
364 | 366 | then throw("Tags should be maximum 5 single word separated by space.") | |
365 | 367 | else { | |
366 | 368 | let aK = { | |
367 | 369 | let s = getString(this, ("user_status_" + aA)) | |
368 | 370 | if ($isInstanceOf(s, "String")) | |
369 | 371 | then { | |
370 | 372 | let aL = s | |
371 | 373 | aL | |
372 | 374 | } | |
373 | 375 | else m | |
374 | 376 | } | |
375 | 377 | if (if (isDefined(aK)) | |
376 | 378 | then (aK == m) | |
377 | 379 | else false) | |
378 | 380 | then throw("Please register this account first with \"User infos\" tab") | |
379 | 381 | else if ((aK == k)) | |
380 | 382 | then throw("Your account is suspended") | |
381 | 383 | else if ((aK == l)) | |
382 | 384 | then throw("Your account have been removed") | |
383 | 385 | else if ((au > 10)) | |
384 | 386 | then throw("Maximum 10 editions per artwork") | |
385 | 387 | else if (!(aO)) | |
386 | 388 | then [StringEntry(T(aA, aM), ai), StringEntry(U(aA, aM), aj), StringEntry(V(aA, aM), av), StringEntry(X(aA, aM), ax), StringEntry(W(aA, aM), aw), StringEntry(ad(aA, aM), az), StringEntry(ac(aA, aM), ay), IntegerEntry(Y(aA, aM), au), StringEntry(ae(aA, aM), as), StringEntry(af(aA, aM), at), StringEntry("last_invoke_id", aN)] | |
387 | 389 | else [StringEntry(T(aA, aM), ai), StringEntry(U(aA, aM), aj), StringEntry(V(aA, aM), av), StringEntry(af(aA, aM), at), StringEntry(ae(aA, aM), as), StringEntry("last_invoke_id", aN)] | |
388 | 390 | } | |
389 | 391 | } | |
390 | 392 | } | |
391 | 393 | ||
392 | 394 | ||
393 | 395 | ||
394 | 396 | @Callable(v) | |
395 | 397 | func deleteArtwork (S,aP) = { | |
396 | 398 | let J = toString(addressFromPublicKey(v.callerPublicKey)) | |
397 | 399 | let C = toBase58String(v.transactionId) | |
398 | 400 | if ((J != g)) | |
399 | 401 | then throw("You are not allowed to do that") | |
400 | 402 | else [DeleteEntry(R(aP, S)), DeleteEntry(T(aP, S)), DeleteEntry(U(aP, S)), DeleteEntry(V(aP, S)), DeleteEntry(X(aP, S)), DeleteEntry(W(aP, S)), DeleteEntry(ac(aP, S)), DeleteEntry(ad(aP, S)), DeleteEntry(af(aP, S)), DeleteEntry(ae(aP, S)), DeleteEntry(Y(aP, S)), DeleteEntry(Z(aP, S)), DeleteEntry(aa(aP, S)), DeleteEntry(ab(aP, S)), StringEntry("last_invoke_id", C)] | |
401 | 403 | } | |
402 | 404 | ||
403 | 405 | ||
404 | 406 | ||
405 | 407 | @Callable(ar) | |
406 | 408 | func sellArtwork (aQ,aF) = { | |
407 | 409 | let C = toBase58String(ar.transactionId) | |
408 | 410 | let aA = toBase58String(ar.caller.bytes) | |
409 | 411 | let aR = lastBlock.timestamp | |
410 | 412 | let aS = q(((aQ + "_") + aA)) | |
411 | 413 | if (!(isDefined(aS))) | |
412 | 414 | then throw("This artwork doesn't exit or you are not the owner") | |
413 | 415 | else { | |
414 | 416 | let aK = q(("user_status_" + aA)) | |
415 | 417 | if ((aK == "")) | |
416 | 418 | then throw("Please register this account first") | |
417 | 419 | else { | |
418 | 420 | let aT = u(((("art_issued_" + aS) + "_") + aA)) | |
419 | 421 | let aU = u(((("art_maxmint_" + aS) + "_") + aA)) | |
420 | 422 | if ((aT == aU)) | |
421 | 423 | then throw("You reached the max edition allowed to sell for this edition.") | |
422 | 424 | else if ((aK == k)) | |
423 | 425 | then throw("Your account is suspended") | |
424 | 426 | else if (!(isDefined(aS))) | |
425 | 427 | then throw("This artwork desn't exist") | |
426 | 428 | else if ((size(aQ) != 64)) | |
427 | 429 | then throw("This hash is incorrect.") | |
428 | 430 | else { | |
429 | 431 | let aV = if ((aF > 0)) | |
430 | 432 | then true | |
431 | 433 | else false | |
432 | 434 | [BooleanEntry(((("art_onsale_" + aS) + "_") + aA), aV), IntegerEntry(((("art_price_" + aS) + "_") + aA), aF), StringEntry("last_invoke_id", C)] | |
433 | 435 | } | |
434 | 436 | } | |
435 | 437 | } | |
436 | 438 | } | |
437 | 439 | ||
438 | 440 | ||
439 | 441 | ||
440 | 442 | @Callable(ar) | |
441 | 443 | func buyArtwork (aQ,aW) = { | |
442 | 444 | let C = toBase58String(ar.transactionId) | |
443 | 445 | let aA = toBase58String(ar.caller.bytes) | |
444 | 446 | let aX = u("total_nft_issued") | |
445 | 447 | let aS = q(((aQ + "_") + aW)) | |
446 | 448 | if ((aS == "")) | |
447 | 449 | then throw("This artwork doesn't exit or you are not the owner") | |
448 | 450 | else { | |
449 | 451 | let aK = q(("user_status_" + aA)) | |
450 | 452 | if (!(isDefined(aK))) | |
451 | 453 | then throw("Please register this account first") | |
452 | 454 | else { | |
453 | 455 | let aY = q(((("art_sold_" + aS) + "_") + aW)) | |
454 | 456 | let aT = u(((("art_issued_" + aS) + "_") + aW)) | |
455 | 457 | let aZ = u(((("art_price_" + aS) + "_") + aW)) | |
456 | 458 | if ((aZ == 0)) | |
457 | 459 | then throw("This artwork is not for sell") | |
458 | 460 | else { | |
459 | 461 | let aU = u(((("art_maxmint_" + aS) + "_") + aW)) | |
460 | 462 | let aB = value(ar.payments[0]) | |
461 | 463 | let aC = value(aB.amount) | |
462 | 464 | let aD = if (isDefined(aB.assetId)) | |
463 | 465 | then throw("Only Waves token accepted at the moment") | |
464 | 466 | else unit | |
465 | 467 | if ((aT == aU)) | |
466 | 468 | then throw("Cannot buy this artwork anymore") | |
467 | 469 | else if ((aZ != aC)) | |
468 | 470 | then throw("Payment don't match seller price") | |
469 | 471 | else { | |
470 | 472 | let ba = (aT + 1) | |
471 | 473 | let aR = lastBlock.timestamp | |
472 | 474 | let bb = (((((((((((((("{\"version\": 1,\"artID\": \"" + aS) + "\",\"maxIssuable\": \"") + toString(aU)) + "\",\"signID\": \"SA_") + toString((aX + 1))) + "\", \"creator\": \"") + aW) + "\", \"issue\": \"") + toString(ba)) + "/") + toString(aU)) + "\", \"hash\": ") + aQ) + "}") | |
473 | 475 | let bc = Issue(("SA_" + toString((aX + 1))), bb, 1, 0, false) | |
474 | 476 | let bd = calculateAssetId(bc) | |
475 | 477 | let aV = if ((ba == aU)) | |
476 | 478 | then false | |
477 | 479 | else true | |
478 | 480 | [IntegerEntry(((("art_issued_" + aS) + "_") + aW), ba), StringEntry(((((((("art_sold_" + toString(ba)) + "_of_") + toString(aU)) + "_") + aS) + "_") + aW), ((((((aA + "_") + toString(aR)) + "_") + C) + "_") + toString(aZ))), IntegerEntry("total_nft_issued", (aX + 1)), StringEntry("last_invoke_id", C), bc, BooleanEntry(((("art_onsale_" + aS) + "_") + aA), aV), ScriptTransfer(Address(fromBase58String(aW)), aC, aD), ScriptTransfer(ar.caller, 1, bd)] | |
479 | 481 | } | |
480 | 482 | } | |
481 | 483 | } | |
482 | 484 | } | |
483 | 485 | } | |
484 | 486 | ||
485 | 487 |
github/deemru/w8io/169f3d6 114.24 ms ◑